Changeset 1200 for trunk/python
- Timestamp:
- 08/29/06 11:03:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r1192 r1200 640 640 self._add_history("flag", varlist) 641 641 642 def lag_flag(self, frequency, unit="GHz", width=0 , insitu=None):642 def lag_flag(self, frequency, unit="GHz", width=0.0, insitu=None): 643 643 """ 644 644 Flag the data in 'lag' space by providing a frequency to remove. … … 648 648 frequency: the frequency to remove 649 649 unit: the frequency unit ()default "GHz") 650 width: the number of 'lag' channels to extent the frequency 651 by, i.e. the interval 652 [bandwidth/frequency-width, bandwidth/frequency+width] 650 width: the width of the frequency to remove 653 651 """ 654 652 if insitu is None: insitu = rcParams['insitu'] … … 659 657 raise ValueError("%s is not a valid unit." % unit) 660 658 try: 661 s = scantable(self._math._lag_flag(self, frequency*base[unit], width)) 659 s = scantable(self._math._lag_flag(self, frequency*base[unit], 660 width*base[unit])) 662 661 except RuntimeError, msg: 663 662 if rcParams['verbose']:
Note:
See TracChangeset
for help on using the changeset viewer.