Ignore:
Timestamp:
07/27/07 02:08:12 (17 years ago)
Author:
TakTsutsumi
Message:

merged from NRAO version of ASAP2.1 with ALMA specific modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/scantable.py

    r1373 r1389  
    516516        """
    517517        return self._get_column(self._getdirection, row)
     518
     519    def get_directionval(self, row=-1):
     520        """
     521        Get a list of Positions on the sky (direction) for the observations.
     522        Return a float for each integration in the scantable.
     523        Parameters:
     524            row:    row no of integration. Default -1 return all rows
     525        Example:
     526            none
     527        """
     528        return self._get_column(self._getdirectionvec, row)
     529
    518530
    519531    def set_unit(self, unit='channel'):
     
    12151227
    12161228
    1217     def poly_baseline(self, mask=None, order=0, plot=False, insitu=None):
     1229    def poly_baseline(self, mask=None, order=0, plot=False, uselin=False, insitu=None):
    12181230        """
    12191231        Return a scan which has been baselined (all rows) by a polynomial.
     
    12241236                        indivual fit has to be approved, by typing 'y'
    12251237                        or 'n'
     1238            uselin:     use linear polynomial fit
    12261239            insitu:     if False a new scantable is returned.
    12271240                        Otherwise, the scaling is done in-situ
     
    12401253            f = fitter()
    12411254            f.set_scan(self, mask)
    1242             f.set_function(poly=order)
     1255            #f.set_function(poly=order)
     1256            if uselin:
     1257                f.set_function(lpoly=order)
     1258            else:
     1259                f.set_function(poly=order)
    12431260            s = f.auto_fit(insitu, plot=plot)
    12441261            s._add_history("poly_baseline", varlist)
Note: See TracChangeset for help on using the changeset viewer.