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

1.3.2 Get an array of the unique, zero-based, field IDs for the specified time range (time-tol to time+tol).


Description

Get an array of the unique, zero-based, fieldIDs for the specified time range (time-tol to time+tol).

Arguments





Inputs

time

Time at center of time range.

allowed:

double

Default:

-1

tol

Time on either side of center for specifying range.

allowed:

double

Default:

0

Returns
intArray

Example

 
    msmd.open("my.ms")  
    # get the field IDs associated with the specified time range  
    fields = msmd.fieldsfortimes(4.8428293714e+09, 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