Ignore:
Timestamp:
12/01/04 11:29:39 (20 years ago)
Author:
mar637
Message:

version 0.1a

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapreader.py

    r103 r113  
    55    This class allows the user to import single dish files
    66    (rpfits,sdfits,ms).
     7    The reader reads in integrations from the file and reamins at
     8    the fileposition afterwards.
    79    Available functions are:
    810
     
    3335            integrations:    a 'range' of integration numbers, e.g.
    3436                             range(100) or [0,1,2,3,4,10,11,100]
     37                             If not given (default) all integrations
     38                             are read in
    3539        Example:
    3640            r.read([0,1,2,3,4])    # reads in the first 5 integatrions
     
    4145        if integrations is None:
    4246            integrations = [-1]
     47        print "Reading intergrations from disk..."
    4348        sdreader.read(self,integrations)
    4449        tbl = sdreader.getdata(self)
     
    4651
    4752    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()
    4966        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.