Changeset 113 for trunk/python/asapreader.py
- Timestamp:
- 12/01/04 11:29:39 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapreader.py
r103 r113 5 5 This class allows the user to import single dish files 6 6 (rpfits,sdfits,ms). 7 The reader reads in integrations from the file and reamins at 8 the fileposition afterwards. 7 9 Available functions are: 8 10 … … 33 35 integrations: a 'range' of integration numbers, e.g. 34 36 range(100) or [0,1,2,3,4,10,11,100] 37 If not given (default) all integrations 38 are read in 35 39 Example: 36 40 r.read([0,1,2,3,4]) # reads in the first 5 integatrions … … 41 45 if integrations is None: 42 46 integrations = [-1] 47 print "Reading intergrations from disk..." 43 48 sdreader.read(self,integrations) 44 49 tbl = sdreader.getdata(self) … … 46 51 47 52 def summary(self): 48 print "Disabled" 53 """ 54 Print a summary of all scans/integrations. This reads through the 55 whole file once. 56 Parameters: 57 None 58 Example: 59 r.summary() 60 """ 61 sdreader.reset(self) 62 sdreader.read(self,[-1]) 63 tbl = sdreader.getdata(self) 64 sdreader.reset(self) 65 print tbl.summary() 49 66 return 50 sdreader.reset(self)51 sdreader.read([-1])52 sdreader.reset(self)53 tbl = sdreader.getdata(self)54 print tbl.summary()
Note: See TracChangeset
for help on using the changeset viewer.