Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatools/__casac__/wvr.py: 36%
94 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-10-31 17:39 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-10-31 17:39 +0000
1# This file was automatically generated by SWIG (http://www.swig.org).
2# Version 3.0.12
3#
4# Do not make changes to this file unless you know what you are doing--modify
5# the SWIG interface file instead.
7from sys import version_info as _swig_python_version_info
8if _swig_python_version_info >= (2, 7, 0):
9 def swig_import_helper():
10 import importlib
11 pkg = __name__.rpartition('.')[0]
12 mname = '.'.join((pkg, '_wvr')).lstrip('.')
13 try:
14 return importlib.import_module(mname)
15 except ImportError:
16 return importlib.import_module('_wvr')
17 _wvr = swig_import_helper()
18 del swig_import_helper
19elif _swig_python_version_info >= (2, 6, 0):
20 def swig_import_helper():
21 from os.path import dirname
22 import imp
23 fp = None
24 try:
25 fp, pathname, description = imp.find_module('_wvr', [dirname(__file__)])
26 except ImportError:
27 import _wvr
28 return _wvr
29 try:
30 _mod = imp.load_module('_wvr', fp, pathname, description)
31 finally:
32 if fp is not None:
33 fp.close()
34 return _mod
35 _wvr = swig_import_helper()
36 del swig_import_helper
37else:
38 import _wvr
39del _swig_python_version_info
41try:
42 _swig_property = property
43except NameError:
44 pass # Python < 2.2 doesn't have 'property'.
46try:
47 import builtins as __builtin__
48except ImportError:
49 import __builtin__
51def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
52 if (name == "thisown"):
53 return self.this.own(value)
54 if (name == "this"):
55 if type(value).__name__ == 'SwigPyObject':
56 self.__dict__[name] = value
57 return
58 method = class_type.__swig_setmethods__.get(name, None)
59 if method:
60 return method(self, value)
61 if (not static):
62 if _newclass:
63 object.__setattr__(self, name, value)
64 else:
65 self.__dict__[name] = value
66 else:
67 raise AttributeError("You cannot add attributes to %s" % self)
70def _swig_setattr(self, class_type, name, value):
71 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
74def _swig_getattr(self, class_type, name):
75 if (name == "thisown"):
76 return self.this.own()
77 method = class_type.__swig_getmethods__.get(name, None)
78 if method:
79 return method(self)
80 raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
83def _swig_repr(self):
84 try:
85 strthis = "proxy of " + self.this.__repr__()
86 except __builtin__.Exception:
87 strthis = ""
88 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
90try:
91 _object = object
92 _newclass = 1
93except __builtin__.Exception:
94 class _object:
95 pass
96 _newclass = 0
98class wvr(_object):
99 """Proxy of C++ casac::wvr class."""
101 __swig_setmethods__ = {}
102 __setattr__ = lambda self, name, value: _swig_setattr(self, wvr, name, value)
103 __swig_getmethods__ = {}
104 __getattr__ = lambda self, name: _swig_getattr(self, wvr, name)
105 __repr__ = _swig_repr
107 def __init__(self):
108 """__init__(self) -> wvr"""
109 this = _wvr.new_wvr()
110 try:
111 self.this.append(this)
112 except __builtin__.Exception:
113 self.this = this
115 def gcal(self, *args, **kwargs):
116 """
117 gcal(self, _vis, _output, _toffset, _nsol, _segsource, _reverse, _reversespw, _disperse, _cont, _wvrflag, _sourceflag, _statfield, _statsource, _tie, _smooth, _scale, _maxdistm, _minnumants, _mingoodfrac, _usefieldtab, _spw, _wvrspw, _refant, _offsets, _rseed, _logfile) -> long
121 Summary:
122 Generate a calibration table based on the WVR data in the given MS
124 Description:
127 Generate a gain table based on Water Vapour Radiometer data
130 Input Parameters:
131 vis Input measurement set
132 output Name of the output file
133 toffset Time offset (in seconds) between interferometric and WVR data
134 nsol Number of solutions for phase correction coefficients to make during this observation
135 segsource Do a new coefficient calculation for each source
136 reverse Reverse the sign of correction in all SPW (e.g. due to AIV-1740)
137 reversespw Reverse the sign correction for these spws
138 disperse Apply correction for dispersion
139 cont UNTESTED! Estimate the continuum (e.g., due to clouds)
140 wvrflag Regard this WVR (labelled with either antenna number or antenna name) as bad, and use interpolated values instead. (Can be comma-separated list without spaces.)
141 sourceflag Flag the WVR data for this source and do not produce any phase corrections on it
142 statfield Compute the statistics (Phase RMS, Disc) on this field only
143 statsource Compute the statistics (Phase RMS, Disc) on this source only
144 tie Prioritise tieing the phase of these sources as well as possible
145 smooth Smooth WVR data by this many samples before applying the correction
146 scale Scale the entire phase correction by this factor
147 maxdistm Maximum distance (m) an antenna may have to be considered for being part of the set of up to 3 antennas for interpolation of a solution for a flagged antenna
148 minnumants Minimum number of near antennas (up to 3) required for interpolation
149 mingoodfrac If the fraction of unflagged data for an antenna is below this value (0. to 1.), the antenna is flagged
150 usefieldtab Derive the antenna pointing information from the FIELD table instead of the POINTING table
151 spw Only write out corrections for these SPWs.
152 wvrspw Only use data from these WVR SPWs.
153 refant Use the WVR data from this antenna for calculating the dT/dL parameters. (Can be comma-separated ranked list without spaces.)
154 offsets Name of the optional input table containing the temperature offsets, e.g. generated by remove_cloud
155 rseed random seed (integer) for the wvrgcal fitting routine (0 == use internal default)
156 logfile Name of the log file (existing file will be overwritten)
158 --------------------------------------------------------------------------------
160 """
161 return _wvr.wvr_gcal(self, *args, **kwargs)
163 __swig_destroy__ = _wvr.delete_wvr
164 __del__ = lambda self: None
165wvr_swigregister = _wvr.wvr_swigregister
166wvr_swigregister(wvr)
168# This file is compatible with both classic and new-style classes.