NRAO Home > CASA > CASA Toolkit Reference Manual
sd.scantable.average_time - Function

5.1.2 Return time average of a scan
Description

Return the (time) weighted average of a scan.

The weight argument specifies weighting scheme. Valid options are:

’none’:no weight
’var’:1/var(spec) weighted
’tsys’:1/Tsys**2 weighted
’tint’:integration time weighted (default)
’tintsys’:Tint/Tsys**2 weightd
’median’:median averaging

The align argument is effective only for channel. If it is True, align the spectra in velocity before averaging. It takes the time of the first spectrum as reference time.

Arguments





Inputs

mask

An optional mask (only used for ’var’ and ’tsys’ weighting)

allowed:

bool array

Default:

None

scanav

True averages each scan separately, False averages all scans together

allowed:

bool

Default:

False

weight

Weighting scheme

allowed:

string

Default:

’none’

align

Align the spectral in velocity before averaging

allowed:

bool

Default:

False

compel

True forces to average overwrapped IFs

allowed:

bool

Default:

False





Returns
scantable

Example

        scan = sd.scantable(’OrionS_rawACSmod_cal’,average=False)  
        # time average the scantable without using a mask  
        newscan = scan.average_time()


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