Changeset 141 for trunk/python
- Timestamp:
- 12/24/04 13:23:03 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r129 r141 1 1 from scantable import scantable 2 2 3 def average_time(*args, 3 def average_time(*args,**kwargs): 4 4 """ 5 5 Return the (time) average of a scan or list of scans. [in channels only] … … 60 60 return scantable(_quot(source, reference)) 61 61 62 def scale(scan, factor ):62 def scale(scan, factor, insitu=False): 63 63 """ 64 64 Return a scan where all spectra are scaled by the give 'factor' … … 69 69 This currently applies the all beams/IFs/pols 70 70 """ 71 from asap._asap import scale as _scale 72 return scantable(_scale(scan, factor)) 71 if not insitu: 72 from asap._asap import scale as _scale 73 return scantable(_scale(scan, factor)) 74 else: 75 from asap._asap import scale_insitu as _scale 76 _scale(scan, factor) 77 return 78 73 79 74 80 def add(scan, offset):
Note:
See TracChangeset
for help on using the changeset viewer.