Ignore:
Timestamp:
03/14/12 15:15:57 (12 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-2818)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: unit test: sdaverage[test900]

Put in Release Notes: No

Module(s):

Description:

Bug fixes and improvements of Scantable::regridChannel.

  • fixed bugs in regridding abcissa of spectra.
  • take channel flag into account when regridding spectra.
  • flag a regridded channel only when all channels mapped to it is flagged or no channel is mapped to it.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r2429 r2431  
    275275        Parameters:
    276276
    277             name:        the name of the outputfile. For format "ASCII"
     277            name:        the name of the outputfile. For format 'ASCII'
    278278                         this is the root file name (data in 'name'.txt
    279279                         and header in 'name'_header.txt)
     
    533533
    534534            selection:    a selector object (default unset the selection), or
    535                           any combination of "pols", "ifs", "beams", "scans",
    536                           "cycles", "name", "query"
     535                          any combination of 'pols', 'ifs', 'beams', 'scans',
     536                          'cycles', 'name', 'query'
    537537
    538538        Examples::
     
    12021202            end:      the end frequency or period to remove
    12031203
    1204             unit:     the frequency unit (default "MHz") or "" for
     1204            unit:     the frequency unit (default 'MHz') or '' for
    12051205                      explicit lag channels
    12061206
     
    17541754                # provided your scantable is called scan
    17551755                selection = selector()
    1756                 selection.set_name("ORION*")
     1756                selection.set_name('ORION*')
    17571757                selection.set_ifs([1])
    17581758                scan.set_selection(selection)
     
    19951995                         The first row of the ascii file must give the column
    19961996                         names and these MUST include columns
    1997                          "ELEVATION" (degrees) and "FACTOR" (multiply data
     1997                         'ELEVATION' (degrees) and 'FACTOR' (multiply data
    19981998                         by this) somewhere.
    19991999                         The second row must give the data type of the
     
    20122012
    20132013            method:      Interpolation method when correcting from a table.
    2014                          Values are  "nearest", "linear" (default), "cubic"
    2015                          and "spline"
     2014                         Values are  'nearest', 'linear' (default), 'cubic'
     2015                         and 'spline'
    20162016
    20172017            insitu:      if False a new scantable is returned.
     
    20472047
    20482048            method:      Interpolation method for regridding the spectra.
    2049                          Choose from "nearest", "linear", "cubic" (default)
    2050                          and "spline"
     2049                         Choose from 'nearest', 'linear', 'cubic' (default)
     2050                         and 'spline'
    20512051
    20522052            insitu:      if False a new scantable is returned.
     
    21382138
    21392139            method:      Interpolation method when correcting from a table.
    2140                          Values are  "nearest", "linear", "cubic" (default)
    2141                          and "spline"
     2140                         Values are  'nearest', 'linear', 'cubic' (default)
     2141                         and 'spline'
    21422142
    21432143            insitu:      if False a new scantable is returned.
     
    22222222
    22232223            poltype:    The new polarisation type. Valid types are:
    2224                         "linear", "circular", "stokes" and "linpol"
     2224                        'linear', 'circular', 'stokes' and 'linpol'
    22252225
    22262226        """
Note: See TracChangeset for help on using the changeset viewer.