Changeset 445


Ignore:
Timestamp:
02/15/05 11:59:32 (20 years ago)
Author:
kil064
Message:

add stokes conversion arg. to function 'save'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r436 r445  
    7171                    sdtable.__init__(self,tbl)
    7272
    73     def save(self, name=None, format=None, overwrite=False):
     73    def save(self, name=None, format=None, stokes=True, overwrite=False):
    7474        """
    7575        Store the scantable on disk. This can be an asap (aips++) Table, SDFITS,
     
    8686                                       'MS2' (saves as an aips++
    8787                                              MeasurementSet V2)
     88            stokes:      Convert to Stokes parameters (only available
     89                         currently with FITS and ASCII formats.
    8890            overwrite:   If the file should be overwritten if it exists.
    8991                         The default False is to return with warning
     
    109111            from asap._asap import sdwriter as _sw
    110112            w = _sw(format)
    111             w.write(self, name)
     113            w.write(self, name, stokes)
    112114        return
    113115
Note: See TracChangeset for help on using the changeset viewer.