casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::VisBufferUtil Class Reference

#include <VisBufferUtil.h>

List of all members.

Public Member Functions

 VisBufferUtil ()
 Empty Constructor.
 VisBufferUtil (const VisBuffer &vb)
 Construct from a VisBuffer (sets a MeasFrame)
void makePSFVisBuffer (VisBuffer &vb)
 Make PSF VisBuffer.
Bool interpolateFrequency (Cube< Complex > &data, Cube< Bool > &flags, const VisBuffer &vb, const Vector< Float > &outFreqGrid, const MS::PredefinedColumns whichCol=MS::DATA, const MFrequency::Types freqFrame=MFrequency::LSRK, const InterpolateArray1D< Float, Complex >::InterpolationMethod interp=(InterpolateArray1D< Float, Complex >::nearestNeighbour))
 Regrid the data on a new frequency grid (defined by outFreqGrid) , on the frequency frame (defined by freqFrame).
void convertFrequency (Vector< Double > &outFreq, const VisBuffer &vb, const MFrequency::Types freqFrame)
 Converts the frequency in this visbuffer to the frame requested.
void toVelocity (Vector< Double > &outVel, const VisBuffer &vb, const MFrequency::Types freqFrame, const MVFrequency restFreq, const MDoppler::Types veldef)
 Converts the frequency in this VisBuffer to velocity in the frame/def requested.

Private Member Functions

void swapyz (Cube< Bool > &out, const Cube< Bool > &in)
void swapyz (Cube< Complex > &out, const Cube< Complex > &in)

Private Attributes

MeasFrame mframe_
 A MeasFrame for conversions.

Detailed Description

Etymology

<h3>Synopsis</h3> 

<h3>Example</h3> @anchor VisBufferUtil_example

Motivation

Definition at line 66 of file VisBufferUtil.h.


Constructor & Destructor Documentation

Empty Constructor.

Construct from a VisBuffer (sets a MeasFrame)


Member Function Documentation

void casa::VisBufferUtil::convertFrequency ( Vector< Double > &  outFreq,
const VisBuffer vb,
const MFrequency::Types  freqFrame 
)

Converts the frequency in this visbuffer to the frame requested.

Bool casa::VisBufferUtil::interpolateFrequency ( Cube< Complex > &  data,
Cube< Bool > &  flags,
const VisBuffer vb,
const Vector< Float > &  outFreqGrid,
const MS::PredefinedColumns  whichCol = MS::DATA,
const MFrequency::Types  freqFrame = MFrequency::LSRK,
const InterpolateArray1D< Float, Complex >::InterpolationMethod  interp = (InterpolateArray1DFloat, Complex >::nearestNeighbour) 
)

Regrid the data on a new frequency grid (defined by outFreqGrid) , on the frequency frame (defined by freqFrame).

It will pass back the interpolated data and flags

Make PSF VisBuffer.

void casa::VisBufferUtil::swapyz ( Cube< Bool > &  out,
const Cube< Bool > &  in 
) [private]
void casa::VisBufferUtil::swapyz ( Cube< Complex > &  out,
const Cube< Complex > &  in 
) [private]
void casa::VisBufferUtil::toVelocity ( Vector< Double > &  outVel,
const VisBuffer vb,
const MFrequency::Types  freqFrame,
const MVFrequency  restFreq,
const MDoppler::Types  veldef 
)

Converts the frequency in this VisBuffer to velocity in the frame/def requested.


Member Data Documentation

A MeasFrame for conversions.

Definition at line 108 of file VisBufferUtil.h.


The documentation for this class was generated from the following file: