#include <GalacticCoords.hxx>
Public Member Functions | |
GalacticCoords () | |
Constructor just sets the method name. | |
virtual | ~GalacticCoords () |
Destructor. | |
void | setSource (IntMap &tbls, IntMap &cols, StringMap units) |
Source data columns are those with the RA and DEC. | |
void | setTarget (IntMap &cols, StringMap units) |
Target columns are those corresponding to galactic l and b. | |
void | doit (TableData< DataType > &data, int row1, int row2) |
Fill up the Galactic coordinates columns. | |
void | doit2 (TableData< DataType > &rawData, TableData< DataType > &data, int row1, int row2) |
Private Attributes | |
int | lColno |
int | bColno |
int | raColno |
int | decColno |
double | mDecFact |
double | mRAFact |
double | mlFact |
double | mbFact |
Converter | converter |
Implements method to fill up the data columns corresponding to the Galactic coordinates (l, b). Note: the code is an in house implemetation of the formula (perhaps SLALIB should be considered).
GalacticCoords< DataType >::GalacticCoords | ( | ) | [inline] |
Constructor just sets the method name.
virtual GalacticCoords< DataType >::~GalacticCoords | ( | ) | [inline, virtual] |
Destructor.
void GalacticCoords< DataType >::doit | ( | TableData< DataType > & | data, | |
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Fill up the Galactic coordinates columns.
Implements DataMethod< DataType >.
References Logger::addError(), TableData< DataType >::assign(), GalacticCoords< DataType >::bColno, ExpectNames::dec, GalacticCoords< DataType >::decColno, GalacticCoords< DataType >::lColno, GalacticCoords< DataType >::mbFact, GalacticCoords< DataType >::mDecFact, GalacticCoords< DataType >::mlFact, GalacticCoords< DataType >::mRAFact, StringOps::NumToString(), ExpectNames::ra, GalacticCoords< DataType >::raColno, and TableData< DataType >::value().
void GalacticCoords< DataType >::doit2 | ( | TableData< DataType > & | rawData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Implements DataMethod< DataType >.
void GalacticCoords< DataType >::setSource | ( | IntMap & | tbls, | |
IntMap & | cols, | |||
StringMap | units | |||
) | [inline, virtual] |
Source data columns are those with the RA and DEC.
Implements DataMethod< DataType >.
References GalacticCoords< DataType >::converter, GalacticCoords< DataType >::decColno, Converter::getFactor(), GalacticCoords< DataType >::mDecFact, GalacticCoords< DataType >::mRAFact, and GalacticCoords< DataType >::raColno.
void GalacticCoords< DataType >::setTarget | ( | IntMap & | cols, | |
StringMap | units | |||
) | [inline, virtual] |
Target columns are those corresponding to galactic l and b.
Implements DataMethod< DataType >.
References GalacticCoords< DataType >::bColno, GalacticCoords< DataType >::converter, Converter::getFactor(), GalacticCoords< DataType >::lColno, GalacticCoords< DataType >::mbFact, and GalacticCoords< DataType >::mlFact.
int GalacticCoords< DataType >::bColno [private] |
Referenced by GalacticCoords< DataType >::doit(), and GalacticCoords< DataType >::setTarget().
Converter GalacticCoords< DataType >::converter [private] |
Referenced by GalacticCoords< DataType >::setSource(), and GalacticCoords< DataType >::setTarget().
int GalacticCoords< DataType >::decColno [private] |
Referenced by GalacticCoords< DataType >::doit(), and GalacticCoords< DataType >::setSource().
int GalacticCoords< DataType >::lColno [private] |
Referenced by GalacticCoords< DataType >::doit(), and GalacticCoords< DataType >::setTarget().
double GalacticCoords< DataType >::mbFact [private] |
Referenced by GalacticCoords< DataType >::doit(), and GalacticCoords< DataType >::setTarget().
double GalacticCoords< DataType >::mDecFact [private] |
Referenced by GalacticCoords< DataType >::doit(), and GalacticCoords< DataType >::setSource().
double GalacticCoords< DataType >::mlFact [private] |
Referenced by GalacticCoords< DataType >::doit(), and GalacticCoords< DataType >::setTarget().
double GalacticCoords< DataType >::mRAFact [private] |
Referenced by GalacticCoords< DataType >::doit(), and GalacticCoords< DataType >::setSource().
int GalacticCoords< DataType >::raColno [private] |
Referenced by GalacticCoords< DataType >::doit(), and GalacticCoords< DataType >::setSource().