Changeset 333


Ignore:
Timestamp:
01/31/05 18:18:50 (20 years ago)
Author:
kil064
Message:

allow IF and beam selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapreader.py

    r127 r333  
    1919    """
    2020
    21     def __init__(self, filename):
     21    def __init__(self, filename,theif=None,thebeam=None):
    2222        """
    2323        Parameters:
    2424            filename:    the name of an rpfits/sdfits/ms file on disk
     25            theif:       select a specific IF (default is all)
     26            thebeam:     select a specific beam (default is all)
    2527        Example:
    26             r = reader('/tmp/2001-09-01_0332_P363.rpf')
     28            r = reader('/tmp/2001-09-01_0332_P363.rpf', theif=2)
    2729        """
    28         sdreader.__init__(self, filename)
     30        if theif is None:
     31            theif = -1
     32        if thebeam is None:
     33            thebeam = -1
     34        sdreader.__init__(self, filename, theif, thebeam)
    2935
    3036    def read(self,integrations=None):
Note: See TracChangeset for help on using the changeset viewer.