source: trunk/src/duchamp.hh @ 168

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

A couple of changes:

  • Removed the Fortran search in the configure script -- we don't use it.
  • Cleaned up some of the fits-I/O tasks, adding some functions that check for the existence of the FITS file (fits_file_exists).
  • This task is only in v2.5+ of cfitsio, so added notes to this effect in README and the Guide.
  • Improved the exiting and warning messages in mainDuchamp.cc.
File size: 2.5 KB
Line 
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
15enum OUTCOME {SUCCESS=0, FAILURE};
16
17
18const 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
25const std::string ERR_USAGE_MSG_SHORT="Usage:: Duchamp -p [parameter file]\n";
26
27const std::string PROGNAME = PACKAGE_NAME;
28
29const std::string VERSION = PACKAGE_VERSION;
30
31// Specialised functions to report warnings and errors.
32// These are defined in duchamp.cc
33void duchampWarning(std::string subroutine, std::string warning);
34void duchampError(std::string subroutine, std::string error);
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
40// The following are the FITS Header Keywords corresponding to the
41//  parameters related to the atrous reconstruction.
42const std::string keyword_scaleMin   = "DU_MINSC";
43const std::string keyword_snrRecon   = "DU_ATCUT";
44const std::string keyword_reconDim   = "DU_ATDIM";
45const std::string keyword_filterCode = "DU_FILTR";
46const std::string keyword_ReconResid = "DU_RECON"; //reconstruction or residual?
47const std::string keyword_subsection = "DU_IMSUB";
48
49// And these are the comments corresponding to the relevant keywords
50const std::string comment_scaleMin   = "Duchamp parameter scaleMin";
51const std::string comment_snrRecon   = "Duchamp parameter snrRecon";
52const std::string comment_reconDim   = "Duchamp parameter reconDim";
53const std::string comment_filterCode = "Duchamp parameter filterCode";
54const std::string comment_ReconResid = "Is this the reconstruction or residual?";
55const std::string comment_subsection = "Subsection of the original image";
56// Descriptive Headers:
57const std::string header_history1 = "Reconstructed with a trous wavelet technique";
58const std::string header_history2 = "Reconstruction by Duchamp v." + VERSION;
59const std::string header_history_input = "Original (input) image used by Duchamp follows";
60const std::string header_subsection_comment  = "A subsection of the original was reconstructed by Duchamp";
61const std::string header_atrous_comment  = "The following are the Duchamp parameters used in reconstruction";
62
63#endif
64
Note: See TracBrowser for help on using the repository browser.