Changeset 2966
- Timestamp:
- 07/01/14 12:25:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2957 r2966 4804 4804 4805 4805 @asaplog_post_dec 4806 def scale(self, factor, tsys=True, insitu=None , skip_flaggedrow=False):4806 def scale(self, factor, tsys=True, insitu=None): 4807 4807 """\ 4808 4808 … … 4819 4819 tsys: if True (default) then apply the operation to Tsys 4820 4820 as well as the data 4821 4822 skip_flaggedrow: if True, scaling is NOT executed for4823 row-flagged spectra. default is False.4824 4821 """ 4825 4822 if insitu is None: insitu = rcParams['insitu'] … … 4832 4829 numpy.ndarray): 4833 4830 from asapmath import _array2dOp 4834 s = _array2dOp( self, factor, "MUL", tsys, insitu, skip_flaggedrow)4831 s = _array2dOp( self, factor, "MUL", tsys, insitu, True ) 4835 4832 else: 4836 4833 s = scantable( self._math._arrayop( self, factor, 4837 "MUL", tsys, skip_flaggedrow) )4834 "MUL", tsys, True ) ) 4838 4835 else: 4839 s = scantable(self._math._unaryop(self, factor, "MUL", tsys, skip_flaggedrow))4836 s = scantable(self._math._unaryop(self, factor, "MUL", tsys, True )) 4840 4837 s._add_history("scale", varlist) 4841 4838 if insitu:
Note:
See TracChangeset
for help on using the changeset viewer.