Changeset 2952 for trunk/python/scantable.py
- Timestamp:
- 06/24/14 19:59:46 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2937 r2952 4797 4797 4798 4798 @asaplog_post_dec 4799 def scale(self, factor, tsys=True, insitu=None ):4799 def scale(self, factor, tsys=True, insitu=None, skip_flaggedrow=False): 4800 4800 """\ 4801 4801 … … 4813 4813 as well as the data 4814 4814 4815 skip_flaggedrow: if True, scaling is NOT executed for 4816 row-flagged spectra. default is False. 4815 4817 """ 4816 4818 if insitu is None: insitu = rcParams['insitu'] … … 4823 4825 numpy.ndarray): 4824 4826 from asapmath import _array2dOp 4825 s = _array2dOp( self, factor, "MUL", tsys, insitu )4827 s = _array2dOp( self, factor, "MUL", tsys, insitu, skip_flaggedrow ) 4826 4828 else: 4827 4829 s = scantable( self._math._arrayop( self, factor, 4828 "MUL", tsys ) )4830 "MUL", tsys, skip_flaggedrow ) ) 4829 4831 else: 4830 s = scantable(self._math._unaryop(self, factor, "MUL", tsys ))4832 s = scantable(self._math._unaryop(self, factor, "MUL", tsys, skip_flaggedrow)) 4831 4833 s._add_history("scale", varlist) 4832 4834 if insitu:
Note: See TracChangeset
for help on using the changeset viewer.