28 #ifndef COORDINATES_FREQUENCYALIGNER_H
29 #define COORDINATES_FREQUENCYALIGNER_H
206 #ifndef CASACORE_NO_AUTO_TEMPLATES
207 #include <casacore/coordinates/Coordinates/FrequencyAligner.tcc>
208 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Measure: astronomical direction.
Bool alignMany(Array< T > &yOut, Array< Bool > &maskOut, const Array< T > &yIn, const Array< Bool > &maskIn, uInt axis, const MEpoch &epoch, typename InterpolateArray1D< Double, T >::InterpolationMethod method, Bool extrapolate=False)
Align many spectra stored in an Array along the specified axis.
A Measure: position on Earth.
Bool regrid(Vector< T > &yOut, Vector< Bool > &maskOut, const Vector< Double > &xOut, const Vector< Double > &xIn, const Vector< T > &yIn, const Vector< Bool > &maskIn, typename InterpolateArray1D< Double, T >::InterpolationMethod method, Bool extrapolate, Double maxDiff) const
Regrid one spectrum.
Vector< Double > itsFreqX
FrequencyAligner & operator=(const FrequencyAligner< T > &other)
Assignment (copy semantics)
FrequencyAligner()
Default constructor (object not viable)
void getReferenceAbcissa(Vector< Double > &xOut) const
Get the reference abcissa (as a frequency in the axis units set in the SpectralCoordinate) at the ref...
SpectralCoordinate itsSpecCoord
~FrequencyAligner()
Destructor.
A Measure: instant in time.
InterpolationMethod
Interpolation methods.
Aligns spectra in frequency space.
Vector< Double > itsRefFreqX
LatticeExprNode abs(const LatticeExprNode &expr)
Numerical 1-argument functions which result in a real number regardless of input expression type...
Bool align(Vector< T > &yOut, Vector< Bool > &maskOut, const Vector< T > &yIn, const Vector< Bool > &maskIn, const MEpoch &epoch, Bool useCachedAbcissa, typename InterpolateArray1D< Double, T >::InterpolationMethod method, Bool extrapolate=False)
Align (via regridding) one spectrum taken at the specified epoch to the reference epoch...
MFrequency::Types itsFreqSystem
the conversion machines epoch otherwise
bool Bool
Define the standard types used by Casacore.
MFrequency::Convert itsMachine
Interconvert pixel and frequency values.
MFrequency::Ref itsRefOut
void getAbcissa(Vector< Double > &xOut) const
Get the abcissa (as a frequency in the axis units set in the SpectralCoordinate) last cached by funct...
void copyOther(const FrequencyAligner< T > &other)
Internal copy.
void makeMachine(const MEpoch &refEpoch, const MDirection &dir, const MPosition &pos, MFrequency::Types freqSystem, const Unit &unit)
Create the Conversion machine.
Double makeAbcissa(Vector< Double > &f, Bool doMaxDiff)
Generate an abcissa with the machine.
SpectralCoordinate alignedSpectralCoordinate(Bool doLinear=True) const
Get new aligned SpectralCoordinate.
void setTolerance(Double tol)
Set a tolerance (in pixels) to trigger regridding (function align).
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...