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

1.3.2 Get an array of the unique scan numbers associated with the MS for the specified observation ID and array ID.


Description

This method will return an array of unique scan numbers in the associated MS for the specified observation ID and array ID.

Arguments





Inputs

obsid

Observation ID. A negative value indicates all observation IDs should be used.

allowed:

int

Default:

-1

arrayid

Array ID. A negative value indicates all array IDs should be used.

allowed:

int

Default:

-1

Returns
intArray

Example

 
    msmd.open("my.ms")  
    # scan numbers for all obsids and all arrayids  
    scan_numbers = msmd.scannumbers()  
    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