source: branches/fitshead-branch/duchamp.hh @ 95

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

Large collection of changes. Mostly minor fixes, but major additions are:

  • ability to store flagMW in the recon FITS file
  • slight change to way precision is dealt with in output files
  • improvement to VOTable output
  • generalisation of spectral plotting.

Summary of changes:
duchamp.hh -- added keywords/comments for storing flagMW in FITS files
Utils/wcsFunctions.cc -- minor correction
Cubes/plotting.cc -- minor corrections
Cubes/saveImage.cc -- writing flagMW as header keyword
Cubes/readRecon.cc -- able to read in flagMW. Improved formatting of comments
Cubes/detectionIO.cc -- made VOTable output able to cope with Column

definitions. Added new columns.

Cubes/cubes.hh -- added frontends to wcs-pix functions. Changed prototypes

of some plotting functions.

Cubes/plots.hh -- generalised some functionality of the classes
Cubes/drawMomentCutout.cc -- made a class function
Cubes/outputSpectra.cc -- made a Cube class function that plots a

single spectrum.

param.cc -- improved calling of local variables, and the way units are

dealt with.

docs/example_moment_map.pdf -- new version
docs/cover_image.ps -- new version
docs/example_spectrum.pdf -- new version
docs/cover_image.pdf -- new version
docs/example_moment_map.ps -- new version
docs/example_spectrum.ps -- new version
mainDuchamp.cc -- fixed order of some function calls. Other minor corrections.
ATrous/atrous_2d_reconstruct.cc -- improved speed of loop execution
ATrous/atrous_3d_reconstruct.cc -- improved speed of loop execution
Makefile -- addition of columns.cc
Detection/detection.cc -- minor corrections (removal of commented code)
Detection/outputDetection.cc -- minor change to output style and

precision variable name.

Detection/columns.cc -- use new precision variable
Detection/columns.hh -- new precision variables for position and position

width columns

param.hh -- added prototype for makelower(string) function.

File size: 2.0 KB
Line 
1#include <string.h>
2
3// how to convey whether a function has worked
4enum OUTCOME {SUCCESS, FAILURE};
5
6
7const std::string ERR_USAGE_MSG =
8"Usage:: Duchamp -p [parameter file]\n\
9  Other options:\n\
10    -f <file>  Use default parameters with imageFile=<file>\n\
11    -v         Version number\n\
12    -h         This help information\n";
13
14const std::string ERR_USAGE_MSG_SHORT = "Usage:: Duchamp -p [parameter file]\n";
15
16const std::string PROGNAME = "Duchamp";
17
18const std::string VERSION = "1.0";
19
20// The spectral type that we want the wcsprm structs to be in
21const char duchampSpectralType[9] = "VELO-F2V";
22
23// The following are the FITS Header Keywords corresponding to the
24//  parameters related to the atrous reconstruction.
25const std::string keyword_flagMW     = "DU_MWFLG";
26const std::string keyword_minMW      = "DU_MWMIN";
27const std::string keyword_maxMW      = "DU_MWMAX";
28const std::string keyword_scaleMin   = "DU_MINSC";
29const std::string keyword_snrRecon   = "DU_ATCUT";
30const std::string keyword_filterCode = "DU_FILTR";
31const std::string keyword_ReconResid = "DU_RECON"; // is this file the reconstruction or the residual?
32// And these are the comments corresponding to the relevant keywords
33const std::string comment_flagMW     = "Duchamp parameter flagMW";
34const std::string comment_minMW      = "Duchamp parameter minMW";
35const std::string comment_maxMW      = "Duchamp parameter maxMW";
36const std::string comment_scaleMin   = "Duchamp parameter scaleMin";
37const std::string comment_snrRecon   = "Duchamp parameter snrRecon";
38const std::string comment_filterCode = "Duchamp parameter filterCode";
39const std::string comment_ReconResid = "Is this the reconstruction or residual?";
40// Descriptive Headers:
41const std::string header_history1 = "Reconstructed with a trous wavelet technique";
42const std::string header_history2 = "Reconstruction by Duchamp v." + VERSION;
43const std::string header_comment  = "The following are the Duchamp parameters used in reconstruction";
44const std::string flagMW_comment  = "Channels containing Galactic emission have been removed";
Note: See TracBrowser for help on using the repository browser.