Changeset 276


Ignore:
Timestamp:
01/24/05 12:34:32 (20 years ago)
Author:
kil064
Message:

add set_doppler

Location:
trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/__init__.py

    r274 r276  
    253253            get_time        - get the timestamps of the integrations
    254254            get_unit        - get the currnt unit
    255             set_unit        - set the unit to be used from this point on
     255            set_unit        - set the abcissa unit to be used from this point on
    256256            get_abcissa     - get the abcissa values and name for a given
    257257                              row (time)
    258258            set_freqframe   - set the frame info for the Spectral Axis
    259259                              (e.g. 'LSRK')
     260            set_doppler     - set the doppler to be used from this point on
    260261            set_instrument  - set the instrument name
    261262            get_fluxunit    - get the brightness flux unit
  • trunk/python/scantable.py

    r256 r276  
    348348        inf = list(self._getcoordinfo())
    349349        inf[0] = unit
     350        self._setcoordinfo(inf)
     351        if self._p: self.plot()
     352
     353    def set_doppler(self, doppler='RADIO'):
     354        """
     355        Set the doppler for all following operations on this scantable.
     356        Parameters:
     357            doppler:    One of 'RADIO', 'OPTICAL', 'Z', 'BETA', 'GAMMA'
     358        """
     359
     360        inf = list(self._getcoordinfo())
     361        inf[2] = doppler
    350362        self._setcoordinfo(inf)
    351363        if self._p: self.plot()
Note: See TracChangeset for help on using the changeset viewer.