casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Functions
task_hanningsmooth Namespace Reference

Functions

def hanningsmooth

Function Documentation

def task_hanningsmooth.hanningsmooth (   vis = None,
  datacolumn = None,
  outputvis = None 
)
Hanning smooth frequency channel data to remove Gibbs ringing

hanningsmooth(vis='ngc5921.ms')

This function Hanning smooths the frequency channels with
a weighted running average of smoothedData[i] =
0.25*correctedData[i-1] + 0.50*correctedData[i] +
0.25*correctedData[i+1].  The first and last channels are flagged.
Inclusion of a flagged value in an average causes that data value
to be flagged.

Keyword arguments:
vis -- Name of input visibility file (MS)
       default: none; example: vis='ngc5921.ms'
datacolumn -- the name of the MS column into which to write the smoothed data
              default='corrected'; example: datacolumn='data'
              options: 'corrected' or 'data'
outputvis -- name of the output visibility file (MS)
             default=none (write to the input MS); example: outputvis='ngc5921_src.ms'

Definition at line 9 of file task_hanningsmooth.py.