27#ifndef COORDINATES_STOKESCOORDINATE_H 
   28#define COORDINATES_STOKESCOORDINATE_H 
   30#include <casacore/casa/aips.h> 
   31#include <casacore/coordinates/Coordinates/Coordinate.h> 
   32#include <casacore/measures/Measures/Stokes.h> 
   33#include <casacore/casa/Containers/Block.h> 
   34#include <casacore/casa/Arrays/Vector.h> 
  258            const String &fieldName) 
const;
 
 
Type
This enum lists the types of the derived classes.
 
formatType
This enum is used for formatting world values into Strings.
 
void setStokes(const Vector< Int > &whichStokes)
Set a new vector of Stokes values (a vector of Stokes::StokesType)
 
static StokesCoordinate * restore(const RecordInterface &container, const String &fieldName)
Recover the StokesCoordinate from a record.
 
virtual Bool setReferencePixel(const Vector< Double > &refPix)
 
virtual void makeWorldRelative(Vector< Double > &world) const
 
virtual Coordinate * clone() const
Make a copy of the StokesCoordinate using new.
 
virtual uInt nPixelAxes() const
Always returns 1.
 
virtual Bool setWorldAxisNames(const Vector< String > &names)
Set the value of the requested attribute.
 
virtual Matrix< Double > linearTransform() const
 
Bool toWorld(Stokes::StokesTypes &stokes, Int pixel) const
 
virtual String showType() const
Always returns the String "Stokes".
 
Vector< Int > stokes() const
Get the Stokes values (Stokes::StokesType) that we constructed with into a vector.
 
virtual void setDefaultWorldMixRanges()
 
virtual Bool setWorldAxisUnits(const Vector< String > &units)
The set function has no effect as the units must be empty for a StokesCoordinate Always returns True.
 
Vector< String > stokesStrings() const
Get the stokes string representations.
 
virtual void makePixelAbsolute(Vector< Double > &pixel) const
 
StokesCoordinate()
Undefined and inaccessible.
 
virtual Bool setWorldMixRanges(const IPosition &shape)
Set the world min and max ranges, for use in function toMix, for a lattice of the given shape (for th...
 
virtual Vector< Double > increment() const
 
static Stokes::StokesTypes toWorld(Double world)
 
static Double toWorld(Stokes::StokesTypes stokes)
Interconvert between world stored as a Double and world stored as a Stokes type.
 
virtual String format(String &units, Coordinate::formatType format, Double worldValue, uInt worldAxis, Bool isAbsolute=True, Bool showAsAbsolute=True, Int precision=-1, Bool usePrecForMixed=False) const
Format a StokesCoordinate world value with the common format interface (refer to the base class Coord...
 
StokesCoordinate(const Vector< Int > &whichStokes)
The length of whichStokes is the length of the axis, and the values define which stokes are in which ...
 
Bool toPixel(Int &pixel, Stokes::StokesTypes stokes) const
Interconvert between pixel and world as a Stokes type.
 
virtual Vector< Double > referenceValue() const
 
Bool toPixel(Double &pixel, const Double world) const
 
virtual ~StokesCoordinate()
Destructor.
 
virtual Bool setIncrement(const Vector< Double > &inc)
 
virtual Vector< Double > referencePixel() const
 
virtual Bool near(const Coordinate &other, Double tol=1e-6) const
Comparison function.
 
virtual Vector< String > worldAxisUnits() const
 
virtual Vector< String > worldAxisNames() const
Report the value of the requested attribute.
 
virtual void makeWorldAbsolute(Vector< Double > &world) const
 
virtual Coordinate::Type type() const
Returns Coordinates::STOKES.
 
virtual Bool save(RecordInterface &container, const String &fieldName) const
Save the StokesCoordinate into the supplied record using the supplied field name.
 
virtual Bool toPixel(Vector< Double > &pixel, const Vector< Double > &world) const
 
virtual uInt nWorldAxes() const
 
virtual void makePixelRelative(Vector< Double > &pixel) const
Make absolute coordinates relative and vice-versa.
 
StokesCoordinate(const StokesCoordinate &other)
Copy constructor (copy semantics)
 
virtual Bool setReferenceValue(const Vector< Double > &refval)
 
virtual Bool setLinearTransform(const Matrix< Double > &xform)
 
virtual Bool doNearPixel(const Coordinate &other, const Vector< Bool > &thisAxes, const Vector< Bool > &otherAxes, Double tol=1.0e-6) const
Comparison only made for specified axes in this and other Coordinate.
 
virtual Bool near(const Coordinate &other, const Vector< Int > &excludeAxes, Double tol=1e-6) const
 
Bool toWorld(Double &world, const Double pixel) const
 
StokesCoordinate & operator=(const StokesCoordinate &other)
Assignment (copy semantics)
 
virtual Bool toWorld(Vector< Double > &world, const Vector< Double > &pixel, Bool=True) const
Convert a pixel to a world coordinate or vice versa.
 
Double crval_p
Keep these for subimaging purposes.
 
StokesTypes
The Stokes types are defined by this enum.
 
String: the storage and methods of handling collections of characters.
 
this file contains all the compiler specific defines
 
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
 
bool Bool
Define the standard types used by Casacore.