CASA Documentation
Advanced Search…
  • Log in

Navigation

  • Home
  • Latest
  • CASA 6.1
  • CASA 5.6
  • CASA 5.5
  • CASA 5.4.1
  • CASA 5.4.0
  • CASA 5.3.0
  • CASA 5.1.2
  • CASA 5.1.1
  • CASA 5.1.0
  • CASA 5.0.0
Navigation
  • Release Information
  • Using CASA
  • Global Task List
  • Global Tool List
  • Visibility Data Import Export
  • Visibility Data Selection
  • Data Examination and Editing
  • UV Manipulation
    • Manipulating Visibilities with MStransform
    • Combining, separating, and smoothing spectral windows
    • Data Selection and Reindexing
    • Data partition
    • On-the-fly calibration
    • Time average
    • Channel average
    • Splitting out Calibrated UV data (split and mstransform)
    • Averaging in split
    • Recalculation of uvw values (fixvis)
    • Hanning smoothing of uv data (hanningsmooth)
    • Regridding Visibility Frequencies and Velocities
    • Combining MeasurementSets
    • UV-Plane Continuum Subraction
    • Visibility Analysis
    • Subtracting or Adding Model Visibilities
    • Fitting Gaussians to Visibilities
    • Task: mstransform
    • Task: split
    • Task: hanningsmooth
    • Task: concat
  • Synthesis Calibration
  • Ephemeris Data
  • Synthesis Imaging
  • Single Dish Calibration
  • Single-Dish Imaging
  • Image Combination
  • Image Cube Visualization
  • Image Analysis
  • Simulation
  • Parallel Processing
  • Pipeline
  • Reference Material
  • CASA on Amazon Web Services

Channel average

Channel averaging highlights using mstransform and split

Both mstransform & split support averaging data by frequency channel.  In split the amount of channel averaging (if any) is set by top-level parameter width.

width  = 1     # Number of channels to average to form one output channel

In mstransform this capability is accessed by specifying chanaverage=True and setting the resulting sub-parameter chanbin, as shown here:  

chanaverage = True      # Average data in channels.
chanbin     = 1         # Width (bin) of input channels to average to form an output channel.

Some new features of split / mstransform relative to the old implementation of split are as follows

    • oldsplit performs a flat average taking into account only the FLAG column, whereas mstransform / split use both FLAG and spectral weights (when present), resulting in a weighted average. To be specific WEIGHT_SPECTRUM is used when averaging CORRECTED_DATA, and SIGMA_SPECTRUM is used when averaging the DATA column.
    • Also mstransform / split are able to transform the input WEIGHT/SIGMA_SPECTRUM according to the rules of error propagation that apply to a weighted average, which result in an output weight equals to the sum of the input weights. For a detailed reference see, Data Reduction and Error Analysis [1].
    • Both mstransform / split drop the last output channel bin when there are not enough contributors to fully populate it. For instance, if the input SPW has 128 channels and chanbin is 10, the resulting averaged SPW would have 12 channels and not 13 channels.

The chanbin parameter can be either a scalar or a vector. In the former case, the same chanbin is applied to all the spectral windows. In the second case, each element of the chanbin vector will apply to the selected spectral windows. Obviously the size of the chanbin vector and the number of selected spectral windows have to match.

If spw combination and channel average are used together (combinespws=True, chanaverage = True), the chanbin parameter can only be a scalar. This is due to the fact that channel average applies to the already spw combined MS, which contains one single spw.

Citation Number 1
Citation Text Bevington & Robinson, 3rd Ed., McGraw Hill, 2003
« Previous: Time average Next: Splitting out Calibrated UV data (split and mstransform) »  
The Plone® Open Source CMS/WCM is © 2000-2022 by the Plone Foundation and friends. Distributed under the GNU GPL license.
  • Site Map
  • Accessibility
  • Contact
Powered by Plone & Python