- Timestamp:
- 11/18/05 11:10:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapreader.py
r415 r719 1 1 from asap._asap import sdreader 2 from asap import print_log 2 3 3 4 class reader(sdreader): … … 46 47 filename = expandvars(filename) 47 48 sdreader.__init__(self, filename, theif, thebeam) 49 print_log() 48 50 49 51 def read(self,integrations=None): … … 62 64 """ 63 65 from asap import scantable 66 from asap import asaplog 64 67 if integrations is None: 65 68 integrations = [-1] 66 print "Reading integrations from disk..."69 asaplog.push("Reading integrations from disk...") 67 70 sdreader._read(self,integrations) 68 71 tbl = sdreader._getdata(self) … … 70 73 if self.unit is not None: 71 74 tbl.set_fluxunit(self.unit) 75 print_log() 72 76 return scantable(tbl) 73 77 … … 88 92 tbl.summary(name) 89 93 return 90 ## def reset(self):91 ## """92 ## [Advanced use]93 ## Reset to the beginning of the file.94 ## Parameters:95 ## none96 ## Examples:97 ## r = reader('xyz.sdfits')98 ## scans0 = r.read(range(10))99 ## r.reset()100 ## scans1 = r.read(range(5,15))101 ## # produces 2 scatables one containing integrations(rows) 0-9102 ## # and a second one with rows 5-14103 ## """104 ## sdreader._reset(self)105
Note:
See TracChangeset
for help on using the changeset viewer.