#include <SourceTable.h>
Public Member Functions | |
SourceTable (TableData< Numeric > *aDataPtr, TableInfo *aInfoPtr) | |
Constructor. | |
~SourceTable () | |
Destructor. | |
void | insertUserSupplied () |
void | copyPassband (const MergeTable &aMergeTable, const CameoSet &aCameoTables) |
void | insertAstrometricData (const MergeTable &aMergeTable, const CameoSet &aCameoTables) |
void | calcMergedClass (const MergeTable &aMergeTable, const CameoSet &aCameoTables) |
void | finishOff () |
void | fillExtinctionValues () |
Add in the galactic extinction values. | |
void | writeAsBinary () |
Dump the merged data into a binary file for later ingest. | |
Private Types | |
enum | SourceClass { Saturated = -9, ProbGalaxy = -3, ProbStar, Star, Noise, Galaxy } |
enum SourceTable::SourceClass [private] |
Constructor.
SourceTable::~SourceTable | ( | ) | [inline] |
Destructor.
void SourceTable::calcMergedClass | ( | const MergeTable & | aMergeTable, | |
const CameoSet & | aCameoTables | |||
) |
Calculates the "merged class" and class category probabilities from the individual object classifications from the passbands; also calculates the continuously-distributed merged class statistic requested by SJW.
aMergeTable | Input merge table | |
aCameoTables | Input cameo (passband) data |
References TableData< DataType >::assign(), TableData< DataType >::at(), TableInfo::ColNotFound, Galaxy, TableInfo::getAttNo(), TableInfo::getTableName(), TableData< DataType >::isDefined(), Table< Numeric >::mDataPtr, Table< Numeric >::mInfoPtr, Noise, StringOps::NumToString(), ProbGalaxy, ProbStar, TableData< DataType >::qNumRows(), Saturated, and Star.
void SourceTable::copyPassband | ( | const MergeTable & | aMergeTable, | |
const CameoSet & | aCameoTables | |||
) |
Copy to the merged source table the values of the passband-dependent attributes from each of the individual passband detection tables
aMergeTable | Input merge table | |
aCameoTables | Input cameo (passband) data |
References TableData< DataType >::assign(), MergeTable::getEntry(), TableInfo::getName(), Table< Numeric >::mDataPtr, Table< Numeric >::mInfoPtr, TableData< DataType >::qNumCols(), and TableData< DataType >::qNumRows().
void SourceTable::fillExtinctionValues | ( | ) |
Add in the galactic extinction values.
References Logger::addMessage(), Logger::addSysInfo(), TableData< DataType >::assign(), TableData< DataType >::at(), TableInfo::ColNotFound, ExpectNames::fileName, TableInfo::getAttNo(), Options::getOptionStr(), Table< Numeric >::mDataPtr, Table< Numeric >::mInfoPtr, StringOps::NumToString(), and TableData< DataType >::qNumRows().
void SourceTable::finishOff | ( | ) |
Calculate the remaining attributes in the merged data. These include cartesian values, HTM indicies, various polar coordinate systems, and colour indicies
References Logger::addMessage(), TableInfo::ColNotFound, DataMethod< DataType >::determineSourceAndTarget(), DataMethod< DataType >::doit(), Options::getArchive(), TableInfo::getAttNo(), Table< Numeric >::mDataPtr, Table< Numeric >::mInfoPtr, and TableData< DataType >::qNumRows().
void SourceTable::insertAstrometricData | ( | const MergeTable & | aMergeTable, | |
const CameoSet & | aCameoTables | |||
) |
Fill merged source positions and epochs for the given source table schema based on an astrometic solution.
aMergeTable | Input merge table | |
aCameoTables | Input cameo (passband) data |
References Logger::addMessage(), TableData< DataType >::assign(), TableInfo::ColNotFound, TableInfo::getAttNo(), MergeTable::getEntry(), Converter::getFactor(), Options::getOptionDbl(), TableInfo::getTableName(), TableInfo::getUnits(), Table< Numeric >::mDataPtr, Table< Numeric >::mInfoPtr, StringOps::NumToString(), TableData< DataType >::qNumRows(), ExpectNames::ra, and DefaultValues::realdef.
void SourceTable::insertUserSupplied | ( | ) |
For the given merge data object, insert user supplied values to given attributes in the schema
References Logger::addMessage(), TableData< DataType >::assign(), TableInfo::ColNotFound, TableInfo::getAttNo(), TableInfo::getName(), TableInfo::getNumAttributes(), Options::getOptionDbl(), Options::getOptionStr(), TableInfo::getTableName(), Table< Numeric >::mDataPtr, Table< Numeric >::mInfoPtr, StringOps::NumToString(), and TableData< DataType >::qNumRows().
void SourceTable::writeAsBinary | ( | ) |
Dump the merged data into a binary file for later ingest.
References Logger::addMessage(), ByteArray::dump(), TableInfo::getFormat(), TableInfo::getName(), TableInfo::getNumAttributes(), Options::getOptionStr(), ByteArray::markColumn(), Table< Numeric >::mDataPtr, Table< Numeric >::mInfoPtr, StringOps::NumToString(), DataChannel< DataType >::output(), TableData< DataType >::qNumRows(), and selectChannel().