casa
$Rev:20696$
|
Go to the source code of this file.
Functions | |
void | setcoordsys (casa::CoordinateSystem &acsys) |
coordsys (const casa::CoordinateSystem *inCS) | |
private constructor to make components on the fly | |
casa::Record | absRelRecord (casa::LogIO &os, const casa::RecordInterface &recIn, casa::Bool isWorld, casa::Bool absToRel) |
Inter convert absolute and relative world or pixel coordinates. | |
void | addCoordinate (casa::CoordinateSystem &cSys, casa::Bool direction, casa::Bool spectral, const casa::Vector< casa::String > &stokes, casa::Int linear, casa::Bool tabular) |
Add default coordinates to CS. | |
void | copyWorldAxes (casa::Vector< casa::Double > &out, const casa::Vector< casa::Double > &in, casa::Int c) const |
Copy the world axes of in to out. | |
casa::Vector< casa::Double > | measuresToWorldVector (const casa::RecordInterface &rec) const |
Convert record of measures to world coordinate vector. | |
casa::Record | worldVectorToMeasures (const casa::Vector< casa::Double > &world, casa::Int c, casa::Bool abs) const |
Convert world coordinate to measures and stick in record. | |
casa::Int | findCoordinate (casa::Coordinate::Type type, casa::Bool warn) const |
Find coordinate of desired type. | |
void | recordToWorldVector (casa::Vector< casa::Double > &world, casa::String &type, casa::Int c, const casa::RecordInterface &rec) const |
Convert a record holding some mixture of numeric, measures, quantity, string to a vector of doubles. | |
casa::Record | worldVectorToRecord (const casa::Vector< casa::Double > &world, casa::Int c, const casa::String &format, casa::Bool isAbsolute, casa::Bool showAsAbsolute) |
Convert a vector of world to a record holding some mixture of numeric, measures, quantity, string. | |
casa::Record | quantumToRecord (casa::LogIO &os, const casa::Quantum< casa::Double > &value) const |
Convert Quantum to record. | |
void | setDirectionCode (const casa::String &code, casa::Bool adjust) |
Set DirectionCoordinate reference code. | |
void | setSpectralCode (const casa::String &code, casa::Bool adjust) |
Set SpectralCoordinate reference code. | |
casa::Vector< casa::Double > | stringToWorldVector (casa::LogIO &os, const casa::Vector< casa::String > &world, const casa::Vector< casa::String > &worldAxisUnits) const |
Convert world String to world vector double. | |
casa::Coordinate::Type | stringToType (const casa::String &typeIn) const |
Convert user coordinate type string to enum. | |
casa::Record | toWorldRecord (const casa::Vector< casa::Double > &pixel, const casa::String &format) |
absolute pixel to absolute world | |
void | trim (casa::Vector< casa::Double > &in, const casa::Vector< casa::Double > &replace) const |
Add missing values or tim excessive. | |
casa::Vector< casa::Double > | quantumVectorRecordToVectorDouble (const casa::RecordInterface &recQ, const casa::Vector< casa::String > &units) const |
Convert a vector of quantum doubles in a record to a vector of double applying specified units. | |
casa::Vector< casa::Double > | quantumRecordToVectorDouble (const casa::RecordInterface &recQ, const casa::Vector< casa::String > &units) const |
casa::Bool | checkAbsRel (casac::variant &value, casa::Bool shouldBeAbs) |
casa::Record * | coordinateValueToRecord (const casac::variant &value, casa::Bool isWorld, casa::Bool isAbs, casa::Bool first) |
int | isValueWorld (casac::variant &value, int shouldBeWorld, casa::Bool verbose=true) |
std::vector< double > | toPixel (const ::casac::variant &value) |
Variables | |
casa::LogIO * | itsLog |
casa::CoordinateSystem * | itsCoordSys |
casa::String | itsParentImageName |
casa::Record absRelRecord | ( | casa::LogIO & | os, |
const casa::RecordInterface & | recIn, | ||
casa::Bool | isWorld, | ||
casa::Bool | absToRel | ||
) | [private] |
Inter convert absolute and relative world or pixel coordinates.
void addCoordinate | ( | casa::CoordinateSystem & | cSys, |
casa::Bool | direction, | ||
casa::Bool | spectral, | ||
const casa::Vector< casa::String > & | stokes, | ||
casa::Int | linear, | ||
casa::Bool | tabular | ||
) | [private] |
Add default coordinates to CS.
casa::Bool checkAbsRel | ( | casac::variant & | value, |
casa::Bool | shouldBeAbs | ||
) | [private] |
casa::Record* coordinateValueToRecord | ( | const casac::variant & | value, |
casa::Bool | isWorld, | ||
casa::Bool | isAbs, | ||
casa::Bool | first | ||
) | [private] |
coordsys | ( | const casa::CoordinateSystem * | inCS | ) | [private] |
private constructor to make components on the fly
void copyWorldAxes | ( | casa::Vector< casa::Double > & | out, |
const casa::Vector< casa::Double > & | in, | ||
casa::Int | c | ||
) | const [private] |
Copy the world axes of in to out.
casa::Int findCoordinate | ( | casa::Coordinate::Type | type, |
casa::Bool | warn | ||
) | const [private] |
Find coordinate of desired type.
int isValueWorld | ( | casac::variant & | value, |
int | shouldBeWorld, | ||
casa::Bool | verbose = true |
||
) | [private] |
casa::Vector<casa::Double> measuresToWorldVector | ( | const casa::RecordInterface & | rec | ) | const [private] |
Convert record of measures to world coordinate vector.
casa::Vector<casa::Double> quantumRecordToVectorDouble | ( | const casa::RecordInterface & | recQ, |
const casa::Vector< casa::String > & | units | ||
) | const [private] |
casa::Record quantumToRecord | ( | casa::LogIO & | os, |
const casa::Quantum< casa::Double > & | value | ||
) | const [private] |
Convert Quantum to record.
casa::Vector<casa::Double> quantumVectorRecordToVectorDouble | ( | const casa::RecordInterface & | recQ, |
const casa::Vector< casa::String > & | units | ||
) | const [private] |
Convert a vector of quantum doubles in a record to a vector of double applying specified units.
void recordToWorldVector | ( | casa::Vector< casa::Double > & | world, |
casa::String & | type, | ||
casa::Int | c, | ||
const casa::RecordInterface & | rec | ||
) | const [private] |
Convert a record holding some mixture of numeric, measures, quantity, string to a vector of doubles.
void setcoordsys | ( | casa::CoordinateSystem & | acsys | ) |
void setDirectionCode | ( | const casa::String & | code, |
casa::Bool | adjust | ||
) | [private] |
Set DirectionCoordinate reference code.
void setSpectralCode | ( | const casa::String & | code, |
casa::Bool | adjust | ||
) | [private] |
Set SpectralCoordinate reference code.
casa::Coordinate::Type stringToType | ( | const casa::String & | typeIn | ) | const [private] |
Convert user coordinate type string to enum.
casa::Vector<casa::Double> stringToWorldVector | ( | casa::LogIO & | os, |
const casa::Vector< casa::String > & | world, | ||
const casa::Vector< casa::String > & | worldAxisUnits | ||
) | const [private] |
Convert world String to world vector double.
World vector must be length cSys.nWorldAxes()
std::vector<double> toPixel | ( | const ::casac::variant & | value | ) | [private] |
casa::Record toWorldRecord | ( | const casa::Vector< casa::Double > & | pixel, |
const casa::String & | format | ||
) | [private] |
absolute pixel to absolute world
void trim | ( | casa::Vector< casa::Double > & | in, |
const casa::Vector< casa::Double > & | replace | ||
) | const [private] |
Add missing values or tim excessive.
casa::Record worldVectorToMeasures | ( | const casa::Vector< casa::Double > & | world, |
casa::Int | c, | ||
casa::Bool | abs | ||
) | const [private] |
Convert world coordinate to measures and stick in record.
casa::Record worldVectorToRecord | ( | const casa::Vector< casa::Double > & | world, |
casa::Int | c, | ||
const casa::String & | format, | ||
casa::Bool | isAbsolute, | ||
casa::Bool | showAsAbsolute | ||
) | [private] |
Convert a vector of world to a record holding some mixture of numeric, measures, quantity, string.
Definition at line 10 of file coordsys_private.h.
Definition at line 9 of file coordsys_private.h.
Definition at line 11 of file coordsys_private.h.