NRAO Home > CASA > CASA Toolkit Reference Manual
msmetadata.transitions - Function

1.3.2 Get the spectral transitions from the SOURCE table for the specified source and spectral window.


Description

Get the spectral transitions from the SOURCE table for the specified source and spectral window. The return value will be an array of transitions if the transitions are defined for the specified inputs, or False if they do not.

Arguments





Inputs

sourceid

Zero-based source ID (from the SOURCE::SOURCE_ID column).

allowed:

int

Default:

0

spw

Zero-based spectral window ID.

allowed:

int

Default:

0

Returns
anyvariant

Example

 
    msmd.open("my.ms")  
    # get the transitions for source ID 2 and spw ID 20  
    reffreq = msmd.transitions(2, 20)  
    msmd.done()  

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search