The calibration and imaging formalism used in AIPS++is based closely
on the generic instrument model of Hamaker, Bregman and Sault
(1996). This formalism, referred to as the Measurement Equation (ME),
is instrument-independent and represents calibration effects in both
the visibility and image plane as Jones matrices, with arbitrary
parametrization and polarization basis. It's use in AIPS++is
described by Cornwell (1995) and Noordam (1995), and references
therein.
The calibration table format used in AIPS++was designed to support
the fundamental principles on which the ME formalism is based. The
definition of a standard calibration table format allows calibration
components to be stored permanently for subsequent retrieval,
application or modification. The current calibration table format
revision level is v2.0.
The underlying principles on which the calibration table data format
is based are described below.
Data representation:AIPS++calibration tables are stored
as AIPS++Tables, in keeping with the general rule in AIPS++
for all data visible to end users. As such, there is full user access
to all data stored in a calibration table. These data can be
retrieved, inspected and modified in the general user interface. The
implementation of the calibration tables also uses other common Tables infrastructure such as TableMeasures.
ME formalism: the calibration table format was chosen to
support the key assumptions of the ME formalism, including support for:
i) arbitrary polarization bases; ii) arbitrary Jones matrix
parametrization; and, iii) generic, instrument-independent
representation of calibration components.
Unified calibration: the calibration table format has been
designed to support both single-dish and synthesis calibration,
antenna- and baseline-based Jones matrices, as well as
visibility-plane and image-plane calibration components in a common
format, with specialization where appropriate. This was chosen to
maximize the re-use of calibration information and allow it to be
transferred between different observing contexts.
MS integration: the calibration table format is fully
integrated with the MeasurementSet (MS) data format, supports all data
representations possible in the MS, and re-uses all applicable column
and keyword names for common underlying physical concepts. A
calibration table can be attached to one or more MeasurementSets, but
exists as a stand-alone table with a user-specified name. This
supports both single-project and multi-project calibration schemes.
History tracking: the calibration table format supports
full tracking of the calibration history attached to each calibration
solution or step in the calibration process.
This section describes and defines all fields in the calibration table
format. At the highest level, the calibration table consists of a main
table, CAL_MAIN, and two sub-tables stored as table keywords
CAL_DESC and CAL_HISTORY. The CAL_DESC sub-table describes the
shape and coordinates of the array columns in the main calibration
table. CAL_HISTORY references the associated calibration history for
each row in the main table. All tables are described separately below.
The ME contains several different Jones matrix calibration components
which are enumerated in the references listed above. In general,
the Jones matrix calibration components fall into the following broad
categories:
Antenna-based, visibility-plane, non-solvable: i) P
- parallactic angle; and, ii) C - polarization configuration.
Antenna-based, visibility-plane, solvable: i) T -
atmospheric correction; ii) G - electronic gain; iii) D -
instrumental polarization; iv) B - bandpass; and v) F -
ionosphere correction.
Interferometer-based, visibility-plane, solvable: The only
supported interferometer-based correction at present is a
multiplicative, solvable term (M). An additive term is also
allowed by the ME.
Antenna-based, image-plane, non-solvable: i) P -
parallactic angle.
Antenna-based, image-plane, solvable: i) T -
atmosphere correction; ii) D - instrumental polarization; iii)
F - ionosphere correction; and iv) E - voltage pattern.
Note that the same Jones matrix can appear as both a visibility-plane
and image-plane correction in the ME, as appropriate. In addition, an
individual Jones matrix component may either be discretely sampled or
modeled using arbitrary parameters.
Jones matrices of different types (time-variable, solvable,
baseline-based, antenna-based and parametrized) share as many common
sections in the CAL_MAIN table as appropriate, thus representing the
inheritance and specialization inherent to the family of Jones matrix
types. This inheritance relationship is illustrated by the VisJones and SkyJones class families in the AIPS++library.
Each calibration table holds only Jones calibration matrices of one
type (e.g. GJones, or PJones etc.).
The key sections in the CAL_MAIN table are as follows:
Primary MS indices: The first section contains the MS
indices representing the MS data from which the calibration solution
was derived or which otherwise label the calibration data. Fundamental
amongst these are the time and interval of each row. Indices over
which the MS data were averaged prior to the solution, or which are
not applicable, are set to -1.
Secondary MS fields: The primary MS indices can be used to
retrieve any secondary MS information by direct lookup in the
associated MS. However, a limited subset of MS information is stored
directly in the calibration table, to minimize the need for lookup in
the MS for the most common secondary information. This breaks database
normalization, but as is commonly the case, is warranted when dictated
by efficiency. This also allows the calibration table to be used in
many cases when the associated MS is not available. Where these column
names are not unique within the MS as a whole, they are prefixed by
the associated MS subtable name (e.g. SOURCE_CODE).
Gain values: The calibration gain factors, represented as
sampled complex (1x1), (2x2) or (4x4) Jones matrices, in
array format over optional axes of spectral window identifier,
frequency channel and sky coordinates, are stored in a GAIN
column. This column is optional for parametrized calibration
components.
Reference frame: A section is provided to represent the
reference antenna, feed, receptor, frequency and direction for
calibration parameters, where appropriate.
Solution statistics: A section is defined to contain the
statistical properties of each calibration solution. This includes
boolean flags for the calibration gain arrays and the fit and fit
weight, both per array element and for the solution interval as a
whole.
Jones matrix parametrization: Customized columns required
to represent parametrized Jones matrices are defined in a separate
section. These are different for each parametrized type.
Sub-table pointers: Indices per CAL_MAIN row, into
the CAL_DEC and CAL_HISTORY sub-tables, are defined separately.
The CAL_DESC sub-table defines the dimensions of the array-based
columns in CAL_MAIN, and specifies the coordinates of the array axes.
These coordinates include frequency, receptor polarization, and for
image-plane components, directions and regions in the image-plane.
The frequency labeling of discretely sampled calibration gain values,
as well as parametrized calibration models, may differ from the
frequency labeling in the associated MS, if calibration is derived by
aggregating or sub-dividing the MS spectral windows. Hence, the
spectral windows and frequency channels along the calibration array
axes, as described in CAL_DESC, may differ from the MS itself. Where
there is a direct mapping to MS spectral windows and channel ranges,
this is recorded.
The polarization axis is defined in terms of a list of receptor
polarizations. As an enumerated coordinate, these overlap with those
used in the associated MS.
For parametrized calibration components, the coordinate axes in
CAL_DESC define the coordinate ranges over which the parameters are
valid, and also the dimensions of the model parameters stored as
arrays. In this case, the frequency and direction coordinates also
define the units and frame for the parameters.
The image-plane direction array axis is defined by specifying an array
or directions and associated regions about each direction in the image
plane. This allows arbitrary discrete sampling of image-plane Jones
calibration matrices, as well as arbitrary parameter domains for
image-plane calibration models.
The CAL_HISTORY sub-table records the calibration context for the
solutions recorded in each main calibration table row. This includes
the parameters used by the calibration solver, the other calibration
tables which may have been applied in the solution, any data
selection, as well as an arbitrary set of notes the user may wish to
attach to the calibration entry for future reference. All CAL_HISTORY
fields are in string form, with a general keyword-value format.
(i) The dimensions of the array-based columns, which can vary by
row, and are defined in the CAL_DESC sub-table are as follows: (a)
(Njones, Njones, Nspw, Nchan); and (b)
(Nreceptors, Nspw, Nchan).
(ii) All MS primary indices point into the associated MS, as
defined in the CAL_DESC sub-table as MS_NAME. See AIPS++note 229
for a full description of the MS data format.
TIME
Mid-point (not centroid) of calibration interval.
TIME_EXTRA_PREC
Extra TIME precision.
INTERVAL
Time interval for which this calibration solution is
valid, or over which it was determined.
ANTENNA1
Antenna number (
0), and a direct index into
the ANTENNA sub-table rownr of the associated MS.
FEED1
Feed number (
0).
FIELD_ID
Field identifier (
0).
ARRAY_ID
Subarray identifier (
0), which identifies data
in separate subarrays.
OBSERVATION_ID
Observation identifier (
0), which identifies
data from separate observations.
SCAN_NUMBER
Arbitrary scan number to identify data taken in
the same logical scan. Not required to be unique.
PROCESSOR_ID
Processor indentifier (
0), and a direct
index into the PROCESSOR sub-table rownr.
PHASE_ID
Switching phase identifier (
0)
STATE_ID
State identifier (
0), as defined in Section 3.1.5.
PULSAR_BIN
Pulsar bin number for the data record. Pulsar data
may be measured for a limited number of pulse phase bins. The pulse
phase bins are described in the PULSAR sub-table and indexed by this
bin number.
PULSAR_GATE_ID
Pulsar gate identifier (
0), and a direct
index into the PULSAR_GATE sub-table rownr.
FREQ_GROUP
The frequency group to which the spectral window belongs.
This is used to associate spectral windows for joint calibration purposes.
FREQ_GROUP_NAME
The frequency group name; user specified.
FIELD_NAME
Field name; user specified.
FIELD_CODE
Field code indicating special characteristics of the
field; user specified.
SOURCE_NAME
Source name; user specified.
SOURCE_CODE
Source code, used to describe any special characteristics
f the source, such as the nature of a calibrator. Reserved keyword,
including ("BANDPASS CAL").
CALIBRATION_GROUP
Calibration group number to which this source
belongs; user specified.
GAIN
Array of calibration gain values, expressed as Jones
matrices in an array of dimension (b), which is defined together with
the array coordinates in the CAL_DESC sub-table.
REF_ANT
Array of reference antenna numbers, of dimension (b).
REF_FEED
Array of reference feed numbers, of dimension (b).
REF_RECEPTOR
Array of reference receptor numbers, of dimension (b).
REF_FREQUENCY
Array of reference frequencies, of dimension (b).
MEAS_FREQ_REF
Array of reference frequency Measure
references, of dimension (b).
REF_DIRECTION
Array of reference directions, of dimension (b).
MEAS_DIR_REF
Array of reference direction Measure
references, of dimension (b).
CAL_MAIN: additions for antenna-based, solvable, visibility-plane components
Name
Format
Units
Measure
Comments
Columns
Solution statistics
TOTAL_SOLUTION_OK
Bool
Validity of total solution
TOTAL_FIT
Float
Total fit
TOTAL_FIT_WEIGHT
Float
Total fit weight
SOLUTION_OK
Bool(a)
Solution validity mask
FIT
Float(a)
Fit array
FIT_WEIGHT
Float(a)
Fit weight array
Notes:
(i) The dimension (a) of the array-based columns is:
(Njones, Njones, Nspw, Nchan). These dimensions are defined in the
CAL_DESC sub-table, and can vary by row.
TOTAL_SOLUTION_OK
False if the current calibration solution
interval is flagged, else True.
TOTAL_FIT
Total fit for the solution interval as a whole, as
.
TOTAL_FIT_WEIGHT
Total fit weight for the solution interval
as a whole
(weight).
SOLUTION_OK
Validity mask for each element of the calibration
solution array, of dimension (a).
FIT
Fit for each element of the calibration solution array, of
dimension (a), as defined in the TOTAL_FIT_WEIGHT description above.
FIT_WEIGHT
Fit weight for each element of the calibration
solution array, of dimension (a).