from __future__ import absolute_import
from casatasks.private.casa_transition import is_CASA6
from casatasks import casalog
vis, selectdata, spw, field, antenna, uvrange,
timerange, correlation, scan, intent, feed,
array, observation, verbose, listfile,
listunfl, cachesize, overwrite
"""List data set summary in the logger:
Lists following properties of a measurement set:
scan list, field list, spectral window list with
correlators, antenna locations, ms table information.
vis -- Name of input visibility file
default: none. example: vis='ngc5921.ms'
selectdata -- select data from the MS
verbose -- level of detail
verbose=True: (default); scan and antenna lists
verbose=False: less information
listfile -- save the output in a file
default: none. Example: listfile="mylist.txt"
casalog.origin('listobs')
myms.open(thems=vis, check=True)
sel['baseline'] = antenna
sel['scanintent'] = intent
sel['polarization'] = correlation
sel['observation'] = str(observation)
myms.msselect(sel, False)
verbose=verbose, listfile=listfile, listunfl=listunfl,
cachesize=cachesize, overwrite=overwrite, wantreturn=True