Ignore:
Timestamp:
08/29/06 11:00:24 (18 years ago)
Author:
mar637
Message:

changed lag_flag interface to use frequency width intead of lag width

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/Release2.1.0b/python/scantable.py

    r1192 r1199  
    640640        self._add_history("flag", varlist)
    641641
    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):
    643643        """
    644644        Flag the data in 'lag' space by providing a frequency to remove.
     
    648648            frequency:    the frequency to remove
    649649            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
    653651        """
    654652        if insitu is None: insitu = rcParams['insitu']
     
    659657            raise ValueError("%s is not a valid unit." % unit)
    660658        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]))
    662661        except RuntimeError, msg:
    663662            if rcParams['verbose']:
Note: See TracChangeset for help on using the changeset viewer.