Ignore:
Timestamp:
08/16/06 09:42:09 (18 years ago)
Author:
mar637
Message:

Implemented Ticket #45 as scantable.mx_quotient.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r1141 r1143  
    791791            in channels only - align if necessary
    792792        Parameters:
    793             one scan or comma separated  scans
    794793            mask:     an optional mask (only used for 'var' and 'tsys'
    795794                      weighting)
     
    13321331        return s
    13331332
    1334     def mx_quotient(self, averageoff='median'):
    1335         """
     1333    def mx_quotient(self, mask = None, weight='median'):
     1334        """
     1335        Form a quotient using "off" beams when observing in "MX" mode.
     1336        Parameters:
     1337            weight:         How to average the off beams.  Default is 'median'.
    13361338        """
     1339        if mask is None: mask = ()
    13371340        varlist = vars()
    13381341        on = scantable(self._math._mx_extract(self, 'on'))
    1339         s._add_history("mx_quotient", varlist)
     1342        preoff = scantable(self._math._mx_extract(self, 'off'))
     1343        off = preoff.average_time(mask=mask, weight=weight, scanav=False)
    13401344        print_log()
    13411345        from asapmath  import quotient
    1342         return quotient(on, off)
     1346        q = quotient(on, off)
     1347        q._add_history("mx_quotient", varlist)
     1348        return q
    13431349
    13441350    def freq_switch(self, insitu=None):
Note: See TracChangeset for help on using the changeset viewer.