30 #ifndef COORDINATES_TABULARCOORDINATE_H
31 #define COORDINATES_TABULARCOORDINATE_H
41 template<
class T>
class Quantum;
void copy(const TabularCoordinate &other)
Common code for copy ctor and assignment operator.
virtual Vector< Double > referenceValue() const
virtual void makePixelAbsolute(Vector< Double > &pixel) const
static TabularCoordinate * restore(const RecordInterface &container, const String &fieldName)
Recover the TabularCoordinate from a record.
virtual Bool setLinearTransform(const Matrix< Double > &xform)
TabularCoordinate()
Default constructor.
virtual Bool toWorldMany(Matrix< Double > &world, const Matrix< Double > &pixel, Vector< Bool > &failures) const
Batch up a lot of transformations.
Table lookup 1-D coordinate, with interpolation.
Interpolate in one dimension.
Vector< Double > pixelValues() const
Get the table, i.e.
virtual Coordinate * clone() const
Make a copy of the TabularCoordinate using new.
virtual Coordinate::Type type() const
Returns Coordinate::TABULAR.
Vector< Double > worldValues() const
virtual Bool setReferenceValue(const Vector< Double > &refval)
virtual uInt nPixelAxes() const
Always returns 1.
ostream-like interface to creating log messages.
virtual uInt nWorldAxes() const
virtual Bool toPixel(Vector< Double > &pixel, const Vector< Double > &world) const
TabularCoordinate & operator=(const TabularCoordinate &other)
Assignment (copy semantics).
virtual void makeWorldRelative(Vector< Double > &world) const
Bool overwriteWorldAxisUnits(const Vector< String > &units)
Overwrite the world axis units with no compatibility checks or adjustment.
virtual Bool near(const Coordinate &other, Double tol=1e-6) const
Comparison function.
virtual Bool toPixelMany(Matrix< Double > &pixel, const Matrix< Double > &world, Vector< Bool > &failures) const
virtual Vector< Double > referencePixel() const
virtual Vector< Double > increment() const
virtual Bool setIncrement(const Vector< Double > &inc)
virtual Bool save(RecordInterface &container, const String &fieldName) const
Save the TabularCoordinate into the supplied record using the supplied field name.
virtual void makePixelRelative(Vector< Double > &pixel) const
Make absolute coordinates relative and vice-versa (with respect to the referencfe value)...
virtual Bool setReferencePixel(const Vector< Double > &refPix)
void clear_self()
Common for assignment operator and destructor.
Interface for converting between world and pixel coordinates.
virtual Vector< String > worldAxisNames() const
Return the requested attribute.
virtual void makeWorldAbsolute(Vector< Double > &world) const
virtual Coordinate * makeFourierCoordinate(const Vector< Bool > &axes, const Vector< Int > &shape) const
Find the Coordinate for when we Fourier Transform ourselves.
bool Bool
Define the standard types used by Casacore.
virtual Matrix< Double > linearTransform() const
virtual Bool setWorldAxisNames(const Vector< String > &names)
Set the value of the requested attribute.
Quantities (i.e. dimensioned values)
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
Type
This enum lists the types of the derived classes.
virtual Bool toWorld(Vector< Double > &world, const Vector< Double > &pixel, Bool=True) const
Convert a pixel position to a world position or vice versa.
virtual String showType() const
Always returns the String "Tabular".
const Double e
e and functions thereof:
String: the storage and methods of handling collections of characters.
Interpolate1D< Double, Double > * channel_corrector_p
Channel_True = channel_corrections_p(Channel_average).
Abstract base class for Record classes.
virtual Bool setWorldAxisUnits(const Vector< String > &units)
Set/get the axis unit.
virtual ~TabularCoordinate()
Destructor.
Interpolate1D< Double, Double > * channel_corrector_rev_p
void makeNonLinearTabularCoordinate(const Vector< Double > &pixelValues, const Vector< Double > &worldValues)
virtual Vector< String > worldAxisUnits() const
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.