Changeset 245


Ignore:
Timestamp:
01/21/05 13:28:15 (19 years ago)
Author:
kil064
Message:

add arg. 'preserve' to quotient. also document algorithm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r242 r245  
    4040    return scantable(_av(lst, mask, scanAv, weight))
    4141
    42 def quotient(source, reference):
    43     """
    44     Return the quotient of a 'source' scan and a 'reference' scan
     42def quotient(source, reference, preserve=True):
     43    """
     44    Return the quotient of a 'source' (signal) scan and a 'reference' scan
    4545    Parameters:
    4646        source:        the 'on' scan
    4747        reference:     the 'off' scan
     48        preserve:      you can preserve (default) the continuum or
     49                       remove it.  The equations used are
     50                          preserve - Output = Tref * (sig/ref) - Tref
     51                          remove   - Output = Tref * (sig/ref) - Tsig
    4852    """
    4953    from asap._asap import quotient as _quot
    50     return scantable(_quot(source, reference))
     54    return scantable(_quot(source, reference, preserve))
    5155
    5256def b_operate(left, right, op='add'):
Note: See TracChangeset for help on using the changeset viewer.