1 #ifndef MeasAlgoShapeletParams_H
2 #define MeasAlgoShapeletParams_H
10 namespace algorithms {
14 #define DEFVALPOS 9999
15 #define DEFVALNEG -9999
20 static const long INPUT_FLAG = 0x1;
21 static const long TRANSFORM_EXCEPTION = 0x2;
22 static const long FITTEDPSF_EXCEPTION = 0x4;
23 static const long TMV_EXCEPTION = 0x8;
24 static const long STD_EXCEPTION = 0x10;
25 static const long UNKNOWN_EXCEPTION = 0x20;
26 static const long EDGE = 0x40;
27 static const long LT10PIX = 0x80;
28 static const long MEASURE_PSF_FAILED = 0x100;
29 static const long NATIVE_FAILED = 0x200;
30 static const long TOO_SMALL = 0x400;
31 static const long DECONV_FAILED = 0x800;
32 static const long SHEAR_FAILED = 0x1000;
33 static const long SHAPELET_FAILED = 0x2000;
34 static const long SHEAR_REDUCED_ORDER = 0x4000;
35 static const long SHAPE_REDUCED_ORDER = 0x8000;
36 static const long SHEAR_LOCAL_MIN = 0x10000;
37 static const long SHEAR_POOR_FIT = 0x20000;
38 static const long SHAPE_LOCAL_MIN = 0x40000;
39 static const long SHAPE_POOR_FIT = 0x80000;
40 static const long SHEAR_BAD_COVAR = 0x100000;
41 static const long NO_SINGLE_EPOCH_IMAGES = 0x200000;
42 static const long BKG_NOPIX = 0x400000;
43 static const long PSF_INTERP_OUTLIER = 0x800000;
44 static const long SHEAR_BAD_FLUX = 0x1000000;
45 static const long PSF_BAD_FLUX = 0x2000000;
46 static const long SHAPE_BAD_FLUX = 0x4000000;
47 static const long CENTROID_FAILED = 0x8000000;
48 static const long SHAPELET_NOT_DECONV = 0x10000000;
49 static const long SHEAR_DIDNT_CONVERGE = 0x20000000;
51 static const long NFLAGS = 30;
53 static const char*
const flagName[NFLAGS] = {
55 "TRANSFORM_EXCEPTION",
56 "FITTEDPSF_EXCEPTION",
68 "SHEAR_REDUCED_ORDER",
69 "SHAPE_REDUCED_ORDER",
75 "NO_SINGLE_EPOCH_IMAGES",
82 "SHAPELET_NOT_DECONV",
83 "SHEAR_DIDNT_CONVERGE"
86 void PrintFlags(
const std::vector<long>& flags, std::ostream& os);
93 std::runtime_error(
"Error: file "+filename+
" not found")
100 std::runtime_error(msg)
107 std::runtime_error(msg)
114 std::runtime_error(msg)
121 std::runtime_error(msg)
156 #define TEST_TOL 1.e-6
const char * Text(const ExitCode &code)
ProcessingException(const std::string &msg)
FileNotFoundError(const std::string &filename)
int Status(ExitCode code, const ConfigFile ¶ms)
ParameterException(const std::string &msg)
void PrintFlags(const std::vector< long > &flags, std::ostream &os)
WriteException(const std::string &msg)
ReadException(const std::string &msg)