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

1.3.2 Get the time range for the specified observation ID


Description

Get the time range for the specified observation ID. The return value is a dictionary containing keys ”begin” and ”end”. Each of the associated value are dictionaries representing epochs which are valid measure records. The values are taken directly from the OBSERVATION subtable; no half-intervals are added or subtracted.

Arguments





Inputs

obsid

Zero-based observation ID for which to get the time range.

allowed:

int

Default:

-1

Returns
record

Example

 
    msmd.open("my.ms")  
    # get the time range associated with observation ID 3  
    timerange = msmd.timerangeforobs(3)  
    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