A set of data operation functions. More...
Functions | |
| int | getFilterId (const std::string &filterName) | 
| Extracts filter ID from the given filter name std::string.   | |
| int | calcJulianDay (int utDate) | 
| Returns a Julian Day number for the UT date given as YYYYMMDD.   | |
| std::string | getRunNoFromKey (const FitsFile &ff) | 
| Extract run number from the header.   | |
| std::string | getRunNoFromName (const string filename) | 
| Extract run number from the filename.   | |
| std::string | getFileTimeStamp (const FitsFile &ff) | 
| Extract file time stamp from the header.   | |
| std::string | getFrameType (const std::string &filename) | 
| Extract the frame type from the filename.   | |
| std::string | makeFrameID (const FitsFile &ff) | 
| Make frame ID from information in opened fitsfile.   | |
| double | calcQuadratic (double c0, double c1, double c2, double arg) | 
| Evaluates the quantity c0 + c1 * x + c2 * x^2.   | |
| void | calcCartesian (double alpha, double delta, double &cx, double &cy, double &cz) | 
| double | calcAngsep (double alpha1, double delta1, double alpha2, double delta2) | 
| void | calcPixSize (AstFrameSet *wcsinfo, double centre[2], double convfact[2], Numeric &xpixSize, Numeric &ypixSize) | 
| Calculates pixel size in x and y direction.   | |
A set of data operation functions.
A set of functions implementing the nitty gritty of various data operations - these are then delegated to by higher up classes which determine their calling sequence
| double DataOps::calcAngsep | ( | double | alpha1, | |
| double | delta1, | |||
| double | alpha2, | |||
| double | delta2 | |||
| ) | 
Calculates angular separation between the two spherical angular positions
References calcCartesian().
Referenced by calcPixSize(), and QuantitiesByAst< DataType >::doit().
| void DataOps::calcCartesian | ( | double | alpha, | |
| double | delta, | |||
| double & | cx, | |||
| double & | cy, | |||
| double & | cz | |||
| ) | 
Calculates cartesian components for the polar angle alpha and the declination like angle delta measured from the x-y plane along the z-axis
Referenced by calcAngsep().
| int DataOps::calcJulianDay | ( | int | utDate | ) | 
Returns a Julian Day number for the UT date given as YYYYMMDD.
Referenced by JulianDayNum< DataType >::doit().
| void DataOps::calcPixSize | ( | AstFrameSet * | wcsinfo, | |
| double | centre[2], | |||
| double | convfact[2], | |||
| Numeric & | xpixSize, | |||
| Numeric & | ypixSize | |||
| ) | 
Calculates pixel size in x and y direction.
References calcAngsep().
Referenced by QuantitiesByAst< DataType >::doit(), HlRadii< DataType >::doit(), and HlRadCirc< DataType >::doit().
| double DataOps::calcQuadratic | ( | double | c0, | |
| double | c1, | |||
| double | c2, | |||
| double | arg | |||
| ) | 
Evaluates the quantity c0 + c1 * x + c2 * x^2.
| std::string DataOps::getFileTimeStamp | ( | const FitsFile & | ff | ) | 
Extract file time stamp from the header.
References FitsFile::ARC_TIME, FitsFile::isTile(), FitsFile::movabsHdu(), and FitsFile::readKey().
Referenced by FileTimeStamp< DataType >::FileTimeStamp().
| int DataOps::getFilterId | ( | const std::string & | filterName | ) | 
Extracts filter ID from the given filter name std::string.
Referenced by FilterID< DataType >::doit(), and FilterIDByFits< DataType >::FilterIDByFits().
| std::string DataOps::getFrameType | ( | const std::string & | filename | ) | 
Extract the frame type from the filename.
References FrameTypeNames::arc, PreSuffixNames::arcSuffix, FrameTypeNames::bias, PreSuffixNames::biasSuffix, FrameTypeNames::calibration, PreSuffixNames::caliSuffix, PreSuffixNames::casuPrefix, FrameTypeNames::catalogue, PreSuffixNames::catSuffix, PreSuffixNames::CelestialSphere, FrameTypeNames::confidence, PreSuffixNames::confSuffix, PreSuffixNames::cpmSuffix, FrameTypeNames::dark, FrameTypeNames::deep, PreSuffixNames::deepSuffix, FrameTypeNames::defType, FrameTypeNames::difference, PreSuffixNames::diffSuffix, PreSuffixNames::edinPrefix, FrameTypeNames::filtered, PreSuffixNames::filtSuffix, FrameTypeNames::flat, ExpectNames::frameType, FrameTypeNames::interleaved, PreSuffixNames::leavSuffix, FrameTypeNames::mosaic, PreSuffixNames::mosaSuffix, FrameTypeNames::sky, FrameTypeNames::stack, PreSuffixNames::stackSuffix, PreSuffixNames::TheEarth, FrameTypeNames::tile, PreSuffixNames::tileSuffix, PreSuffixNames::VirtuallyNoPhotons, and PreSuffixNames::vistaPrefix.
Referenced by CalibratedVSAMagnitude< DataType >::doit2(), CalibratedMagnitude< DataType >::doit2(), and FrameType< DataType >::FrameType().
| std::string DataOps::getRunNoFromKey | ( | const FitsFile & | ff | ) | 
Extract run number from the header.
References FitsFile::isTile(), FitsFile::movabsHdu(), FitsFile::OBSNUM, and FitsFile::readKey().
Referenced by TelRunNum< DataType >::TelRunNum().
| std::string DataOps::getRunNoFromName | ( | const string | filename | ) | 
Extract run number from the filename.
References PreSuffixNames::CelestialSphere, and PreSuffixNames::vistaPrefix.
Referenced by TelRunNum< DataType >::TelRunNum().
| std::string DataOps::makeFrameID | ( | const FitsFile & | ff | ) | 
Make frame ID from information in opened fitsfile.
References FitsFile::ARC_MFID, FitsFile::isTile(), FitsFile::movabsHdu(), and FitsFile::readKey().
Referenced by DirectFrameID< DataType >::DirectFrameID(), and IndirectFrameID< DataType >::doit().
 1.6.3