GainTable

class GainTable(gain: ~typing.Optional[~numpy.array] = None, time: ~typing.Optional[~numpy.array] = None, interval=None, weight: ~typing.Optional[~numpy.array] = None, residual: ~typing.Optional[~numpy.array] = None, frequency: ~typing.Optional[~numpy.array] = None, receptor_frame: ~rascil.data_models.polarisation.ReceptorFrame = <rascil.data_models.polarisation.ReceptorFrame object>, phasecentre=None, configuration=None, jones_type='T')[source]

Bases: Dataset

Gain table with: time, antenna, weight columns

The weight is usually that output from gain solvers.

Here is an example:

<xarray.GainTable>
Dimensions:    (antenna: 115, frequency: 3, receptor1: 2, receptor2: 2, time: 3)
Coordinates:
  * time       (time) float64 5.085e+09 5.085e+09 5.085e+09
  * antenna    (antenna) int64 0 1 2 3 4 5 6 7 ... 108 109 110 111 112 113 114
  * frequency  (frequency) float64 1e+08 1.05e+08 1.1e+08
  * receptor1  (receptor1) <U1 'X' 'Y'
  * receptor2  (receptor2) <U1 'X' 'Y'
Data variables:
    gain       (time, antenna, frequency, receptor1, receptor2) complex128 (0...
    weight     (time, antenna, frequency, receptor1, receptor2) float64 1.0 ....
    residual   (time, frequency, receptor1, receptor2) float64 0.0 0.0 ... 0.0
    interval   (time) float32 99.72697 99.72697 99.72697
    datetime   (time) datetime64[ns] 2000-01-01T03:54:07.843184299 ... 2000-0...
Attributes:
    rascil_data_model:  GainTable
    receptor_frame:     <rascil.data_models.polarisation.ReceptorFrame object...
    phasecentre:        <SkyCoord (ICRS): (ra, dec) in deg    (180., -35.)>
    configuration:      <xarray.Configuration> Dimensions:   (id: 115, spati...

Methods Summary

to_native_dataset()

Convert to plain Dataset.

Methods Documentation

to_native_dataset()[source]

Convert to plain Dataset. Needed, e.g., for xarray.concat. This makes sure that the child class is represented as its parent class.