Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatools/calanalysis.py: 56%

63 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-10-31 18:48 +0000

1##################### generated by xml-casa (v2) from calanalysis.xml ############### 

2##################### 876211c3a83f995d560f64a2e19f5adf ############################## 

3from __future__ import absolute_import 

4from .__casac__.calanalysis import calanalysis as _calanalysis 

5 

6from .errors import create_error_string 

7from .typecheck import CasaValidator as _validator 

8_pc = _validator( ) 

9from .coercetype import coerce as _coerce 

10 

11 

12class calanalysis: 

13 _info_group_ = """calanalysis""" 

14 _info_desc_ = """ 

15Get and fit data from a calibration table (CASA 3.4 and later). 

16""" 

17 ### self 

18 def __init__(self, *args, **kwargs): 

19 """Construct a calibration analysis tool. 

20 """ 

21 self._swigobj = kwargs.get('swig_object',None) 

22 if self._swigobj is None: 

23 self._swigobj = _calanalysis() 

24 

25 def open(self, caltable=''): 

26 """This member function opens a calibration table. 

27 """ 

28 return self._swigobj.open(caltable) 

29 

30 def close(self): 

31 """This member function closes a calibration table. 

32 """ 

33 return self._swigobj.close() 

34 

35 def calname(self): 

36 """This member function returns calibration table name. 

37 """ 

38 return self._swigobj.calname() 

39 

40 def msname(self): 

41 """This member function returns the name of the MS that created this calibration 

42 table. 

43 """ 

44 return self._swigobj.msname() 

45 

46 def viscal(self): 

47 """This member function returns the type of calibration table ('B', 'G', 'T', 

48 etc.). 

49 """ 

50 return self._swigobj.viscal() 

51 

52 def partype(self): 

53 """This member function returns the parameter column type in the calibration table 

54 ('Complex' or 'Float'). 

55 """ 

56 return self._swigobj.partype() 

57 

58 def polbasis(self): 

59 """This member function returns the polarization basis in the calibration table 

60 ('L' for linear or 'C' for circular). 

61 """ 

62 return self._swigobj.polbasis() 

63 

64 def numfield(self): 

65 """This member function returns the number of fields in the calibration table. 

66 """ 

67 return self._swigobj.numfield() 

68 

69 def field(self, name=True): 

70 """This member function returns the fields in the calibration table. 

71 """ 

72 return self._swigobj.field(name) 

73 

74 def numantenna(self): 

75 """This member function returns the number of antennas in the calibration table. 

76 """ 

77 return self._swigobj.numantenna() 

78 

79 def numantenna1(self): 

80 """This member function returns the number of antenna 1s in the calibration table. 

81 """ 

82 return self._swigobj.numantenna1() 

83 

84 def numantenna2(self): 

85 """This member function returns the number of antenna 2s in the calibration table. 

86 """ 

87 return self._swigobj.numantenna2() 

88 

89 def antenna(self, name=True): 

90 """This member function returns the antennas in the calibration table. 

91 """ 

92 return self._swigobj.antenna(name) 

93 

94 def antenna1(self, name=True): 

95 """This member function returns the antenna 1s in the calibration table. 

96 """ 

97 return self._swigobj.antenna1(name) 

98 

99 def antenna2(self, name=True): 

100 """This member function returns the antenna 2s in the calibration table. 

101 """ 

102 return self._swigobj.antenna2(name) 

103 

104 def numfeed(self): 

105 """This member function returns the number of feeds in the calibration table. 

106 """ 

107 return self._swigobj.numfeed() 

108 

109 def feed(self): 

110 """This member function returns the feeds in the calibration table. 

111 """ 

112 return self._swigobj.feed() 

113 

114 def numtime(self): 

115 """This member function returns the number of times in the calibration table. 

116 """ 

117 return self._swigobj.numtime() 

118 

119 def time(self): 

120 """This member function returns the times (in MJD seconds) in the calibration 

121 table. 

122 """ 

123 return self._swigobj.time() 

124 

125 def numspw(self): 

126 """This member function returns the number of spectral windows in the calibration 

127 table. 

128 """ 

129 return self._swigobj.numspw() 

130 

131 def spw(self, name=True): 

132 """This member function returns the spectral windows in the calibration table. 

133 """ 

134 return self._swigobj.spw(name) 

135 

136 def numchannel(self): 

137 """This member function returns the number of channels per spectral window in the 

138 calibration table. 

139 """ 

140 return self._swigobj.numchannel() 

141 

142 def freq(self): 

143 """This member function returns the frequencies per spectral window in the 

144 calibration table. 

145 """ 

146 return self._swigobj.freq() 

147 

148 def get(self, field=[ ], antenna=[ ], timerange=[ ], spw=[ ], feed=[ ], axis='TIME', ap='AMPLITUDE', norm=False, unwrap=False, jumpmax=float(0.0)): 

149 """This member function returns the calibration data. 

150 """ 

151 return self._swigobj.get(field, antenna, timerange, spw, feed, axis, ap, norm, unwrap, jumpmax) 

152 

153 def fit(self, field=[ ], antenna=[ ], timerange=[ ], spw=[ ], feed=[ ], axis='TIME', ap='AMPLITUDE', norm=False, unwrap=False, jumpmax=float(0.0), order='AVERAGE', type='LSQ', weight=False): 

154 """This member function returns the calibration data and fits along the 

155 non-iteration axis. 

156 """ 

157 return self._swigobj.fit(field, antenna, timerange, spw, feed, axis, ap, norm, unwrap, jumpmax, order, type, weight) 

158