Get an array of the unique times for the specified scan numbers, observation ID, and array ID. The times correspond to those in the TIME column, so are values of the time system associated with that column and have units associated with that column. Only unique times are returned; duplicates are dropped. For the scans parameter, a single non-negative integer or a list of non-negative integers, all of which are valid scan numbers in the MS, must be supplied.
<casaxml xsi:schemaLocation="http://casa.nrao.edu/schema/casa.xsd file:///opt/casa/code/tools/xml/casa.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://casa.nrao.edu/schema/psetTypes.html">
<tool module="msmd" name="msmetadata">
<shortdescription>Operations to retrieve metadata from a measurment set</shortdescription>
<include>msmetadata_forward.h</include>
<include>msmetadata_private.h</include>
The msmd tool provides methods to retrieve metadata from measurement sets.
\medskip\noindent\textbf{Attaching to a Measurement Set}
The simplest and most common way to attach an msmd tool to a
measurement set is to use the <link anchor="ms:msmd.open">msmd.open</link> method which requires that
you specify the name of the measurement set table.
NOTE: Any modifications to an MS while an associated msmd tool is open
will not be reflected in the msmd tool. You must close and reopen the tool
if you want to capture changes made to metadata of an MS if such a change
msmd.open("3C273XC1.MS")
# get the number of spectral windows
We open the tool by querying the MS for its metadata. We then get the number of spectral
windows in the dataset and close the tool.
<method name="msmetadata" type="constructor">
<method name="almaspws" type="function">
<shortdescription>Get a list of spectral window IDs with ALMA-specific attributes.</shortdescription>
<param name="chavg" type="bool">
<description>Get channel average spectral windows?</description>
<param name="fdm" type="bool">
<description>Get FDM spectral windows?</description>
<param name="sqld" type="bool">
<description>Get square law (i.e. total power) detector spectral windows?</description>
<param name="tdm" type="bool">
<description>Get TDM spectral windows?</description>
<param name="wvr" type="bool">
<description>Get WVR spectral windows?</description>
<param name="complement" type="bool">
<description>Return the complement of the selected set?</description>
Get spectral window IDs based on ALMA-specific criteria. The inputs are or'ed together
to form the returned list. If complement=True, then the complement of the selection
If the SPECTRAL_WINDOW table has the optional BBC_NO column and if the name
of the spectral window matches the regular expression "BB_[0-9]#SQLD", where
[0-9] indicates that a single integer matches, the window is classified as
a *square law detector spectral window*.
The following algorithm is used to identify WVR spwectral windows:
1. check for water vapor radiometer (WVR) spectral windows using the spectral window