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

1.3.2 Get an array of the unique scan numbers associated with the specified intent, observation ID, and arrayID.


Description

Get an array of the unique scan numbers associated with the specified intent, observation ID, and arrayID. The ”*” character matches any number of characters from all character classes.

Arguments





Inputs

intent

Intent (case-sensitive) for which to return the scan numbers.

allowed:

string

Default:

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")  
    # get the scan numbers associated with intent "detect planet X" (all obsids, all arrayids)  
    scan_numbers = msmd.scansforintent("detect planet X", regex=False)  
    # got all the scan numbers associated with all intents which contain ’WVR’ (all obsids, all arrayids)  
    scan_numbers = msmd.scansforintent("*WVR*")  
    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