Ignore:
Timestamp:
06/30/09 15:46:14 (15 years ago)
Author:
Malte Marquarding
Message:

Ticket #165: have removed the hard-coding of parallactifying the data. NOTE THIS breaks the Table structure as I have moved the PARANGLE column from the main table into the FOCUS table. We need to have a new release. Also one needs to explicitly tell the scantable via rc or member function to enable parallactifying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r1584 r1586  
    1212    """
    1313
    14     def __init__(self, filename, average=None, unit=None):
     14    def __init__(self, filename, average=None, unit=None, parallactify=None):
    1515        """
    1616        Create a scantable from a saved one or make a reference
     
    3030                         (input rpfits/sdfits/ms) or replaces the value
    3131                         in existing scantables
     32            parallactify: Indcicate that the data had been parallatified.
     33                          Default is taken form rc file.
    3234        """
    3335        if average is None:
    3436            average = rcParams['scantable.autoaverage']
     37        if parallactify is None:
     38            parallactify = rcParams['scantable.parallactify']
    3539        varlist = vars()
    3640        from asap._asap import stmath
     
    7478                  and isinstance(filename[-1], str):
    7579                self._fill(filename, unit, average)
     80        self.parallactify(parallactify)
    7681        self._add_history("scantable", varlist)
    7782        print_log()
     
    12241229        return s
    12251230
     1231    def parallactify(self, pflag):
     1232        varlist = vars()
     1233        self._parallactify(pflag)
     1234        self._add_history("parallactify", varlist)
     1235
    12261236    def convert_pol(self, poltype=None):
    12271237        """
Note: See TracChangeset for help on using the changeset viewer.