1 | /* src/duchamp.hh. Generated by configure. */ |
---|
2 | #ifndef DUCHAMP_HH |
---|
3 | #define DUCHAMP_HH |
---|
4 | |
---|
5 | #include <string> |
---|
6 | |
---|
7 | #undef PACKAGE_BUGREPORT |
---|
8 | #undef PACKAGE_NAME |
---|
9 | #undef PACKAGE_STRING |
---|
10 | #undef PACKAGE_TARNAME |
---|
11 | #undef PACKAGE_VERSION |
---|
12 | #include "config.h" |
---|
13 | |
---|
14 | // how to convey whether a function has worked |
---|
15 | enum OUTCOME {SUCCESS, FAILURE}; |
---|
16 | |
---|
17 | |
---|
18 | const std::string ERR_USAGE_MSG = |
---|
19 | "Usage:: Duchamp -p [parameter file]\n\ |
---|
20 | Other options:\n\ |
---|
21 | -f <file> Use default parameters with imageFile=<file>\n\ |
---|
22 | -v Version number\n\ |
---|
23 | -h This help information\n"; |
---|
24 | |
---|
25 | const std::string ERR_USAGE_MSG_SHORT="Usage:: Duchamp -p [parameter file]\n"; |
---|
26 | |
---|
27 | const std::string PROGNAME = PACKAGE_NAME; |
---|
28 | |
---|
29 | const std::string VERSION = PACKAGE_VERSION; |
---|
30 | |
---|
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 | |
---|
36 | // The spectral type that we want the wcsprm structs to be in |
---|
37 | const char duchampVelocityType[9] = "VELO-F2V"; |
---|
38 | const char duchampFrequencyType[9] = "FREQ"; |
---|
39 | |
---|
40 | // The following are the FITS Header Keywords corresponding to the |
---|
41 | // parameters related to the atrous reconstruction. |
---|
42 | const std::string keyword_scaleMin = "DU_MINSC"; |
---|
43 | const std::string keyword_snrRecon = "DU_ATCUT"; |
---|
44 | const std::string keyword_reconDim = "DU_ATDIM"; |
---|
45 | const std::string keyword_filterCode = "DU_FILTR"; |
---|
46 | const std::string keyword_ReconResid = "DU_RECON"; //reconstruction or residual? |
---|
47 | const std::string keyword_subsection = "DU_IMSUB"; |
---|
48 | |
---|
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"; |
---|
52 | const std::string comment_reconDim = "Duchamp parameter reconDim"; |
---|
53 | const std::string comment_filterCode = "Duchamp parameter filterCode"; |
---|
54 | const std::string comment_ReconResid = "Is this the reconstruction or residual?"; |
---|
55 | const std::string comment_subsection = "Subsection of the original image"; |
---|
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; |
---|
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 | |
---|