Changeset 1143 for trunk/python
- Timestamp:
- 08/16/06 09:42:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r1141 r1143 791 791 in channels only - align if necessary 792 792 Parameters: 793 one scan or comma separated scans794 793 mask: an optional mask (only used for 'var' and 'tsys' 795 794 weighting) … … 1332 1331 return s 1333 1332 1334 def mx_quotient(self, averageoff='median'): 1335 """ 1333 def mx_quotient(self, mask = None, weight='median'): 1334 """ 1335 Form a quotient using "off" beams when observing in "MX" mode. 1336 Parameters: 1337 weight: How to average the off beams. Default is 'median'. 1336 1338 """ 1339 if mask is None: mask = () 1337 1340 varlist = vars() 1338 1341 on = scantable(self._math._mx_extract(self, 'on')) 1339 s._add_history("mx_quotient", varlist) 1342 preoff = scantable(self._math._mx_extract(self, 'off')) 1343 off = preoff.average_time(mask=mask, weight=weight, scanav=False) 1340 1344 print_log() 1341 1345 from asapmath import quotient 1342 return quotient(on, off) 1346 q = quotient(on, off) 1347 q._add_history("mx_quotient", varlist) 1348 return q 1343 1349 1344 1350 def freq_switch(self, insitu=None):
Note:
See TracChangeset
for help on using the changeset viewer.