Changeset 316 for trunk/python
- Timestamp:
- 01/28/05 02:09:40 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r313 r316 286 286 return 287 287 288 def average_pol(scan, mask=None, insitu=None):288 def average_pol(scan, mask=None, weight='none', insitu=None): 289 289 """ 290 290 Average the Polarisations together. … … 295 295 averaging will be applied. The output will have all 296 296 specified points masked. 297 weight: Weighting scheme. 'none' (default), or 'var' (variance 298 weighted) 297 299 insitu: if False a new scantable is returned. 298 300 Otherwise, the scaling is done in-situ … … 306 308 if not insitu: 307 309 from asap._asap import averagepol as _avpol 308 return scantable(_avpol(scan, mask ))310 return scantable(_avpol(scan, mask, weight)) 309 311 else: 310 312 from asap._asap import averagepol_insitu as _avpol 311 _avpol(scan, mask )313 _avpol(scan, mask, weight) 312 314 return 313 315
Note:
See TracChangeset
for help on using the changeset viewer.