30 #ifndef COORDINATES_LINEARCOORDINATE_H
31 #define COORDINATES_LINEARCOORDINATE_H
36 #include <wcslib/wcs.h>
40 template<
class T>
class Quantum;
A 1-D Specialization of the Array class.
virtual Coordinate * makeFourierCoordinate(const Vector< Bool > &axes, const Vector< Int > &shape) const
Find the Coordinate for when we Fourier Transform ourselves.
LinearCoordinate & operator=(const LinearCoordinate &other)
Assignment (copy semantics).
LinearCoordinate(uInt naxes=1)
The default constructor makes a LinearCoordinate for which pixel and world coordinates are equal...
virtual Bool setWorldAxisNames(const Vector< String > &names)
Set the value of the requested attributed.
virtual uInt nPixelAxes() const
Returns the number of pixel/world axes.
virtual Bool setLinearTransform(const Matrix< Double > &pc)
mutable::wcsprm wcs_p
An interface to the WCSLIB linear transformation routines.
Interconvert between pixel and a linear world coordinate.
void copy(const LinearCoordinate &other)
Copy private data.
virtual Coordinate * clone() const
Make a copy of the LinearCoordinate using new.
virtual Vector< String > worldAxisNames() const
Return the requested attribute.
virtual uInt nWorldAxes() const
virtual ~LinearCoordinate()
Destructor.
Interface for converting between world and pixel coordinates.
Bool overwriteWorldAxisUnits(const Vector< String > &units)
Overwrite the world axis units with no compatibility checks or adjustment.
virtual Vector< Double > referencePixel() const
virtual Bool toPixel(Vector< Double > &pixel, const Vector< Double > &world) const
virtual Bool setReferencePixel(const Vector< Double > &refPix)
virtual Vector< Double > referenceValue() const
virtual Vector< Double > increment() const
bool Bool
Define the standard types used by Casacore.
virtual Matrix< Double > linearTransform() const
virtual Bool setWorldAxisUnits(const Vector< String > &units)
Set the world axis units.
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 near(const Coordinate &other, Double tol=1e-6) const
Comparison function.
virtual Bool setReferenceValue(const Vector< Double > &refval)
virtual Bool save(RecordInterface &container, const String &fieldName) const
Save the LinearCoordinate into the supplied record using the supplied field name. ...
void makeWCS(wcsprm &wcs, uInt naxis, const Vector< Double > &refPix, const Vector< Double > &refVal, const Vector< Double > &incr, const Matrix< Double > &pc, const Vector< String > &units, const Vector< String > &names)
Make wcs structure.
const Double e
e and functions thereof:
virtual Coordinate::Type type() const
Returns Coordinate::LINEAR.
virtual Bool toWorld(Vector< Double > &world, const Vector< Double > &pixel, Bool=True) const
Convert a pixel position to a worl position or vice versa.
virtual Bool setIncrement(const Vector< Double > &inc)
String: the storage and methods of handling collections of characters.
static LinearCoordinate * restore(const RecordInterface &container, const String &fieldName)
Restore the LinearCoordinate from a record.
Abstract base class for Record classes.
virtual Vector< String > worldAxisUnits() const
virtual String showType() const
Returns the String "Linear".