ratt-ru / shadeMS

Rapid Measurement Set plotting with dask-ms and datashader
20 stars 6 forks source link

add options to specify custom visibility etc. columns #80

Open o-smirnov opened 3 years ago

o-smirnov commented 3 years ago

When using a custom visibility column (e.g. DIR1_DATA), the code doesn't know up front that the dims are (row, chan, corr). The data mappers, in particular, need this info. It can be supplied to the table_schema argument of xds_from_table (as table_shema=["MS", dict(...)].

Suggest adding an optional --column-dims argument. If not given, assume a shape of (chan, corr) for columns ending in _DATA, or complain for other unknown array columns.

Standard known columns are in this list: https://github.com/ska-sa/dask-ms/blob/master/daskms/table_schemas.py

o-smirnov commented 1 year ago

@Athanaseus was bitten by this one, so time to prioritize it up. In the meantime @Athanaseus please try the issue-80 branch which has a kludgy terrible temporary workaround.