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