|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
sd.average_time - Function
5.1.1 Averaging data in Time
Description
The function computes a weighted time average of a scantable or a list of
scantables. The averaging is done in channel only. Supported weighting
schemes are as follows:
- none — no weighting
- var — 1/var(spectrum) weighted
- tsys — 1/Tsys**2 weighted
- tint — integration time weighted
- tintsys — Tint/Tsys**2 weighted
- median — median averaging
Arguments
Inputs |
| ||
| Input data as a scantable
| ||
| allowed: | scantable or a list of scantables | |
| Default: | ||
mask |
| An optional mask (only used for ’var’ and ’tsys’
weighting)
| |
| allowed: | bool list | |
| Default: | none |
|
scanav |
| True averages each scan separately, False averages all
scans together
| |
| allowed: | bool |
|
| Default: | False |
|
weight |
| Weighting scheme (see description)
| |
| allowed: | string |
|
| Default: | ’tint’ |
|
align |
| Align the spectra in velocity before averaging. It takes
the time of the first spectrum in the first scantable as
reference time.
| |
| allowed: | bool |
|
| Default: | False |
|
scantable
Example
scanb = sd.scantable(’scanb.asap’)
# return a time averaged scan from scana and scanb
# without using a mask
scanav = sd.average_time(scana,scanb)
# or equivalent
scanav = sd.average_time([scana, scanb])
# return the (time) averaged scan, i.e. the average of
# all correlator cycles
scanav = sd.average_time(scan, scanav=True)
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