- Timestamp:
- 02/10/05 15:31:08 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapreader.py
r360 r406 56 56 integrations = [-1] 57 57 print "Reading integrations from disk..." 58 sdreader. read(self,integrations)59 tbl = sdreader. getdata(self)58 sdreader._read(self,integrations) 59 tbl = sdreader._getdata(self) 60 60 if self.unit is not None: 61 61 tbl.set_fluxunit(self.unit) … … 71 71 r.summary() 72 72 """ 73 sdreader. reset(self)74 sdreader. read(self,[-1])75 tbl = sdreader. getdata(self)76 sdreader. reset(self)73 sdreader._reset(self) 74 sdreader._read(self,[-1]) 75 tbl = sdreader._getdata(self) 76 sdreader._reset(self) 77 77 print tbl._summary() 78 78 return 79 def reset(self): 80 """ 81 Reset to the beginning of the file. 82 Parameters: 83 none 84 Examples: 85 r = reader('xyz.sdfits') 86 scans0 = r.read(range(10)) 87 r.reset() 88 scans1 = r.read(range(5,15)) 89 # produces 2 scatables one containing integrations(rows) 0-9 90 # and a second one with rows 5-14 91 sdreader._reset(self) 92
Note:
See TracChangeset
for help on using the changeset viewer.