Changeset 2791 for trunk/python


Ignore:
Timestamp:
03/15/13 14:36:12 (12 years ago)
Author:
Malte Marquarding
Message:

Ticket #289: added anility to set Tsys, both for scalar and vector values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2771 r2791  
    907907        """
    908908        return self._get_column( self._gettsysspectrum, row )
     909
     910    def set_tsys(self, values, row=-1):
     911        """\
     912        Set the Tsys value(s) of the given 'row' or the whole scantable
     913        (selection).
     914       
     915        Parameters:
     916
     917            values:    a scalar or list (if Tsys is a vector) of Tsys value(s)
     918            row:       the row number to apply Tsys values to.
     919                       (default all rows)
     920                       
     921        """
     922           
     923        if not hasattr(values, "__len__"):
     924            values = [values]
     925        self._settsys(values, row)
    909926
    910927    def get_weather(self, row=-1):
Note: See TracChangeset for help on using the changeset viewer.