Changeset 2761 for trunk/python


Ignore:
Timestamp:
02/06/13 13:13:20 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Added new option, freqref, to NRO filler. Posible values are:
1) 'rest' to import frequency in REST frame, which results in an exactly
same frequency label as NEWSTAR, and 2) 'vref' to import frequency
in the frame that source velocity refers, which results in the same
velocity label as NEWSTAR. The option must be given to scantable
constructor.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2754 r2761  
    255255                    self._fill([filename], unit, average, opts)
    256256                elif os.path.isfile(filename):
    257                     self._fill([filename], unit, average)
     257                    opts={'nro': {}}
     258                    nrokeys=['freqref']
     259                    for key in nrokeys:
     260                        if key in args.keys():
     261                            opts['nro'][key] = args[key]
     262                    self._fill([filename], unit, average, opts)
    258263                    # only apply to new data not "copy constructor"
    259264                    self.parallactify(parallactify)
Note: See TracChangeset for help on using the changeset viewer.