Ignore:
Timestamp:
12/08/05 13:58:59 (19 years ago)
Author:
phi196
Message:

Added get_elevation, azimuth and parangle

Location:
branches/Release12/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Release12/python/__init__.py

    r773 r787  
    298298            get_time        - get the timestamps of the integrations
    299299            get_sourcename  - get the source names of the scans
     300            get_azimith     - get the azimuth of the scans
     301            get_elevation   - get the elevation of the scans
     302            get_parangle    - get the parallactic angle of the scans
    300303            get_unit        - get the currnt unit
    301304            set_unit        - set the abcissa unit to be used from this
  • branches/Release12/python/scantable.py

    r786 r787  
    429429    def get_sourcename(self, row=-1):
    430430        """
    431         Get a list source anmes for the observations.
     431        Get a list source names for the observations.
    432432        Return a string for each integration in the scantable.
    433433        Parameters:
     
    442442            if  0 <= row < self.nrow():
    443443                return self._getsourcename(row)
     444
     445    def get_elevation(self, row=-1):
     446        """
     447        Get a list of elevations for the observations.
     448        Return a float for each integration in the scantable.
     449        Parameters:
     450            row:    row no of integration. Default -1 return all rows
     451        Example:
     452            none
     453        """
     454        out = []
     455        if row == -1:
     456            return [self._getelevation(i) for i in range(self.nrow())]
     457        else:
     458            if  0 <= row < self.nrow():
     459                return self._getelevation(row)
     460
     461    def get_azimith(self, row=-1):
     462        """
     463        Get a list of azimuths for the observations.
     464        Return a float for each integration in the scantable.
     465        Parameters:
     466            row:    row no of integration. Default -1 return all rows
     467        Example:
     468            none
     469        """
     470        out = []
     471        if row == -1:
     472            return [self._getazimuth(i) for i in range(self.nrow())]
     473        else:
     474            if  0 <= row < self.nrow():
     475                return self._getazimuth(row)
     476
     477    def get_parangle(self, row=-1):
     478        """
     479        Get a list of parallactic angles for the observations.
     480        Return a float for each integration in the scantable.
     481        Parameters:
     482            row:    row no of integration. Default -1 return all rows
     483        Example:
     484            none
     485        """
     486        out = []
     487        if row == -1:
     488            return [self._getparangle(i) for i in range(self.nrow())]
     489        else:
     490            if  0 <= row < self.nrow():
     491                return self._getparangle(row)
    444492
    445493    def set_unit(self, unit='channel'):
Note: See TracChangeset for help on using the changeset viewer.