Changeset 914
- Timestamp:
- 03/21/06 15:32:36 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r909 r914 613 613 from asap import asaplog 614 614 msg = "The current mask window unit is %s" % u 615 if not _check_ifs():615 if not self._check_ifs(): 616 616 msg += "\nThis mask is only valid for IF=%d" % (self.getif(i)) 617 617 asaplog.push(msg) … … 1116 1116 return workscan 1117 1117 1118 # def rotate_linpolphase(self, angle): 1119 # """ 1120 # Rotate the phase of the complex polarization O=Q+iU correlation. 1121 # This is always done in situ in the raw data. So if you call this 1122 # function more than once then each call rotates the phase further. 1123 # Parameters: 1124 # angle: The angle (degrees) to rotate (add) by. 1125 # Examples: 1126 # scan.rotate_linpolphase(2.3) 1127 # """ 1128 # varlist = vars() 1129 # from asap._asap import _rotate_linpolphase as _rotate 1130 # _rotate(self, angle, allaxes) 1131 # self._add_history("rotate_linpolphase", varlist) 1132 # print_log() 1133 # return 1134 # 1135 # 1136 # def rotate_xyphase(self, angle): 1137 # """ 1138 # Rotate the phase of the XY correlation. This is always done in situ 1139 # in the data. So if you call this function more than once 1140 # then each call rotates the phase further. 1141 # Parameters: 1142 # angle: The angle (degrees) to rotate (add) by. 1143 # Examples: 1144 # scan.rotate_xyphase(2.3) 1145 # """ 1146 # varlist = vars() 1147 # from asap._asap import _rotate_xyphase 1148 # _rotate_xyphase(self, angle, allaxes) 1149 # self._add_history("rotate_xyphase", varlist) 1150 # print_log() 1151 # return 1152 1118 def rotate_linpolphase(self, angle): 1119 """ 1120 Rotate the phase of the complex polarization O=Q+iU correlation. 1121 This is always done in situ in the raw data. So if you call this 1122 function more than once then each call rotates the phase further. 1123 Parameters: 1124 angle: The angle (degrees) to rotate (add) by. 1125 Examples: 1126 scan.rotate_linpolphase(2.3) 1127 """ 1128 varlist = vars() 1129 self.stm._rotate_linpolphase(self, angle) 1130 self._add_history("rotate_linpolphase", varlist) 1131 print_log() 1132 return 1133 1134 1135 def rotate_xyphase(self, angle): 1136 """ 1137 Rotate the phase of the XY correlation. This is always done in situ 1138 in the data. So if you call this function more than once 1139 then each call rotates the phase further. 1140 Parameters: 1141 angle: The angle (degrees) to rotate (add) by. 1142 Examples: 1143 scan.rotate_xyphase(2.3) 1144 """ 1145 varlist = vars() 1146 self.stm._rotate_xyphase(self, angle, allaxes) 1147 self._add_history("rotate_xyphase", varlist) 1148 print_log() 1149 return 1150 1151 def swap_linears(self): 1152 """ 1153 Swap the linear polarisations XX and YY 1154 """ 1155 varlist = vars() 1156 self.stm._swap_linears(self) 1157 self._add_history("swap_linears", varlist) 1158 print_log() 1159 return 1160 1161 def invert_phase(self): 1162 """ 1163 Invert the phase of the complex polarisation 1164 """ 1165 varlist = vars() 1166 self.stm._invert_phase(self) 1167 self._add_history("invert_phase", varlist) 1168 print_log() 1169 return 1153 1170 1154 1171 def add(self, offset, insitu=None):
Note:
See TracChangeset
for help on using the changeset viewer.