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

1.3.2 Get the exposure time for the specified scan, spwid, polarizaiton ID, array ID, and observation ID.


Description

Get the exposure time for the specified scan, spwid, polarizaiton ID, array ID, and observation ID. This is the exposure time of the record with the lowest time stamp of the records associated with these parameters. Returns a quantity dictionary. If polid is not specified (or specified and negative) and there is only one polarization ID in for the specified combination of scan, spwid, obsID, and arrayID, then that polarization ID is used. If there are multiple polarization IDs for the combination of other parameters, a list of these is logged and an empty dictionary is returned.

Arguments





Inputs

scan

Scan number.

allowed:

int

Default:

0

spwid

Spectral window ID.

allowed:

int

Default:

0

polid

Polarization ID.

allowed:

int

Default:

-1

obsid

Observation ID.

allowed:

int

Default:

0

arrayid

Array ID.

allowed:

int

Default:

0

Returns
record

Example

 
    msmd.open("my.ms")  
    # get the exposure time for scan 1, spwid 2, and polid 3  
    # for obsid=0 and arrayid=0  
    integration_time = msmd.getexposuretime(scan=1, spwid=2, polid=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