casa
$Rev:20696$
|
#include <VisBufferUtil.h>
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. |
<h3>Synopsis</h3> <h3>Example</h3> @anchor VisBufferUtil_example
Definition at line 66 of file VisBufferUtil.h.
Empty Constructor.
casa::VisBufferUtil::VisBufferUtil | ( | const VisBuffer & | vb | ) |
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 = (InterpolateArray1D< Float, 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
void casa::VisBufferUtil::makePSFVisBuffer | ( | VisBuffer & | vb | ) |
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.
MeasFrame casa::VisBufferUtil::mframe_ [private] |
A MeasFrame for conversions.
Definition at line 108 of file VisBufferUtil.h.