|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
sd.dosigref - Function
5.1.1 Equivalent function with dosigref in GBTIDL
Description
The method calculates a quotient (sig-ref/ref * Tsys). Adopted from GBTIDL
dosigref.
Arguments
Inputs |
| ||
sig |
| On-source data as a scantable
| |
| allowed: | scantable | |
| Default: | ||
ref |
| Reference data as a scantable | |
| allowed: | scantable |
|
| Default: |
| |
smooth |
| Width of box car smoothing for reference
| |
| allowed: | int |
|
| Default: | 1 (no smoothing) |
|
tsysval |
| User specified Tsys
| |
| allowed: | float |
|
| Default: | 0.0 (use Tsys in the data) |
|
tauval |
| User specified optical depth (required if tsysval is set)
| |
| allowed: | float |
|
| Default: | 0.0 |
|
scantable
Example
sel = sd.selector()
# calibration scans
sel.set_types([srctype.poncal,srctype.poffcal])
s.set_selection(sel)
ssubon=s.copy()
s.set_selection()
sel.reset()
# off-calibration scans
sel.set_types([srctype.pson,srctype.psoff])
s.set_selection(sel)
ssuboff=s.copy()
s.set_selection()
sel.reset()
# calibration
cals = sd.dototalpower(ssubon,ssuboff)
# ON scan
sel.set_types(srctype.pson)
cals.set_selection(sel)
sig = cals.copy()
cals.set_selection()
sel.reset()
# OFF scan
sel.set_types(srctype.psoff)
cals.set_selection(sel)
ref = cals.copy()
cals.set_selection()
sel.reset()
# get calibrated data
ress = sd.dosigref(sig,ref,smooth=1)
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