Changeset 1389 for branches/alma/python/scantable.py
- Timestamp:
- 07/27/07 02:08:12 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/scantable.py
r1373 r1389 516 516 """ 517 517 return self._get_column(self._getdirection, row) 518 519 def get_directionval(self, row=-1): 520 """ 521 Get a list of Positions on the sky (direction) for the observations. 522 Return a float for each integration in the scantable. 523 Parameters: 524 row: row no of integration. Default -1 return all rows 525 Example: 526 none 527 """ 528 return self._get_column(self._getdirectionvec, row) 529 518 530 519 531 def set_unit(self, unit='channel'): … … 1215 1227 1216 1228 1217 def poly_baseline(self, mask=None, order=0, plot=False, insitu=None):1229 def poly_baseline(self, mask=None, order=0, plot=False, uselin=False, insitu=None): 1218 1230 """ 1219 1231 Return a scan which has been baselined (all rows) by a polynomial. … … 1224 1236 indivual fit has to be approved, by typing 'y' 1225 1237 or 'n' 1238 uselin: use linear polynomial fit 1226 1239 insitu: if False a new scantable is returned. 1227 1240 Otherwise, the scaling is done in-situ … … 1240 1253 f = fitter() 1241 1254 f.set_scan(self, mask) 1242 f.set_function(poly=order) 1255 #f.set_function(poly=order) 1256 if uselin: 1257 f.set_function(lpoly=order) 1258 else: 1259 f.set_function(poly=order) 1243 1260 s = f.auto_fit(insitu, plot=plot) 1244 1261 s._add_history("poly_baseline", varlist)
Note: See TracChangeset
for help on using the changeset viewer.