00001 00002 00003 00004 //----------------------------------------------------------------------------- 00005 // SVN: $Id: Constants.h 7417 2010-08-20 14:59:06Z EckhardSutorius $ 00006 //----------------------------------------------------------------------------- 00007 #ifndef CONSTANTS_H 00008 #define CONSTANTS_H 00009 00010 #include <string> 00011 //----------------------------------------------------------------------------- 00013 namespace TagNames 00014 { 00015 const std::string FITSKEY = "K"; 00016 const std::string FITSCOL = "F"; 00017 const std::string UNITS = "U"; 00018 const std::string DEFAULT = "N"; 00019 const std::string HTMLEVEL = "L"; 00020 const std::string GETUSING = "Q"; 00021 const std::string COMMENT = "C"; 00022 const std::string METHOD = "M"; 00023 const std::string RANGE = "R"; 00024 const std::string VALUES = "V"; 00025 } 00026 //----------------------------------------------------------------------------- 00028 namespace ExpectNames 00029 { 00030 // Define here the expected names associated with certain 00031 // attributes. These must be used in the CREATE TABLE schemas. If 00032 // these attributes are to be included in a given data base table 00033 // schema, then these names MUST be used, otherwise the program will 00034 // not know how to fill in the values. The meanings should be quite 00035 // clear from the declared names 00036 const std::string cuEventID = "cuEventID"; 00037 const std::string ukirtRunNo = "ukirtRunNo"; 00038 const std::string vistaRunNo = "vistaRunNo"; 00039 const std::string fileTimeStamp = "fileTimeStamp"; 00040 const std::string htmID = "htmID"; 00041 const std::string multiframeID = "multiframeID"; 00042 const std::string combiframeID = "combiframeID"; 00043 const std::string darkID = "darkID"; 00044 const std::string flatID = "flatID"; 00045 const std::string confID = "confID"; 00046 const std::string frinID = "frinID"; 00047 const std::string skyID = "skyID"; 00048 const std::string skySubScale = "skySubScale"; 00049 const std::string maskID = "maskID"; 00050 const std::string diffimID = "diffimID"; 00051 const std::string stackID = "stackID"; 00052 const std::string mosaicID = "mosaicID"; 00053 const std::string extNum = "extNum"; 00054 const std::string raBase = "raBase"; 00055 const std::string cx = "cx"; 00056 const std::string cy = "cy"; 00057 const std::string cz = "cz"; 00058 const std::string utDate = "utDate"; 00059 const std::string julianDayNum = "julianDayNum"; 00060 const std::string filterName = "filterName"; 00061 const std::string filterID = "filterID"; 00062 const std::string fileName = "fileName"; 00063 const std::string catName = "catName"; 00064 const std::string programmeID = "programmeID"; 00065 const std::string project = "project"; 00066 const std::string numDetectors = "numDetectors"; 00067 const std::string l = "l"; 00068 const std::string b = "b"; 00069 const std::string lambda = "lambda"; 00070 const std::string eta = "eta"; 00071 const std::string frameType = "frameType"; 00072 const std::string objectId = "objID"; 00073 const std::string numAxes = "numAxes"; 00074 const std::string axis1Length = "axis1Length"; 00075 const std::string axis2Length = "axis2Length"; 00076 const std::string raMoon = "raMoon"; 00077 const std::string decMoon = "decMoon"; 00078 const std::string illumMoon = "illumMoon"; 00079 const std::string raMoonTopo = "raMoonTopo"; 00080 const std::string decMoonTopo = "decMoonTopo"; 00081 const std::string versionNum = "versionNum"; 00082 const std::string totalExpTime = "totalExpTime"; 00083 const std::string hlCircRadAs = "hlCircRadAs"; 00084 const std::string hlCircRadErrAs = "hlCircRadErrAs"; 00085 const std::string hlGeoRadAs = "hlGeoRadAs"; 00086 const std::string hlSMjRadAs = "hlSMjRadAs"; 00087 const std::string hlSMnRadAs = "hlSMnRadAs"; 00088 const std::string hlCorSMjRadAs = "hlCorSMjRadAs"; 00089 const std::string hlCorSMnRadAs = "hlCorSMnRadAs"; 00090 const std::string deltaMag = "deltaMag"; 00091 const std::string illumCorr = "illumCorr"; 00092 const std::string distortCorr = "distortCorr"; 00093 const std::string saturatCorr = "saturatCorr"; 00094 const std::string seqNum = "seqNum"; 00095 00096 // Names associated with quanities derived from WCS 00097 const std::string ra = "ra"; 00098 const std::string dec = "dec"; 00099 const std::string centralRa = "centralRa"; 00100 const std::string centralDec = "centralDec"; 00101 const std::string posAngle = "posAngle"; 00102 const std::string imageExtent = "imageExtent"; 00103 const std::string xPixSize = "xPixSize"; 00104 const std::string yPixSize = "yPixSize"; 00105 const std::string minRa = "minRa"; 00106 const std::string minDec = "minDec"; 00107 const std::string maxRa = "maxRa"; 00108 const std::string maxDec = "maxDec"; 00109 } 00110 //----------------------------------------------------------------------------- 00112 namespace PreSuffixNames 00113 { 00114 const std::string vistaPrefix = "v"; 00115 const std::string casuPrefix = "w"; 00116 const std::string edinPrefix = "e"; 00117 const std::string mefType = ".fit"; 00118 const std::string catType = ".fits"; 00119 const std::string catSuffix = "_cat"; 00120 const std::string stackSuffix = "_st"; 00121 const std::string confSuffix = "_conf"; 00122 const std::string cpmSuffix = "_cpm"; 00123 const std::string tileSuffix = "_tl"; 00124 const std::string mosaSuffix = "_mos"; 00125 const std::string diffSuffix = "_dif"; 00126 const std::string caliSuffix = "_cal"; 00127 const std::string filtSuffix = "_two"; 00128 const std::string leavSuffix = "_sf"; 00129 const std::string biasSuffix = "_bias"; 00130 const std::string darkSuffix = "_dark"; 00131 const std::string flatSuffix = "_flat"; 00132 const std::string arcSuffix = "_arc"; 00133 const std::string skySuffix = "_sky"; 00134 const std::string deepSuffix = "_dp"; 00135 const std::string CelestialSphere = "sky"; 00136 const std::string VirtuallyNoPhotons = "dark"; 00137 const std::string TheEarth = "flat"; 00138 } 00139 //----------------------------------------------------------------------------- 00141 namespace DetectionTableSubstr 00142 { 00143 const std::string astrometryTableSubstr = "DetectionAstrometry"; 00144 const std::string rawTableSubstr = "DetectionRaw"; 00145 const std::string photometryTableSubstr = "DetectionPhotometry"; 00146 } 00147 //----------------------------------------------------------------------------- 00149 namespace FrameTypeNames 00150 { 00151 const std::string defType = "normal"; 00152 const std::string stack = "stack"; 00153 const std::string confidence = "conf"; 00154 const std::string tile = "tile"; 00155 const std::string mosaic = "mosaic"; 00156 const std::string difference = "diff"; 00157 const std::string calibration = "calib"; 00158 const std::string filtered = "filt"; 00159 const std::string interleaved = "leav"; 00160 const std::string catalogue = "cat"; 00161 const std::string bias = "bias"; 00162 const std::string dark = "dark"; 00163 const std::string flat = "flat"; 00164 const std::string arc = "arc"; 00165 const std::string sky = "sky"; 00166 const std::string deep = "deep"; 00167 } 00168 //----------------------------------------------------------------------------- 00170 namespace DefaultValues 00171 { 00172 const double realdef = -0.9999995e9; 00173 const long long bigintdef = -99999999; 00174 const int intdef = -99999999; 00175 const short smallintdef = -9999; 00176 const unsigned short tinyintdef = 0; 00177 const std::string datetimedef = "9999-12-31T00:00:00"; 00178 const std::string varchar4def = "NONE"; 00179 const std::string varchar3def = "---"; 00180 const std::string varchar2def = "--"; 00181 const std::string varchar1def = "-"; 00182 const std::string emptycatname = "empty_catalogue.fits"; 00183 } 00184 //----------------------------------------------------------------------------- 00185 namespace BooleanTinyInt 00186 { 00187 const int Yes = 1; 00188 const int No = 0; 00189 } 00190 //----------------------------------------------------------------------------- 00191 #endif 00192 //----------------------------------------------------------------------------- 00193 // Change log: 00194 // 00195 // 28-Jan-2004, IAB: Original version 00196 // 7-Mar-2005, NCH: Added this header; changed default frame type to 00197 // "normal" (to avoid misinterpretation of the previous 00198 // name "standard") in namespace FrameTypeNames 00199 // 7-Mar-2005, ETWS: Updated namespace FrameTypeNames and added 00200 // namespace Programmes 00201 // 7-Mar-2005, ETWS: Updated namespace PreSuffixNames 00202 // 8-Mar-2005, ETWS: Added 'OBSNUM' to ExpectKeys 00203 // 10-Mar-2005, ETWS: Added namespace DefaultValues 00204 // 12-Apr-2005, ETWS: Updated namespace PreSuffixNames 00205 // 14-Apr-2005, ETWS: Added cpm file type to FrameTypeNames 00206 // 7-Jun-2005, NCH: Added another calibration programme identifier 00207 // 9-Jun-2005, ETWS: Added default programme ID 00208 // 13-Jun-2005, ETWS: Added axes parameters to ExpectNames 00209 // 12-Sep-2005, ETWS: Updated frame type names 00210 // 7-Dec-2005, RSC: Moved ExpectKeys into class FitsFile 00211 // 25-Jan-2006, ETWS: Added topocentric Moon parameters 00212 // 27-Jan-2006, ETWS: Added 'deep' suffix 00213 // 24-Apr-2006, RSC: Included database constants for Yes and No 00214 // 7-Apr-2008, ETWS: Upgraded to use new detection table layout.