ism3d.uvhelper.ms.read_ms¶
-
ism3d.uvhelper.ms.
read_ms
(vis='', polaverage=True, flagdata=False, saveflag=True, includedata=True, usedouble=False, dataset=None, keyrule='basename')[source]¶ - Note:
the different output sequence casacore.table.getcol(): nrecord x nchan x ncorr casatools.table.getcol(): ncorr x nchan x nrecord
- flagdata: default=False
set flagged data value to np.nan, which may lead to troubles of calculating chisq2
- saveflag: default=True
save flagging (bool) column, which is need to figure out channel-wise bad data
uvw in units of meters
- includedata=False
only read the MS “framework” from MS, not the actual dataset
- dataset: a dataset container (list or dictionary) for the readout data
if it’s provieded, not return from the function. if it’s not provide, the readout data will be return as a dictionary.
- keyrule: ‘number’: data_0, data_1, data_3
‘basename’: basename1, basename2, basename3 ‘abspath’: absolute name
note: we on purpose preserve the data shape to ensure write_ms will work properly