Source code for casatasks.calibration.wvrgcal

#
# stub function definition file for docstring parsing
#

[docs]def wvrgcal(vis, caltable='', toffset=0, segsource=True, sourceflag=[''], tie=[''], nsol=1, disperse=False, wvrflag=[''], statfield='', statsource='', smooth='', scale=1., spw=[''], wvrspw=[''], reversespw='', cont=False, maxdistm=500., minnumants=2, mingoodfrac=0.8, usefieldtab=False, refant=[''], offsetstable=''): r""" Generate a gain table based on Water Vapour Radiometer data [`Description`_] [`Examples`_] [`Development`_] [`Details`_] Parameters - vis_ (string) - Name of input visibility file - caltable_ (string='') - Name of output gain calibration table - toffset_ (double=0) - Time offset (sec) between interferometric and WVR data - segsource_ (bool=True) - Do a new coefficient calculation for each source .. raw:: html <details><summary><i> segsource = True </i></summary> - tie_ (stringArray=['']) - Prioritise tieing the phase of these sources as well as possible (requires segsource=True) - sourceflag_ (stringArray=['']) - Regard the WVR data for these source(s) as bad and do not produce corrections for it (requires segsource=True) .. raw:: html </details> .. raw:: html <details><summary><i> segsource = False </i></summary> - nsol_ (int=1) - Number of solutions for phase correction coefficients (nsol>1 requires segsource=False) .. raw:: html </details> - disperse_ (bool=False) - Apply correction for dispersion - wvrflag_ (stringArray=['']) - Regard the WVR data for these antenna(s) as bad and replace its data with interpolated values from neighbouring antennas - statfield_ (string='') - Compute the statistics (Phase RMS, Disc) on this field only - statsource_ (string='') - Compute the statistics (Phase RMS, Disc) on this source only - smooth_ (string='') - Smooth calibration solution on the given timescale - scale_ (double=1.) - Scale the entire phase correction by this factor - spw_ (intArray=['']) - List of the spectral window IDs for which solutions should be saved into the caltable - wvrspw_ (intArray=['']) - List of the spectral window IDs from which the WVR data should be taken - reversespw_ (string='') - Reverse the sign of the correction for the listed SPWs (only needed for early ALMA data before Cycle 0) - cont_ (bool=False) - Estimate the continuum (e.g., due to clouds) (experimental) - maxdistm_ (double=500.) - maximum distance (m) of an antenna used for interpolation for a flagged antenna - minnumants_ (int=2) - minimum number of near antennas (up to 3) required for interpolation - mingoodfrac_ (double=0.8) - If the fraction of unflagged data for an antenna is below this value (0. to 1.), the antenna is flagged. - usefieldtab_ (bool=False) - derive the antenna AZ/EL values from the FIELD rather than the POINTING table - refant_ (stringArray=['']) - use the WVR data from this antenna for calculating the dT/dL parameters (can give ranked list) - offsetstable_ (string='') - (experimental) subtract the temperature offsets in this table from the WVR measurements before calculating the phase corrections .. _Description: Description Information about the observation and the performance of **wvrgcal** is written to the CASA logger and also returned in a dictionary. The dictionary element 'success' is True if no errors occured. Of particular note is the discrepancy statistic (Disc), where high values (> a few hundred microns) may indicate some levels of cloud contamination and the effect of applying the **wvrgcal** correction should be checked; values > 1000 :math:`\mu` m in all antennas have currently been found to indicate that **wvrgcal** correction should not be used. .. rubric:: Parameter descriptions *vis* Name of input visibility file. Default: none. Examples: *vis='ngc5921.ms'* *caltable* Name of output gain calibration table. Default: none. Examples: *caltable='ngc5921.wvr'* *toffset* Time offset (sec) between interferometric and WVR data. Default: 0 (ALMA default for cycle 1, for cycle 0, i.e. up to Jan 2013 it was -1) *segsource* Do a new coefficient calculation for each source. Default: True *tie* Prioritise tieing the phase of these sources as well as possible (requires *segsource=True*). Default: [ ]. Examples: *tie=['3C273,NGC253', 'IC433,3C279']* *sourceflag* Flag the WVR data for these source(s) as bad and do not produce corrections for it (requires *segsource=True*). Default: [ ]. Examples: *sourceflag=['3C273']* *nsol* Number of solutions for phase correction coefficients during this observation. By default only one set of coefficients is generated for the entire observation. If more sets are requested, then they will be evenly distributed in time throughout the observation. Values > 1 require *segsource=False*. Default: 1 *disperse* Apply correction for dispersion. Default: False *wvrflag* Regard the WVR data for these antenna(s) as bad and use interpolated values instead. Default: [ ]. Examples: *wvrflag=['DV03','DA05','PM02']* *statfield* Compute the statistics (Phase RMS, Disc) on this field only. Default: '' (all) *statsource* Compute the statistics (Phase RMS, Disc) on this source only. Default: '' (all) *smooth* Smooth the calibration solution on the given timescale. Default: '' (no smoothing). Examples: *smooth='3s'* smooth on a timescale of 3 seconds. *scale* Scale the entire phase correction by this factor. Default: 1. (no scaling) *spw* List of the spectral window IDs for which solutions should be saved into the caltable. Default: [ ] (all spectral windows). Examples: *spw=[17,19,21,23]* *wvrspw* List of the spectral window IDs from which the WVR data should be taken. Default: [ ] (all WVR spectral windows). Examples: *wvrspw=[0]* *reversespw* Reverse the sign of the correction for the listed SPWs (only neede for early ALMA data before Cycle 0). Default: '' (none). Examples: *reversespw='0~2,4'*; spectral windows 0,1,2,4 *cont* Estimate the continuum (e.g., due to clouds). Default: False *maxdistm* Maximum distance (m) an antenna may have to be considered for being part of the antenna set (minnumants to 3 antennas) for the interpolation of a solution for a flagged antenna. Default: 500. *minnumants* Minimum number of near antennas required for interpolation. Default: 2 *mingoodfrac* If the fraction of unflagged data for an antenna is below this value (0.0 to 1.0), the antenna is flagged. Default: 0.8 *usefieldtab* Derive the antenna AZ/EL values from the FIELD rather than the POINTING table. Default: False *refant* Use the WVR data from this antenna for calculating the dT/dL parameters (can give ranked list). Default: '' (use the first good or interpolatable antenna), Examples: *refant='DA45'* - use DA45; *refant=['DA45','DV51']* - use DA45 and if that is not good, use DV51 instead. *offsetstable* Subtract the temperature offsets in this table from the WVR measurements before using them to calculate the phase corrections (experimental). Default: '' (do not apply any offsets). Examples: *offsetstable='uid___A002_Xabd867_X2277.cloud_offsets'* use the given table. .. _Examples: Examples Usage :: wvrgcal(vis='uid___A002_X1d54a1_X5.ms', caltable='cal-wvr-uid___A002_X1d54a1_X5.W',toffset=-1, segsource=True, tie=['Titan,1037-295,NGC3256'], statsource='1037-295') .. _Development: Development No additional development details .. _Details: Parameter Details Detailed descriptions of each function parameter .. _vis: | ``vis (string)`` - Name of input visibility file .. _caltable: | ``caltable (string='')`` - Name of output gain calibration table .. _toffset: | ``toffset (double=0)`` - Time offset (sec) between interferometric and WVR data .. _segsource: | ``segsource (bool=True)`` - Do a new coefficient calculation for each source .. _sourceflag: | ``sourceflag (stringArray=[''])`` - Regard the WVR data for these source(s) as bad and do not produce corrections for it (requires segsource=True) .. _tie: | ``tie (stringArray=[''])`` - Prioritise tieing the phase of these sources as well as possible (requires segsource=True) .. _nsol: | ``nsol (int=1)`` - Number of solutions for phase correction coefficients (nsol>1 requires segsource=False) .. _disperse: | ``disperse (bool=False)`` - Apply correction for dispersion .. _wvrflag: | ``wvrflag (stringArray=[''])`` - Regard the WVR data for these antenna(s) as bad and replace its data with interpolated values from neighbouring antennas .. _statfield: | ``statfield (string='')`` - Compute the statistics (Phase RMS, Disc) on this field only .. _statsource: | ``statsource (string='')`` - Compute the statistics (Phase RMS, Disc) on this source only .. _smooth: | ``smooth (string='')`` - Smooth calibration solution on the given timescale .. _scale: | ``scale (double=1.)`` - Scale the entire phase correction by this factor .. _spw: | ``spw (intArray=[''])`` - List of the spectral window IDs for which solutions should be saved into the caltable .. _wvrspw: | ``wvrspw (intArray=[''])`` - List of the spectral window IDs from which the WVR data should be taken .. _reversespw: | ``reversespw (string='')`` - Reverse the sign of the correction for the listed SPWs (only needed for early ALMA data before Cycle 0) .. _cont: | ``cont (bool=False)`` - Estimate the continuum (e.g., due to clouds) (experimental) .. _maxdistm: | ``maxdistm (double=500.)`` - maximum distance (m) of an antenna used for interpolation for a flagged antenna .. _minnumants: | ``minnumants (int=2)`` - minimum number of near antennas (up to 3) required for interpolation .. _mingoodfrac: | ``mingoodfrac (double=0.8)`` - If the fraction of unflagged data for an antenna is below this value (0. to 1.), the antenna is flagged. .. _usefieldtab: | ``usefieldtab (bool=False)`` - derive the antenna AZ/EL values from the FIELD rather than the POINTING table .. _refant: | ``refant (stringArray=[''])`` - use the WVR data from this antenna for calculating the dT/dL parameters (can give ranked list) .. _offsetstable: | ``offsetstable (string='')`` - (experimental) subtract the temperature offsets in this table from the WVR measurements before calculating the phase corrections """ pass