sdbaselineold – ASAP SD task [DEPRECATED]: Fit/subtract a spectral baseline – single dish task
Description
### DEPRECATION WARNING ################################################# This task will be removed in CASA 5.1. The functionality of this task with MeasurementSet format is replicated with sdbaseline. #########################################################################
Task sdbaselineold performs baseline fitting/removal for single-dish spectra. The fit parameters, terms and rms of base-line are saved to an ascii file, ‘<outfile>_blparam.txt’.
Parameters
Parameter |
Default |
Description |
|---|---|---|
infile |
|
|
antenna |
|
|
fluxunit |
|
units of the flux ['K' or 'Jy'] (''=current) |
telescopeparam |
|
|
field |
|
|
spw |
|
|
restfreq |
|
|
frame |
|
frequency reference frame ['LSRK', 'TOPO', 'LSRD', 'BARY', 'GALACTO', 'LGROUP', or 'CMB'] (''=current) |
doppler |
|
doppler convention ['RADIO', 'OPTICAL', 'Z', 'BETA', or 'GAMMA'] (''=current) |
timerange |
|
|
scan |
|
|
pol |
|
|
tau |
|
|
maskmode |
|
mode of setting additional channel masks ['auto', 'list', or 'interact'] |
thresh |
|
|
avg_limit |
|
|
edge |
|
|
blfunc |
|
baseline model function ['poly', 'chebyshev', 'cspline', or 'sinusoid' |
order |
|
|
npiece |
|
|
applyfft |
|
|
fftmethod |
|
method for automatically set wave numbers of sinusoids ['fft'] |
fftthresh |
|
|
addwn |
|
|
rejwn |
|
|
clipthresh |
|
|
clipniter |
|
|
verify |
|
interactively verify the results of operation for each spectrum [True, False] (see description in help) |
verbose |
|
output fitting results to logger [True, False] |
bloutput |
|
output fitting results to a text file [True, False] |
blformat |
|
format of the text file specified with bloutput ['' or 'csv'] |
showprogress |
|
show progress status for large data [True, False] |
minnrow |
|
|
outfile |
|
|
outform |
|
output file format ['ASAP', 'MS2', 'ASCII', or 'SDFITS'] |
overwrite |
|
overwrite the output file if already exists [True, False] |
plotlevel |
|
Parameter Explanations
infile
''
name of input SD dataset
antenna
int(0)
select an antenna name or ID, e.g. 'PM03' (only effective for MS input)
fluxunit
''
units of the flux (''=current)
telescopeparam
''
parameters of telescope for flux conversion (see examples in help)
field
''
select data by field IDs and names, e.g. '3C2*' (''=all)
spw
''
select data by IF IDs (spectral windows), e.g. '3,5,7' (''=all)
restfreq
''
the rest frequency, e.g. '1.41GHz' (default unit: Hz) (see examples in help)
frame
''
frequency reference frame (''=current)
doppler
''
doppler convention (''=current). Effective only when spw selection is in velocity unit.
timerange
''
select data by time range, e.g. '09:14:0~09:54:0' (''=all) (see examples in help)
scan
''
select data by scan numbers, e.g. '21~23' (''=all)
pol
''
select data by polarization IDs, e.g. '0,1' (''=all)
tau
float(0.0)
the zenith atmospheric optical depth for correction
maskmode
''
mode of setting additional channel masks
thresh
float(5.0)
S/N threshold for linefinder
avg_limit
int(4)
channel averaging for broad lines
edge
numpy.array( [ int(0) ] )
channels to drop at beginning and end of spectrum
blfunc
'poly'
baseline model function
order
int(5)
order of baseline model function
npiece
int(2)
number of element polynomials for cubic spline curve
applyfft
True
automatically set wave numbers of sinusoids
fftmethod
'fft'
method for automatically set wave numbers of sinusoids
fftthresh
float(3.0)
threshold to select wave numbers of sinusoids
addwn
*UNKNOWN*
additional wave numbers to use
rejwn
*UNKNOWN*
wave numbers NOT to use
clipthresh
float(3.0)
clipping threshold for iterative fitting
clipniter
int(0)
maximum iteration number for iterative fitting
verify
False
interactively verify the results of operation for each spectrum (see description in help)
verbose
True
output fitting results to logger
bloutput
True
output fitting results to a text file
blformat
''
format of the text file specified with bloutput
showprogress
True
show progress status for large data
minnrow
int(1000)
minimum number of input spectra to show progress status
outfile
''
name of output file (See a WARNING in help)
outform
'ASAP'
output file format (See a WARNING in help)
overwrite
False
overwrite the output file if already exists
plotlevel
int(0)
control for plotting of results (see examples in help)