Changeset 37035 for trunk/Ohana/src/libdvo/include/dvodb.h
- Timestamp:
- Jul 17, 2014, 10:10:16 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libdvo/include/dvodb.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/include/dvodb.h
r36840 r37035 22 22 23 23 /* magnitude types */ 24 enum {MAG_NONE, 25 26 // these magnitude types are from the measurement table (or derived therein) 27 // the following imply PSF magnitudes: 28 MAG_INST, // -2.5*log(DN) [ie, not DN/sec] 29 MAG_CAT, // MAG_INST + 2.5*log(exptime) + C_lambda + K_lambda*(airmass - 1) 30 MAG_SYS, // MAG_CAT + \sum_i A_i * (color_i - color_o) [color correction for measure photcode] 31 MAG_REL, // MAG_SYS - Mcal [specific zero point for image] 32 MAG_CAL, // MAG_REL + \sum_i A_i * (color_i - color_o) [color correction for average photcode] 33 MAG_ERR, // error on PSF MAG 34 35 // the following imply APERTURE magnitudes: 36 MAG_APER_INST, // -2.5*log(DN) [ie, not DN/sec] 37 MAG_APER_CAT, // MAG_APER_INST + 2.5*log(exptime) + C_lambda + K_lambda*(airmass - 1) 38 MAG_APER_SYS, // MAG_APER_CAT + \sum_i A_i * (color_i - color_o) [color correction for measure photcode] 39 MAG_APER_REL, // MAG_APER_SYS - Mcal [specific zero point for image] 40 MAG_APER_CAL, // MAG_APER_REL + \sum_i A_i * (color_i - color_o) [color correction for average photcode] 41 MAG_APER_ERR, // error on APER MAG (if known, else psf error) 42 MAG_APER, // in mextract -> MAG_APER_REL, in avextract -> MAG_APER_AVE 43 44 // the following imply KRON magnitudes: 45 MAG_KRON_INST, // -2.5*log(DN) [ie, not DN/sec] 46 MAG_KRON_CAT, // MAG_KRON_INST + 2.5*log(exptime) + C_lambda + K_lambda*(airmass - 1) 47 MAG_KRON_SYS, // MAG_KRON_CAT + \sum_i A_i * (color_i - color_o) [color correction for measure photcode] 48 MAG_KRON_REL, // MAG_KRON_SYS - Mcal [specific zero point for image] 49 MAG_KRON_CAL, // MAG_KRON_REL + \sum_i A_i * (color_i - color_o) [color correction for average photcode] 50 MAG_KRON_ERR, // error on KRON MAG 51 MAG_KRON, // in mextract -> MAG_KRON_REL, in avextract -> MAG_KRON_AVE 52 53 // these magnitude types are from the average (secfilt) table: 54 // the following imply PSF magnitudes (or fluxes) 55 MAG_AVE, 56 MAG_REF, 57 MAG_STDEV, 58 MAG_AVE_ERR, 59 MAG_CHISQ, 60 MAG_20, 61 MAG_80, 62 MAG_FLUX_PSF, 63 MAG_FLUX_PSF_ERR, 64 65 // the following imply APERTURE magnitudes: 66 MAG_APER_AVE, 67 MAG_APER_REF, 68 69 // the following imply KRON magnitudes or fluxes: 70 MAG_KRON_AVE, 71 MAG_KRON_REF, 72 MAG_FLUX_KRON, 73 MAG_FLUX_KRON_ERR, 74 75 // other secfilt fields of interest 76 MAG_PHOT_FLAGS, 77 MAG_NCODE, 78 MAG_NPHOT, 79 MAG_UC_DIST, 80 MAG_STACK_DET_ID, 81 }; 24 25 typedef enum { 26 MAG_SRC_NONE, 27 MAG_SRC_CHP, 28 MAG_SRC_WRP, 29 MAG_SRC_STK, 30 } dvoMagSourceType; 31 32 typedef enum { 33 MAG_LEVEL_NONE, // -2.5*log(DN) [ie, not DN/sec] 34 MAG_LEVEL_INST, // -2.5*log(DN) [ie, not DN/sec] 35 MAG_LEVEL_CAT, // MAG_INST + 2.5*log(exptime) + C_lambda + K_lambda*(airmass - 1) 36 MAG_LEVEL_SYS, // MAG_CAT + \sum_i A_i * (color_i - color_o) [color correction for measure photcode] 37 MAG_LEVEL_REL, // MAG_SYS - Mcal [specific zero point for image] 38 MAG_LEVEL_CAL, // MAG_REL + \sum_i A_i * (color_i - color_o) [color correction for average photcode] 39 MAG_LEVEL_AVE, 40 MAG_LEVEL_REF, 41 } dvoMagLevelType; 42 43 typedef enum { 44 MAG_OPTION_NONE, 45 MAG_OPTION_MAG, 46 MAG_OPTION_ERR, 47 MAG_OPTION_FLUX, 48 MAG_OPTION_FLUX_ERR, 49 MAG_OPTION_STDEV, 50 MAG_OPTION_CHISQ, 51 MAG_OPTION_MIN, 52 MAG_OPTION_MAX, 53 MAG_OPTION_NCODE, 54 MAG_OPTION_NPHOT, // Nused 55 MAG_OPTION_UC_DIST, 56 MAG_OPTION_STACK_DET_ID, 57 MAG_OPTION_FLAGS, 58 } dvoMagOptionType; 59 60 typedef enum { 61 MAG_CLASS_NONE, 62 MAG_CLASS_PSF, 63 MAG_CLASS_KRON, 64 MAG_CLASS_APER, 65 } dvoMagClassType; 82 66 83 67 /* measure fields */ … … 119 103 MEAS_OBJ_FLAGS, 120 104 MEAS_SECFILT_FLAGS, 121 MEAS_ MAG,105 MEAS_PHOT, // photometry class of measurements 122 106 MEAS_MINST, 123 107 MEAS_MCAT, … … 173 157 MEAS_EXTERN_ID, 174 158 MEAS_EXPNAME_AS_INT, 175 MEAS_MCAL_OFFSET, 159 MEAS_MCAL_OFFSET, // make this a dvoMagOption? 176 160 MEAS_FLAT, 177 161 MEAS_CENTER_OFFSET, 178 MEAS_FLUX_PSF,179 MEAS_FLUX_PSF_ERR,180 MEAS_FLUX_KRON,181 MEAS_FLUX_KRON_ERR,182 162 MEAS_REF_COLOR, 183 163 }; … … 211 191 AVE_NMISS, 212 192 AVE_NPOS, 213 AVE_NPHOT,214 AVE_NCODE,215 AVE_MAG,216 AVE_dMAG,217 AVE_Xm,218 193 AVE_OBJ_FLAGS, 219 194 AVE_TYPE, … … 224 199 AVE_EXTID_LO, 225 200 AVE_REF_COLOR, 201 AVE_PHOT, // photometry class of values 226 202 }; 203 204 // AVE_NPHOT, 205 // AVE_NCODE, 206 // AVE_MAG, 207 // AVE_dMAG, 208 // AVE_Xm, 227 209 228 210 enum {IMAGE_ZERO, … … 312 294 int table; 313 295 int ID; 314 int magMode; 296 297 dvoMagSourceType magSource; // chip, (forced) warp, stack [only relevant for averages] 298 dvoMagLevelType magLevel; // inst, cat, sys, rel, ave, ref, err, min, max, stdev, nphot, chisq, 299 dvoMagOptionType magOption; // psf, kron, aper 300 dvoMagClassType magClass; 301 315 302 char type; 316 303 PhotCode *photcode; … … 374 361 375 362 int GetMagMode PROTO((char *string)); 376 PhotCode *ParsePhotcodeField PROTO((char *field, int *mode, int def));363 int ParsePhotcodeField PROTO((dbField *field, char *fieldName, int fieldID)); 377 364 int ParseMeasureField PROTO((dbField *field, char *fieldName)); 378 365 int ParseAverageField PROTO((dbField *field, char *fieldName));
Note:
See TracChangeset
for help on using the changeset viewer.
