Changeset 1204
- Timestamp:
- 08/29/06 14:15:56 (18 years ago)
- Location:
- tags/Release2.1.0b
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/Release2.1.0b/python/scantable.py
r1199 r1204 640 640 self._add_history("flag", varlist) 641 641 642 def lag_flag(self, frequency, unit="GHz", width=0.0, insitu=None):642 def lag_flag(self, frequency, width=0.0, unit="GHz", insitu=None): 643 643 """ 644 644 Flag the data in 'lag' space by providing a frequency to remove. … … 646 646 No taper is applied. 647 647 Parameters: 648 frequency: the frequency to remove 649 unit: the frequency unit ()default "GHz") 650 width: the width of the frequency to remove 648 frequency: the frequency (really a period within the bandwidth) to remove 649 width: the width of the frequency to remove, to remove a range 650 of frequencies aroung the centre. 651 unit: the frequency unit (default "GHz") 652 Notes: 653 It is recommended to flag edges of the band or strong signals beforehand. 651 654 """ 652 655 if insitu is None: insitu = rcParams['insitu'] … … 1430 1433 preserve: Output = Toff * (on/off) - Toff 1431 1434 remove: Output = Toff * (on/off) - Ton 1432 1435 """ 1433 1436 if mask is None: mask = () 1434 1437 varlist = vars() … … 1436 1439 preoff = scantable(self._math._mx_extract(self, 'off')) 1437 1440 off = preoff.average_time(mask=mask, weight=weight, scanav=False) 1438 1441 from asapmath import quotient 1439 1442 q = quotient(on, off, preserve) 1440 1443 q._add_history("mx_quotient", varlist) 1441 1444 print_log() 1442 1445 return q 1443 1446 1444 1447 def freq_switch(self, insitu=None): -
tags/Release2.1.0b/src/STMath.cpp
r1199 r1204 1407 1407 } 1408 1408 Vector<Complex> lags; 1409 ffts.fft (lags, spec);1409 ffts.fft0(lags, spec); 1410 1410 Int start = max(0, lag0); 1411 1411 Int end = min(Int(lags.nelements()-1), lag1); … … 1417 1417 } 1418 1418 } 1419 ffts.fft (spec, lags);1419 ffts.fft0(spec, lags); 1420 1420 specCol.put(i, spec); 1421 1421 }
Note:
See TracChangeset
for help on using the changeset viewer.