Changeset 339


Ignore:
Timestamp:
01/31/05 20:54:39 (19 years ago)
Author:
kil064
Message:

add unit to constructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapreader.py

    r333 r339  
    1919    """
    2020
    21     def __init__(self, filename,theif=None,thebeam=None):
     21    def __init__(self, filename,unit=None, theif=None, thebeam=None):
    2222        """
    2323        Parameters:
    2424            filename:    the name of an rpfits/sdfits/ms file on disk
     25            unit:        brightness unit; must be consistent with K or Jy.
     26                         The default is that a unit is set depending on
     27                         the telescope.  Setting this over-rides that choice.
    2528            theif:       select a specific IF (default is all)
    2629            thebeam:     select a specific beam (default is all)
     
    2831            r = reader('/tmp/2001-09-01_0332_P363.rpf', theif=2)
    2932        """
     33        if unit is None:
     34            unit = ""
    3035        if theif is None:
    3136            theif = -1
    3237        if thebeam is None:
    3338            thebeam = -1
    34         sdreader.__init__(self, filename, theif, thebeam)
     39        sdreader.__init__(self, filename, unit, theif, thebeam)
    3540
    3641    def read(self,integrations=None):
Note: See TracChangeset for help on using the changeset viewer.