Changeset 989
- Timestamp:
- 04/05/06 14:33:42 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r981 r989 115 115 self._save(name) 116 116 else: 117 print "NYI" 118 # from asap._asap import sdwriter as _sw 119 # w = _sw(format2) 120 # w.write(self, name, stokes) 121 117 from asap._asap import stwriter as stw 118 w = stw(format2) 119 w.write(self, name) 122 120 print_log() 123 121 return … … 529 527 'GEO','GALACTO','LGROUP','CMB'] 530 528 531 if 1:#frame in valid:529 if frame in valid: 532 530 inf = list(self._getcoordinfo()) 533 531 inf[1] = frame … … 541 539 raise TypeError(msg) 542 540 print_log() 541 542 def set_dirframe(self, frame=""): 543 """ 544 Set the frame type of the Direction on the sky. 545 Parameters: 546 frame: an optional frame type, default ''. Valid frames are: 547 'J2000', 'B1950', 'GALACTIC' 548 Examples: 549 scan.set_dirframe('GALACTIC') 550 """ 551 varlist = vars() 552 try: 553 Scantable.set_dirframe(self, frame) 554 except RuntimeError,msg: 555 if rcParams['verbose']: 556 print msg 557 else: 558 raise 559 self._add_history("set_dirframe",varlist) 543 560 544 561 def get_unit(self): … … 761 778 scanav = "NONE" 762 779 scan = (self,) 763 if align: 764 scan = (self.freq_align(insitu=False),) 765 s = scantable(self._math._average(scan, mask, weight.upper(), 766 scanav)) 780 try: 781 if align: 782 scan = (self.freq_align(insitu=False),) 783 s = scantable(self._math._average(scan, mask, weight.upper(), 784 scanav)) 785 except RuntimeError,msg: 786 if rcParams['verbose']: 787 print msg 788 return 789 else: raise 767 790 s._add_history("average_time",varlist) 768 791 print_log()
Note:
See TracChangeset
for help on using the changeset viewer.