Changeset 530
- Timestamp:
- 03/01/05 15:12:17 (20 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r513 r530 215 215 from scantable import * 216 216 from asaplinefind import * 217 from asapfit import * 217 218 218 219 from numarray import logical_and as mask_and … … 232 233 233 234 __date__ = '$Date$' 234 __version__ = '0.9 '235 __version__ = '0.99' 235 236 236 237 def list_scans(t = scantable): … … 285 286 nbeam,nif,nchan,npol - the number of beams/IFs/Pols/Chans 286 287 history - print the history of the scantable 287 288 get_fit - get a fit which has been stored witnh the data 288 289 average_time - return the (weighted) time average of a scan 289 290 or a list of scans … … 321 322 commited. 322 323 fit - execute the actual fitting process 324 store_fit - store the fit paramaters in the data (scantable) 323 325 get_chi2 - get the Chi^2 324 326 set_scan - set the scantable to be fit … … 339 341 what is to be plotted 'colour stacked' 340 342 and what 'panelled' 341 set_range - set the abcissa 'zoom' range 343 set_cursor - only plot a selected part of the data 344 set_range - set a 'zoom' window 342 345 set_legend - specify user labels for the legend indeces 343 346 set_title - specify user labels for the panel indeces -
trunk/python/scantable.py
r524 r530 1061 1061 # not using a mask 1062 1062 bscan = scan.poly_baseline(order=3) 1063 """ 1063 """('', 'TOPO', 'RADIO', 'TOPO') 1064 1064 if insitu is None: insitu = rcParams['insitu'] 1065 1065 varlist = vars() … … 1358 1358 s._add_history("operator /", varlist) 1359 1359 return s 1360 1361 def get_fit(self, row=0): 1362 """ 1363 Print or return the stored fits for a row in the scantable 1364 Parameters: 1365 row: the row which the fit has been applied to. 1366 """ 1367 if row > self.nrow(): 1368 return 1369 from asap import asapfit 1370 fit = asapfit(self._getfit(row)) 1371 if self._vb: 1372 print fit 1373 return 1374 else: 1375 return fit.as_dict() 1360 1376 1361 1377 def _add_history(self, funcname, parameters):
Note:
See TracChangeset
for help on using the changeset viewer.