Ignore:
Timestamp:
02/16/10 16:29:35 (14 years ago)
Author:
WataruKawasaki
Message:

New Development: Yes

JIRA Issue: Yes (CAS-1800 + CAS-1807)

Ready to Release: Yes

Interface Changes: Yes

What Interface Changed: added new methods to scantable and fitter.

Test Programs:

Put in Release Notes: No

Module(s): sdfit, sdflag

Description: added new methods 'scantable.clip' and 'fitter.set_lorentz_parameters'.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/scantable.py

    r1685 r1701  
    862862        self._add_history("flag_row", varlist)
    863863       
     864    def clip(self, uthres=None, dthres=None, clipoutside=True, unflag=False):
     865        """
     866        Flag the selected data outside a specified range (in channel-base)
     867        Parameters:
     868            uthres:      upper threshold.
     869            dthres:      lower threshold
     870            clipoutside: True for flagging data outside the range [dthres:uthres].
     871                         False for glagging data inside the range.
     872            unflag     : if True, unflag the data.
     873        """
     874        varlist = vars()
     875        try:
     876            self._clip(uthres, dthres, clipoutside, unflag)
     877        except RuntimeError, msg:
     878            if rcParams['verbose']:
     879                print_log()
     880                asaplog.push(str(msg))
     881                print_log('ERROR')
     882                return
     883            else: raise
     884        self._add_history("clip", varlist)
    864885       
    865886    def lag_flag(self, frequency, width=0.0, unit="GHz", insitu=None):
Note: See TracChangeset for help on using the changeset viewer.