- Timestamp:
- 08/16/06 09:42:09 (18 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r1141 r1143 791 791 in channels only - align if necessary 792 792 Parameters: 793 one scan or comma separated scans794 793 mask: an optional mask (only used for 'var' and 'tsys' 795 794 weighting) … … 1332 1331 return s 1333 1332 1334 def mx_quotient(self, averageoff='median'): 1335 """ 1333 def mx_quotient(self, mask = None, weight='median'): 1334 """ 1335 Form a quotient using "off" beams when observing in "MX" mode. 1336 Parameters: 1337 weight: How to average the off beams. Default is 'median'. 1336 1338 """ 1339 if mask is None: mask = () 1337 1340 varlist = vars() 1338 1341 on = scantable(self._math._mx_extract(self, 'on')) 1339 s._add_history("mx_quotient", varlist) 1342 preoff = scantable(self._math._mx_extract(self, 'off')) 1343 off = preoff.average_time(mask=mask, weight=weight, scanav=False) 1340 1344 print_log() 1341 1345 from asapmath import quotient 1342 return quotient(on, off) 1346 q = quotient(on, off) 1347 q._add_history("mx_quotient", varlist) 1348 return q 1343 1349 1344 1350 def freq_switch(self, insitu=None): -
trunk/src/STMath.cpp
r1140 r1143 1328 1328 } 1329 1329 1330 CountedPtr< Scantable > 1330 CountedPtr< Scantable > 1331 1331 asap::STMath::mxExtract( const CountedPtr< Scantable > & in, 1332 1332 const std::string & scantype ) … … 1344 1344 TableCopy::copyRows(tout, tab); 1345 1345 if (scantype == "on") { 1346 // re-index SCANNO to 0 1346 1347 TableVector<uInt> vec(tout, "SCANNO"); 1347 1348 vec = 0; -
trunk/src/STMath.h
r1140 r1143 54 54 */ 55 55 bool insitu() const { return insitu_;}; 56 56 57 57 /** 58 58 * set the currnt @attr inistu state … … 96 96 * @param mask an optional mask if weight allows one 97 97 * @param weight weighting scheme 98 * @return 98 * @return 99 99 */ 100 100 casa::CountedPtr< Scantable > … … 167 167 convertPolarisation( const casa::CountedPtr<Scantable>& in, 168 168 const std::string& newtype); 169 170 casa::CountedPtr<Scantable> 171 172 const std::string& scantype = "on");169 170 casa::CountedPtr<Scantable> 171 mxExtract( const casa::CountedPtr<Scantable>& in, 172 const std::string& srctype = "on"); 173 173 174 174 private:
Note:
See TracChangeset
for help on using the changeset viewer.