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

1.3.2 Get the unique times for the specified scan number, observation ID, and array ID.


Description

Get the unique times for the specified scan number, observation ID, and array ID. If perspw=True, the returned data structure is a dictionary that has keys representing zero-based spectral window IDs and values representing the unique values of the TIME column corrsponding to the specified scan and that corresponding spectral window ID. If False, an array of unique values from the TIME column for the specified scan is returned; there is no separation into spectral window IDs.

Arguments





Inputs

scan

Scan number for which to return the times.

allowed:

int

Default:

-1

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

perspw

Return output dictionary with keys representing spectral window IDs (True), or an array of all times (False).

allowed:

bool

Default:

false

Returns
anyvariant

Example

 
    msmd.open("my.ms")  
    # get the times associated with scan number 10, all obsids, all arrayids.  
    times = msmd.timesforscans(10)  
    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