Classes | |
class | TsysFillerBase |
class | SimpleTsysFiller |
class | TsysFiller |
Functions | |
def | fillTsys |
def | interpolateInFrequency |
def | interpolateInTime |
def | __checkCoverage |
if abc.min() <= self.abcsp.min() \ and abc.max() >= self.abcsp.max(): | |
def | __checkChannels |
return (ea[0] <= eb[0] and ea[1] >= eb[1]) | |
def | __edge |
def | _constructAbcissa |
def | getPolarizations |
def | getSpecAbcissa |
def | getTsysAbcissa |
def | fillScanAveragedTsys |
def | __extend |
def | _search |
Variables | |
tuple | _tb |
dictionary | scaling |
def filltsys.__checkChannels | ( | self, | |
a, | |||
b | |||
) | [private] |
return (ea[0] <= eb[0] and ea[1] >= eb[1])
Check location of first and last channels
Definition at line 413 of file filltsys.py.
def filltsys.__checkCoverage | ( | self, | |
a, | |||
b | |||
) | [private] |
if abc.min() <= self.abcsp.min() \ and abc.max() >= self.abcsp.max():
Check frequency coverage
Definition at line 398 of file filltsys.py.
def filltsys.__edge | ( | self, | |
abc | |||
) | [private] |
return left and right edge values.
Definition at line 419 of file filltsys.py.
def filltsys.__extend | ( | self, | |
a, | |||
aref, | |||
b | |||
) | [private] |
Extend spectra
Definition at line 564 of file filltsys.py.
def filltsys._constructAbcissa | ( | self, | |
ifno | |||
) | [private] |
Construct abcissa array from REFPIX, REFVAL, INCREMENT
Definition at line 431 of file filltsys.py.
def filltsys._search | ( | self, | |
tcol, | |||
t, | |||
startpos = 0 |
|||
) | [private] |
Simple search Return minimum index that satisfies tcol[index] > t. If such index couldn't be found, return -1. tcol -- array t -- target value startpos -- optional start position (default 0)
Definition at line 610 of file filltsys.py.
References irc_cs_task_regression.max.
def filltsys.fillScanAveragedTsys | ( | self, | |
mode = 'linear' |
|||
) |
Fill Tsys Tsys is averaged over scan first. Then, Tsys is interpolated in time and frequency. Finally, averaged and interpolated Tsys is used to fill TSYS field for spectral data.
Definition at line 487 of file filltsys.py.
References interpolateInFrequency(), interpolateInTime(), and irc_cs_task_regression.max.
def filltsys.fillTsys | ( | filename, | |
specif, | |||
tsysif = None , |
|||
mode = 'linear' , |
|||
extrap = False |
|||
) |
high level function to fill Tsys on spectral data Tsys is processed along the following three steps: 1. average within scan 2. if possible, linearly interpolate in time. 3. interpolate in frequency with specified mode filename -- input filename specif -- IFNO for spectral data tsysif -- IFNO for calibration (Tsys) data default: None (try to find automatically) options: any integer mode -- interpolation mode along frequency axis default: 'linear' options: 'linear',,'nearest','zero', 'slinear','quadratic','cubic' any integer specifying an order of spline interpolation
Definition at line 43 of file filltsys.py.
def filltsys.getPolarizations | ( | self | ) |
Get list of POLNO's
Definition at line 450 of file filltsys.py.
def filltsys.getSpecAbcissa | ( | self, | |
unit = 'GHz' |
|||
) |
Get abcissa for spectral data unit -- spectral unit default: 'GHz' options: 'channel', 'GHz', 'MHz', 'kHz', 'Hz'
Definition at line 459 of file filltsys.py.
def filltsys.getTsysAbcissa | ( | self, | |
unit = 'GHz' |
|||
) |
Get abcissa for Tsys data unit -- spectral unit default: 'GHz' options: 'channel', 'GHz', 'MHz', 'kHz', 'Hz'
Definition at line 473 of file filltsys.py.
def filltsys.interpolateInFrequency | ( | a, | |
b, | |||
x, | |||
mode = 'linear' |
|||
) |
Interpolate 1d array 'b', which is based on axis 'a', to 'x'. Inputs: a -- base axis (1-d array) b -- base array (1-d array) x -- transfer axis (1-d array) mode -- interpolation mode default: 'linear' options: 'linear','nearest','zero', 'slinear','quadratic','cubic' Returns: interpolated 1d array
Definition at line 82 of file filltsys.py.
References 3C391polim_regression.f.
Referenced by fillScanAveragedTsys().
def filltsys.interpolateInTime | ( | t1, | |
y1, | |||
t2, | |||
y2, | |||
t | |||
) |
Linearly interpolate between y1 and y2, which are defined at t1 and t2 respectively, to t, where t1 <= t <= t2. Inputs: t1, t2 -- base time stamp y1, y2 -- the value at t1 and t2 (either scalar or conformed numpy array) t -- transfer time stamp Returns: interpolated value
Definition at line 111 of file filltsys.py.
Referenced by filltsys.SimpleTsysFiller.fillScanAveragedTsys(), and fillScanAveragedTsys().
tuple filltsys._tb |
Definition at line 26 of file filltsys.py.
dictionary filltsys.scaling |
Definition at line 28 of file filltsys.py.