Changeset 1360 for trunk/python


Ignore:
Timestamp:
04/27/07 11:00:43 (18 years ago)
Author:
mar637
Message:

enhancement #107; added scantable.shift_refpix

Location:
trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r1351 r1360  
    417417            get_restfreqs   - get the current list of rest frequencies
    418418            set_restfreqs   - set a list of rest frequencies
     419            shift_refpix    - shift the reference pixel of the IFs
    419420            flag            - flag selected channels in the data
    420421            lag_flag        - flag specified frequency in the data
  • trunk/python/scantable.py

    r1356 r1360  
    852852        self._add_history("set_restfreqs", varlist)
    853853
    854 
     854    def shift_refpix(self, delta):
     855        """
     856        Shift the reference pixel of the Spectra Coordinate by an
     857        integer amount.
     858        Parameters:
     859            delta:   the amount to shift by
     860        Note:
     861            Be careful using this with broadband data.
     862        """
     863        Scantable.shift(self, delta)
    855864
    856865    def history(self, filename=None):
Note: See TracChangeset for help on using the changeset viewer.