source: tags/release-1.0.7/src/duchamp.hh @ 1441

Last change on this file since 1441 was 213, checked in by Matthew Whiting, 18 years ago

Summary:

  • Fixed the scale bar plotting for the spectral output, so that it can deal properly with very fine angular scales.
    • Improved the loop in Cube::drawScale
    • Included code in angularSeparation to deal with finely-separated positions.
  • Moved the ProgressBar? class to a new header file Utils/feedback.hh from duchamp.hh
    • Updated #include statements in many files
  • Fixed allocation bug in param copy constructor (related to offsets array).
File size: 3.2 KB
Line 
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
15enum OUTCOME {SUCCESS=0, FAILURE};
16
17const 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
24const std::string ERR_USAGE_MSG_SHORT="Usage:: Duchamp -p [parameter file]\n";
25
26const std::string PROGNAME = PACKAGE_NAME;
27
28const std::string VERSION = PACKAGE_VERSION;
29
30// Specialised functions to report warnings and errors.
31// These are defined in duchamp.cc
32void duchampWarning(std::string subroutine, std::string warning);
33void duchampError(std::string subroutine, std::string error);
34
35
36// The spectral type that we want the wcsprm structs to be in
37const char duchampVelocityType[9] = "VELO-F2V";
38const char duchampFrequencyType[9] = "FREQ";
39
40enum TYPEDESC {FREQUENCY=0,VELOCITY,WAVELENGTH};
41const 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.
46const std::string keyword_scaleMin     = "DU_MINSC";
47const std::string keyword_snrRecon     = "DU_ATCUT";
48const std::string keyword_reconDim     = "DU_ATDIM";
49const std::string keyword_filterCode   = "DU_FILTR";
50const std::string keyword_ReconResid   = "DU_RECON";//reconstruction/residual?
51const std::string keyword_hanningwidth = "DU_WHANN"; // hanning width
52const std::string keyword_subsection   = "DU_IMSUB";
53
54// And these are the comments corresponding to the relevant keywords
55const std::string comment_scaleMin     = "Duchamp parameter scaleMin";
56const std::string comment_snrRecon     = "Duchamp parameter snrRecon";
57const std::string comment_reconDim     = "Duchamp parameter reconDim";
58const std::string comment_filterCode   = "Duchamp parameter filterCode";
59const std::string comment_ReconResid   = "Is this the reconstruction or residual?";
60const std::string comment_hanningwidth = "Duchamp parameter hanningWidth";
61const std::string comment_subsection   = "Subsection of the original image";
62
63// Descriptive Headers: for the reconstruction case
64const std::string header_reconHistory1 =
65"Reconstructed with a trous wavelet technique";
66const std::string header_reconHistory2 =
67"Reconstruction by Duchamp v." + VERSION;
68const std::string header_reconHistory_input =
69"Original (input) image used by Duchamp follows";
70const std::string header_reconSubsection_comment  =
71"A subsection of the original was reconstructed by Duchamp";
72const std::string header_atrous_comment  =
73"The following are the Duchamp parameters used in reconstruction";
74
75// Descriptive Headers: for the Hanning-smoothing case
76const std::string header_smoothHistory =
77"Hanning smoothed by Duchamp v." + VERSION;
78const std::string header_smoothHistory_input =
79"Original (input) image used by Duchamp follows";
80const std::string header_smoothSubsection_comment  =
81"A subsection of the original was smoothed by Duchamp";
82
83#endif
84
Note: See TracBrowser for help on using the repository browser.