Changeset 1203 for trunk/python
- Timestamp:
- 08/29/06 14:13:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r1200 r1203 640 640 self._add_history("flag", varlist) 641 641 642 def lag_flag(self, frequency, unit="GHz", width=0.0, insitu=None):642 def lag_flag(self, frequency, width=0.0, unit="GHz", insitu=None): 643 643 """ 644 644 Flag the data in 'lag' space by providing a frequency to remove. … … 646 646 No taper is applied. 647 647 Parameters: 648 frequency: the frequency to remove 649 unit: the frequency unit ()default "GHz") 650 width: the width of the frequency to remove 648 frequency: the frequency (really a period within the bandwidth) to remove 649 width: the width of the frequency to remove, to remove a range 650 of frequencies aroung the centre. 651 unit: the frequency unit (default "GHz") 652 Notes: 653 It is recommended to flag edges of the band or strong signals beforehand. 651 654 """ 652 655 if insitu is None: insitu = rcParams['insitu'] … … 1430 1433 preserve: Output = Toff * (on/off) - Toff 1431 1434 remove: Output = Toff * (on/off) - Ton 1432 1435 """ 1433 1436 if mask is None: mask = () 1434 1437 varlist = vars() … … 1436 1439 preoff = scantable(self._math._mx_extract(self, 'off')) 1437 1440 off = preoff.average_time(mask=mask, weight=weight, scanav=False) 1438 1441 from asapmath import quotient 1439 1442 q = quotient(on, off, preserve) 1440 1443 q._add_history("mx_quotient", varlist) 1441 1444 print_log() 1442 1445 return q 1443 1446 1444 1447 def freq_switch(self, insitu=None):
Note:
See TracChangeset
for help on using the changeset viewer.