Changeset 34260 for trunk/Ohana/src/libdvo/src/dbFields.c
- Timestamp:
- Jul 31, 2012, 4:02:00 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libdvo/src/dbFields.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/src/dbFields.c
r33963 r34260 30 30 int GetMagMode (char *string) { 31 31 32 if (!strcasecmp (string, "inst")) return (MAG_INST); 33 if (!strcasecmp (string, "cat")) return (MAG_CAT); 34 if (!strcasecmp (string, "sys")) return (MAG_SYS); 35 if (!strcasecmp (string, "rel")) return (MAG_REL); 36 if (!strcasecmp (string, "cal")) return (MAG_CAL); 37 if (!strcasecmp (string, "ave")) return (MAG_AVE); 38 if (!strcasecmp (string, "ref")) return (MAG_REF); 39 if (!strcasecmp (string, "ap")) return (MAG_APER); 40 if (!strcasecmp (string, "aper")) return (MAG_APER); 41 if (!strcasecmp (string, "err")) return (MAG_ERR); 42 if (!strcasecmp (string, "aveerr")) return (MAG_AVE_ERR); 43 if (!strcasecmp (string, "photflags")) return (MAG_PHOT_FLAGS); 44 if (!strcasecmp (string, "flags")) return (MAG_PHOT_FLAGS); 45 if (!strcasecmp (string, "chisq")) return (MAG_CHISQ); 46 if (!strcasecmp (string, "ncode")) return (MAG_NCODE); 47 if (!strcasecmp (string, "nphot")) return (MAG_NPHOT); 48 if (!strcasecmp (string, "stdev")) return (MAG_STDEV); 49 if (!strcasecmp (string, "20")) return (MAG_20); 50 if (!strcasecmp (string, "80")) return (MAG_80); 51 if (!strcasecmp (string, "ucdist")) return (MAG_UC_DIST); 32 if (!strcasecmp (string, "inst")) return (MAG_INST); 33 if (!strcasecmp (string, "cat")) return (MAG_CAT); 34 if (!strcasecmp (string, "sys")) return (MAG_SYS); 35 if (!strcasecmp (string, "rel")) return (MAG_REL); 36 if (!strcasecmp (string, "cal")) return (MAG_CAL); 37 if (!strcasecmp (string, "ave")) return (MAG_AVE); 38 if (!strcasecmp (string, "ref")) return (MAG_REF); 39 if (!strcasecmp (string, "ap")) return (MAG_APER); 40 if (!strcasecmp (string, "aper")) return (MAG_APER); 41 if (!strcasecmp (string, "aperinst")) return (MAG_APER_INST); 42 if (!strcasecmp (string, "aper_inst")) return (MAG_APER_INST); 43 if (!strcasecmp (string, "kron")) return (MAG_KRON); 44 if (!strcasecmp (string, "kroninst")) return (MAG_KRON_INST); 45 if (!strcasecmp (string, "kron_inst")) return (MAG_KRON_INST); 46 if (!strcasecmp (string, "kronerr")) return (MAG_KRON_ERR); 47 if (!strcasecmp (string, "err")) return (MAG_ERR); 48 if (!strcasecmp (string, "aveerr")) return (MAG_AVE_ERR); 49 if (!strcasecmp (string, "photflags")) return (MAG_PHOT_FLAGS); 50 if (!strcasecmp (string, "flags")) return (MAG_PHOT_FLAGS); 51 if (!strcasecmp (string, "chisq")) return (MAG_CHISQ); 52 if (!strcasecmp (string, "ncode")) return (MAG_NCODE); 53 if (!strcasecmp (string, "nphot")) return (MAG_NPHOT); 54 if (!strcasecmp (string, "stdev")) return (MAG_STDEV); 55 if (!strcasecmp (string, "20")) return (MAG_20); 56 if (!strcasecmp (string, "80")) return (MAG_80); 57 if (!strcasecmp (string, "ucdist")) return (MAG_UC_DIST); 58 if (!strcasecmp (string, "stackID")) return (MAG_STACK_ID); 59 if (!strcasecmp (string, "fluxpsf")) return (MAG_FLUX_PSF); 60 if (!strcasecmp (string, "fluxpsferr")) return (MAG_FLUX_PSF_ERR); 61 if (!strcasecmp (string, "fluxkron")) return (MAG_FLUX_KRON); 62 if (!strcasecmp (string, "fluxkronerr")) return (MAG_FLUX_KRON_ERR); 52 63 return (MAG_NONE); 53 64 } … … 229 240 if (!strcasecmp (fieldName, "MCAL_OFFSET")) ESCAPE (MEAS_MCAL_OFFSET, MAG_NONE, OPIHI_FLT); 230 241 if (!strcasecmp (fieldName, "FLAT")) ESCAPE (MEAS_FLAT, MAG_NONE, OPIHI_FLT); 242 if (!strcasecmp (fieldName, "CENTER_OFFSET")) ESCAPE (MEAS_CENTER_OFFSET, MAG_NONE, OPIHI_FLT); 243 if (!strcasecmp (fieldName, "FLUX")) ESCAPE (MEAS_FLUX_PSF, MAG_NONE, OPIHI_FLT); 244 if (!strcasecmp (fieldName, "FLUX_ERR")) ESCAPE (MEAS_FLUX_PSF_ERR, MAG_NONE, OPIHI_FLT); 245 if (!strcasecmp (fieldName, "FLUX_PSF")) ESCAPE (MEAS_FLUX_PSF, MAG_NONE, OPIHI_FLT); 246 if (!strcasecmp (fieldName, "FLUX_PSF_ERR")) ESCAPE (MEAS_FLUX_PSF_ERR, MAG_NONE, OPIHI_FLT); 247 if (!strcasecmp (fieldName, "FLUX_KRON")) ESCAPE (MEAS_FLUX_KRON, MAG_NONE, OPIHI_FLT); 248 if (!strcasecmp (fieldName, "FLUX_KRON_ERR")) ESCAPE (MEAS_FLUX_KRON_ERR, MAG_NONE, OPIHI_FLT); 231 249 232 250 // for words that don't parse, try a photcode … … 242 260 field->magMode = mode; 243 261 switch (mode) { 262 case MAG_STACK_ID: 244 263 case MAG_NCODE: 245 264 case MAG_NPHOT: … … 336 355 field->magMode = mode; 337 356 switch (mode) { 357 case MAG_STACK_ID: 338 358 case MAG_NCODE: 339 359 case MAG_NPHOT:
Note:
See TracChangeset
for help on using the changeset viewer.
