Changeset 194


Ignore:
Timestamp:
01/14/05 11:07:22 (20 years ago)
Author:
kil064
Message:

allow FITS format in function 'save'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r189 r194  
    5555            name:        the name of the outputfile
    5656            format:      an optional file format. Default is ASAP.
    57                          Allowed are 'ASAP', 'SDFITS' and 'MS2'
     57                         Allowed are - 'ASAP' (save as ASAP Table),
     58                                       'SDFITS' (save as SDFITS file)
     59                                       'FITS' (saves each row as a FITS Image)
     60                                       'MS2' (saves as an aips++ MeasurementSet V2)
    5861        Example:
    5962            scan.save('myscan.asap')
     
    6467        else:
    6568            from asap._asap import sdwriter as _sw
    66             w = _sw()
    67             if format == 'SDFITS':
    68                 w.write(self, name)
     69            w = _sw(format)
     70            w.write(self, name)
    6971        return
    7072
Note: See TracChangeset for help on using the changeset viewer.