

NRAO Home > CASA > CASA Toolkit Reference Manual 

msmetadata.effexposuretime  Function
1.3.2 Get the effective exposure (onsource integration time)
Description
Get the effective exposure time (equivalent to what might be more commonly
known as total integration time or total sample time) is calculated by
summing over all rows in the main MS table, excluding autocorrelations or
rows where FLAG_ROW is false, thusly:
sum[over i] (exposure[i]*sum[over j](UFBW[i, j])/ncorrelations[i] )/ nmaxbaselines
where exposure[i] is the value of EXPOSURE for the ith row, the inner sum is performed over each correlation for that row, UFBW is the unflagged fractional bandwidth is determined by summing all the widths of the unflagged channels for that correlation and dividing by the total bandwidth of all spectral windows observed at the timestamp of row i, ncorrelations is the number of correlations determined by the number of rows in the FLAG matrix for MS row i, and nmaxbaselines is the maximum number of antenna pairs, nantennas*(nantennas1)/2, where nantennas is the number of antennas in the ANTENNA table. This method returns a quantity (a dictionary having a numerical value and a string unit).
Arguments
record
Example
msmd.open("my.ms")
# get the effective exposure time.
exposure_time = msmd.effexposuretime()
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