Changeset 391


Ignore:
Timestamp:
02/08/05 14:07:13 (19 years ago)
Author:
kil064
Message:

add function select_restfreq

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r381 r391  
    498498        sdtable._setrestfreqs(self,freqs, unit)
    499499        return
     500
    500501    def get_restfreqs(self):
    501502        """
     
    508509        """
    509510        return list(self._getrestfreqs())
     511
     512    def select_restfreq(self, freq, unit='Hz', source=None, theif=None):
     513        """
     514        Select the restfrequency for the specified source and IF
     515        Parameters:
     516            source:  Source name (blank means all)
     517            theif:   IF (-1 means all)
     518            freq:    rest frequency
     519            unit:    unit for rest frequency (default 'Hz')
     520        Example:
     521            scan.select_restfreq(freq=1.4e9, source='NGC253', theif=2)
     522        """
     523        if source is None:
     524            source = ""
     525        if theif is None:
     526            theif = -1
     527        sdtable._selectrestfreq(self, freq, unit, source, theif)
     528        return
     529
    510530
    511531    def flag_spectrum(self, thebeam, theif, thepol):
Note: See TracChangeset for help on using the changeset viewer.