CalFrom

class CalFrom(gaintable: str | None = None, gainfield: str = '', interp: str = 'linear,linear', spwmap: list | tuple | None = None, caltype: str = 'unknown', calwt: bool = True)[source]

Bases: object

CalFrom represents a calibration table and the CASA arguments that should be used when applying that calibration table.

CALTYPES

an enumeration of calibration table types identified by this code.

CALTYPE_TO_VISCAL

mapping of calibration type to caltable identifier as store in the table header.

VISCAL

mapping of calibration table header information to a description of that table type.

Attributes Summary

CALTYPES

CALTYPE_TO_VISCAL

VISCAL

caltype

Return the type of calibration table.

calwt

Return the value to use for calwt when applying these calibrations.

gainfield

Return which field(s) in the calibration table to apply.

gaintable

Return the filename of the calibration table.

interp

Value to use for interp when applying these calibrations.

spwmap

Value to use for spwmap when applying these calibrations.

Methods Summary

get_caltype_for_viscal(viscal)

Return the calibration table type for given VISCAL identifier.

Attributes Documentation

CALTYPES = {'amp': 13, 'antpos': 6, 'bandpass': 2, 'finalcal': 11, 'gaincal': 1, 'gc': 7, 'kcross': 17, 'opac': 8, 'otf': 18, 'otfraster': 15, 'polarization': 5, 'ps': 14, 'rq': 9, 'swpow': 10, 'tecim': 16, 'tsys': 3, 'unknown': 0, 'uvcont': 12, 'wvr': 4}
CALTYPE_TO_VISCAL = {'antpos': ('KANTPOS JONES',), 'bandpass': ('B JONES', 'BPOLY'), 'gaincal': ('G JONES', 'GSPLINE', 'T JONES'), 'otf': ('SDSKY_OTF',), 'otfraster': ('SDSKY_RASTER',), 'ps': ('SDSKY_PS',), 'tsys': ('B TSYS',), 'uvcont': ('A MUELLER',)}
VISCAL = {'A MUELLER': 'A Mueller (baseline-based)', 'B JONES': 'B Jones (bandpass)', 'B TSYS': 'B TSYS (freq-dep Tsys)', 'BPOLY': 'B Jones Poly (bandpass)', 'D JONES': 'D Jones (instrumental polarization)', 'DF JONES': 'Df Jones (frequency-dependent instrumental polarization)', 'DFGEN JONES': 'Dfgen Jones (frequency-dependent instrumental polarization)', 'DGEN JONES': 'Dgen Jones (instrumental polarization)', 'G JONES': 'G Jones (electronic Gain)', 'GLINXPH JONES': 'GlinXph Jones (X-Y phase)', 'GSPLINE': 'G Jones SPLINE (elec. gain)', 'J JONES': 'J Jones (generic polarized gain)', 'KANTPOS JONES': 'KAntPos Jones (antenna position errors)', 'M MUELLER': 'M Mueller (baseline-based)', 'MF MUELLER': 'Mf Mueller (closure bandpass)', 'P JONES': 'P Jones (parallactic angle phase)', 'T JONES': 'T Jones (polarization-independent troposphere)', 'TF JONES': 'Tf Jones (frequency-dependent atmospheric complex gain)', 'TFOPAC': 'TfOpac (frequency-dependent opacity)', 'TOPAC': 'TOpac (Opacity corrections in amplitude)', 'X JONES': 'X Jones (antenna-based)', 'X MUELLER': 'X Mueller (baseline-based)', 'XF JONES': 'Xf Jones (antenna-based)'}
caltype

Return the type of calibration table.

calwt

Return the value to use for calwt when applying these calibrations.

gainfield

Return which field(s) in the calibration table to apply.

gaintable

Return the filename of the calibration table.

interp

Value to use for interp when applying these calibrations.

spwmap

Value to use for spwmap when applying these calibrations.

Methods Documentation

static get_caltype_for_viscal(viscal: str) str[source]

Return the calibration table type for given VISCAL identifier.

VISCAL identifiers are the caltable identifier as stored in the table header.

Parameters:

viscal -- VISCAL table identifier to convert to calibration table type.

Returns:

Type of calibration table.