[110] | 1 | /* src/duchamp.hh. Generated by configure. */ |
---|
[105] | 2 | #ifndef DUCHAMP_HH |
---|
| 3 | #define DUCHAMP_HH |
---|
| 4 | |
---|
[125] | 5 | #include <string> |
---|
| 6 | |
---|
[141] | 7 | #undef PACKAGE_BUGREPORT |
---|
| 8 | #undef PACKAGE_NAME |
---|
| 9 | #undef PACKAGE_STRING |
---|
| 10 | #undef PACKAGE_TARNAME |
---|
| 11 | #undef PACKAGE_VERSION |
---|
[110] | 12 | #include "config.h" |
---|
| 13 | |
---|
[71] | 14 | // how to convey whether a function has worked |
---|
[168] | 15 | enum OUTCOME {SUCCESS=0, FAILURE}; |
---|
[71] | 16 | |
---|
| 17 | |
---|
[110] | 18 | const std::string ERR_USAGE_MSG = |
---|
[85] | 19 | "Usage:: Duchamp -p [parameter file]\n\ |
---|
[57] | 20 | Other options:\n\ |
---|
[85] | 21 | -f <file> Use default parameters with imageFile=<file>\n\ |
---|
| 22 | -v Version number\n\ |
---|
| 23 | -h This help information\n"; |
---|
[57] | 24 | |
---|
[142] | 25 | const std::string ERR_USAGE_MSG_SHORT="Usage:: Duchamp -p [parameter file]\n"; |
---|
[57] | 26 | |
---|
[110] | 27 | const std::string PROGNAME = PACKAGE_NAME; |
---|
[57] | 28 | |
---|
[110] | 29 | const std::string VERSION = PACKAGE_VERSION; |
---|
[71] | 30 | |
---|
[120] | 31 | // Specialised functions to report warnings and errors. |
---|
| 32 | // These are defined in duchamp.cc |
---|
| 33 | void duchampWarning(std::string subroutine, std::string warning); |
---|
| 34 | void duchampError(std::string subroutine, std::string error); |
---|
| 35 | |
---|
[103] | 36 | // The spectral type that we want the wcsprm structs to be in |
---|
[142] | 37 | const char duchampVelocityType[9] = "VELO-F2V"; |
---|
| 38 | const char duchampFrequencyType[9] = "FREQ"; |
---|
[103] | 39 | |
---|
[110] | 40 | // The following are the FITS Header Keywords corresponding to the |
---|
[71] | 41 | // parameters related to the atrous reconstruction. |
---|
| 42 | const std::string keyword_scaleMin = "DU_MINSC"; |
---|
| 43 | const std::string keyword_snrRecon = "DU_ATCUT"; |
---|
[103] | 44 | const std::string keyword_reconDim = "DU_ATDIM"; |
---|
[71] | 45 | const std::string keyword_filterCode = "DU_FILTR"; |
---|
[142] | 46 | const std::string keyword_ReconResid = "DU_RECON"; //reconstruction or residual? |
---|
[105] | 47 | const std::string keyword_subsection = "DU_IMSUB"; |
---|
[142] | 48 | |
---|
[71] | 49 | // And these are the comments corresponding to the relevant keywords |
---|
| 50 | const std::string comment_scaleMin = "Duchamp parameter scaleMin"; |
---|
| 51 | const std::string comment_snrRecon = "Duchamp parameter snrRecon"; |
---|
[103] | 52 | const std::string comment_reconDim = "Duchamp parameter reconDim"; |
---|
[71] | 53 | const std::string comment_filterCode = "Duchamp parameter filterCode"; |
---|
| 54 | const std::string comment_ReconResid = "Is this the reconstruction or residual?"; |
---|
[105] | 55 | const std::string comment_subsection = "Subsection of the original image"; |
---|
[71] | 56 | // Descriptive Headers: |
---|
| 57 | const std::string header_history1 = "Reconstructed with a trous wavelet technique"; |
---|
| 58 | const std::string header_history2 = "Reconstruction by Duchamp v." + VERSION; |
---|
[105] | 59 | const std::string header_history_input = "Original (input) image used by Duchamp follows"; |
---|
| 60 | const std::string header_subsection_comment = "A subsection of the original was reconstructed by Duchamp"; |
---|
| 61 | const std::string header_atrous_comment = "The following are the Duchamp parameters used in reconstruction"; |
---|
| 62 | |
---|
| 63 | #endif |
---|
| 64 | |
---|