Changeset 245 for trunk/python
- Timestamp:
- 01/21/05 13:28:15 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r242 r245 40 40 return scantable(_av(lst, mask, scanAv, weight)) 41 41 42 def quotient(source, reference ):43 """ 44 Return the quotient of a 'source' scan and a 'reference' scan42 def quotient(source, reference, preserve=True): 43 """ 44 Return the quotient of a 'source' (signal) scan and a 'reference' scan 45 45 Parameters: 46 46 source: the 'on' scan 47 47 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 48 52 """ 49 53 from asap._asap import quotient as _quot 50 return scantable(_quot(source, reference ))54 return scantable(_quot(source, reference, preserve)) 51 55 52 56 def b_operate(left, right, op='add'):
Note:
See TracChangeset
for help on using the changeset viewer.