1 | #ifndef DUCHAMP_HH |
---|
2 | #define DUCHAMP_HH |
---|
3 | |
---|
4 | #include <iostream> |
---|
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=0, FAILURE}; |
---|
16 | |
---|
17 | const std::string ERR_USAGE_MSG = |
---|
18 | "Usage:: Duchamp -p [parameter file]\n\ |
---|
19 | Other options:\n\ |
---|
20 | -f <file> Use default parameters with imageFile=<file>\n\ |
---|
21 | -v Version number\n\ |
---|
22 | -h This help information\n"; |
---|
23 | |
---|
24 | const std::string ERR_USAGE_MSG_SHORT="Usage:: Duchamp -p [parameter file]\n"; |
---|
25 | |
---|
26 | const std::string PROGNAME = PACKAGE_NAME; |
---|
27 | |
---|
28 | const std::string VERSION = PACKAGE_VERSION; |
---|
29 | |
---|
30 | // Specialised functions to report warnings and errors. |
---|
31 | // These are defined in duchamp.cc |
---|
32 | void duchampWarning(std::string subroutine, std::string warning); |
---|
33 | void duchampError(std::string subroutine, std::string error); |
---|
34 | |
---|
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 | enum TYPEDESC {FREQUENCY=0,VELOCITY,WAVELENGTH}; |
---|
41 | const std::string duchampSpectralDescription[3]= |
---|
42 | {"Frequency", "Velocity", "Wavelength"}; |
---|
43 | |
---|
44 | // The following are the FITS Header Keywords corresponding to the |
---|
45 | // parameters related to the atrous reconstruction. |
---|
46 | const std::string keyword_scaleMin = "DU_MINSC"; |
---|
47 | const std::string keyword_snrRecon = "DU_ATCUT"; |
---|
48 | const std::string keyword_reconDim = "DU_ATDIM"; |
---|
49 | const std::string keyword_filterCode = "DU_FILTR"; |
---|
50 | const std::string keyword_ReconResid = "DU_RECON";//reconstruction/residual? |
---|
51 | const std::string keyword_hanningwidth = "DU_WHANN"; // hanning width |
---|
52 | const std::string keyword_subsection = "DU_IMSUB"; |
---|
53 | |
---|
54 | // And these are the comments corresponding to the relevant keywords |
---|
55 | const std::string comment_scaleMin = "Duchamp parameter scaleMin"; |
---|
56 | const std::string comment_snrRecon = "Duchamp parameter snrRecon"; |
---|
57 | const std::string comment_reconDim = "Duchamp parameter reconDim"; |
---|
58 | const std::string comment_filterCode = "Duchamp parameter filterCode"; |
---|
59 | const std::string comment_ReconResid = "Is this the reconstruction or residual?"; |
---|
60 | const std::string comment_hanningwidth = "Duchamp parameter hanningWidth"; |
---|
61 | const std::string comment_subsection = "Subsection of the original image"; |
---|
62 | |
---|
63 | // Descriptive Headers: for the reconstruction case |
---|
64 | const std::string header_reconHistory1 = |
---|
65 | "Reconstructed with a trous wavelet technique"; |
---|
66 | const std::string header_reconHistory2 = |
---|
67 | "Reconstruction by Duchamp v." + VERSION; |
---|
68 | const std::string header_reconHistory_input = |
---|
69 | "Original (input) image used by Duchamp follows"; |
---|
70 | const std::string header_reconSubsection_comment = |
---|
71 | "A subsection of the original was reconstructed by Duchamp"; |
---|
72 | const std::string header_atrous_comment = |
---|
73 | "The following are the Duchamp parameters used in reconstruction"; |
---|
74 | |
---|
75 | // Descriptive Headers: for the Hanning-smoothing case |
---|
76 | const std::string header_smoothHistory = |
---|
77 | "Hanning smoothed by Duchamp v." + VERSION; |
---|
78 | const std::string header_smoothHistory_input = |
---|
79 | "Original (input) image used by Duchamp follows"; |
---|
80 | const std::string header_smoothSubsection_comment = |
---|
81 | "A subsection of the original was smoothed by Duchamp"; |
---|
82 | |
---|
83 | #endif |
---|
84 | |
---|