Changeset 40247
- Timestamp:
- Dec 6, 2017, 5:56:22 AM (9 years ago)
- Location:
- branches/eam_branches/ohana.20170822/src/libdvo
- Files:
-
- 2 edited
-
include/dvo.h (modified) (1 diff)
-
src/dbFields.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20170822/src/libdvo/include/dvo.h
r40243 r40247 221 221 /* Secfilt.flags values -- these values are 32 bit (as of PS1_V1) */ 222 222 typedef enum { 223 ID_SECF_STAR_FEW = 0x00000001, // used within relphot: skip star 224 ID_SECF_STAR_POOR = 0x00000002, // used within relphot: skip star 225 ID_SECF_USE_SYNTH = 0x00000004, // synthetic photometry used in average measurement 226 ID_SECF_USE_UBERCAL = 0x00000008, // ubercal photometry used in average measurement 227 ID_SECF_HAS_PS1 = 0x00000010, // PS1 photometry used in average measurement 228 ID_SECF_HAS_PS1_STACK = 0x00000020, // PS1 stack photometry exists 229 ID_SECF_HAS_TYCHO = 0x00000040, // Tycho photometry used for synth mags 230 ID_SECF_FIX_SYNTH = 0x00000080, // synth mags repaired with zpt map 231 ID_SECF_RANK_0 = 0x00000100, // average magnitude uses rank 0 values 232 ID_SECF_RANK_1 = 0x00000200, // average magnitude uses rank 1 values 233 ID_SECF_RANK_2 = 0x00000400, // average magnitude uses rank 2 values 234 ID_SECF_RANK_3 = 0x00000800, // average magnitude uses rank 3 values 235 ID_SECF_RANK_4 = 0x00001000, // average magnitude uses rank 4 values 236 ID_SECF_OBJ_EXT_PSPS = 0x00002000, // In PSPS ID_SECF_OBJ_EXT is moved here so it fits within 16 bits 237 ID_SECF_STACK_PRIMARY = 0x00004000, // PS1 stack photometry comes from primary skycell 238 ID_SECF_STACK_BESTDET = 0x00008000, // PS1 stack best measurement is a detection (not forced) 239 ID_SECF_STACK_PRIMDET = 0x00010000, // PS1 stack primary measurement is a detection (not forced) 240 241 ID_SECF_HAS_SDSS = 0x00100000, // this photcode has SDSS photometry 242 ID_SECF_HAS_HSC = 0x00200000, // this photcode has HSC photometry 243 ID_SECF_HAS_CFH = 0x00400000, // this photcode has CFH photometry (mostly Megacam) 244 ID_SECF_HAS_DES = 0x00800000, // this photcode has DES photometry 245 246 ID_SECF_OBJ_EXT = 0x01000000, // extended in this band 247 248 ID_SECF_CHIP_FLAGS = 0x01003f1f, // all chip-related bits (used to reset the correct bits only) 249 ID_SECF_STACK_FLAGS = 0x00004020, // all stack-related bits ( 223 ID_SECF_STAR_FEW = 0x00000001, // used within relphot: skip star 224 ID_SECF_STAR_POOR = 0x00000002, // used within relphot: skip star 225 ID_SECF_USE_SYNTH = 0x00000004, // synthetic photometry used in average measurement 226 ID_SECF_USE_UBERCAL = 0x00000008, // ubercal photometry used in average measurement 227 ID_SECF_HAS_PS1 = 0x00000010, // PS1 photometry used in average measurement 228 ID_SECF_HAS_PS1_STACK = 0x00000020, // PS1 stack photometry exists 229 ID_SECF_HAS_TYCHO = 0x00000040, // Tycho photometry used for synth mags 230 ID_SECF_FIX_SYNTH = 0x00000080, // synth mags repaired with zpt map 231 ID_SECF_RANK_0 = 0x00000100, // average magnitude uses rank 0 values 232 ID_SECF_RANK_1 = 0x00000200, // average magnitude uses rank 1 values 233 ID_SECF_RANK_2 = 0x00000400, // average magnitude uses rank 2 values 234 ID_SECF_RANK_3 = 0x00000800, // average magnitude uses rank 3 values 235 ID_SECF_RANK_4 = 0x00001000, // average magnitude uses rank 4 values 236 ID_SECF_OBJ_EXT_PSPS = 0x00002000, // In PSPS ID_SECF_OBJ_EXT is moved here so it fits within 16 bits 237 ID_SECF_STACK_PRIMARY = 0x00004000, // PS1 stack photometry comes from primary skycell 238 ID_SECF_STACK_BESTDET = 0x00008000, // PS1 stack best measurement is a detection (not forced) 239 ID_SECF_STACK_PRIMDET = 0x00010000, // PS1 stack primary measurement is a detection (not forced) 240 ID_SECF_STACK_PRIMARY_MULTIPLE = 0x00020000, // PS1 stack object has multiple primary measurements 241 242 ID_SECF_HAS_SDSS = 0x00100000, // this photcode has SDSS photometry 243 ID_SECF_HAS_HSC = 0x00200000, // this photcode has HSC photometry 244 ID_SECF_HAS_CFH = 0x00400000, // this photcode has CFH photometry (mostly Megacam) 245 ID_SECF_HAS_DES = 0x00800000, // this photcode has DES photometry 246 247 ID_SECF_OBJ_EXT = 0x01000000, // extended in this band 248 249 ID_SECF_CHIP_FLAGS = 0x01003f1f, // all chip-related bits (used to reset the correct bits only) 250 ID_SECF_STACK_FLAGS = 0x00004020, // all stack-related bits ( 250 251 } DVOSecfiltFlags; 251 252 -
branches/eam_branches/ohana.20170822/src/libdvo/src/dbFields.c
r40245 r40247 847 847 if (!strcasecmp (fieldName, "dapresid" )) ESCAPE (IMAGE_DAPRESID, OPIHI_FLT); 848 848 849 if (!strcasecmp (fieldName, "Mcal" )) ESCAPE (IMAGE_MCAL_PSF,OPIHI_FLT);850 if (!strcasecmp (fieldName, "McalPSF" )) ESCAPE (IMAGE_MCAL_APER,OPIHI_FLT);851 if (!strcasecmp (fieldName, "McalAPER" )) ESCAPE (IMAGE_MCAL_APER,OPIHI_FLT);852 if (!strcasecmp (fieldName, "McalAPERTURE")) ESCAPE (IMAGE_MCAL_APER, OPIHI_FLT);853 if (!strcasecmp (fieldName, "dMcal" )) ESCAPE (IMAGE_dMCAL,OPIHI_FLT);854 if (!strcasecmp (fieldName, "Xm" )) ESCAPE (IMAGE_XM,OPIHI_FLT);855 if (!strcasecmp (fieldName, "photcode" )) ESCAPE (IMAGE_PHOTCODE,OPIHI_INT);856 if (!strcasecmp (fieldName, "exptime" )) ESCAPE (IMAGE_EXPTIME,OPIHI_FLT);857 if (!strcasecmp (fieldName, "expname" )) ESCAPE (IMAGE_EXPNAME_AS_INT, OPIHI_INT);858 if (!strcasecmp (fieldName, "sidtime" )) ESCAPE (IMAGE_SIDTIME,OPIHI_FLT);849 if (!strcasecmp (fieldName, "Mcal" )) ESCAPE (IMAGE_MCAL_PSF, OPIHI_FLT); 850 if (!strcasecmp (fieldName, "McalPSF" )) ESCAPE (IMAGE_MCAL_PSF, OPIHI_FLT); 851 if (!strcasecmp (fieldName, "McalAPER" )) ESCAPE (IMAGE_MCAL_APER, OPIHI_FLT); 852 if (!strcasecmp (fieldName, "McalAPERTURE")) ESCAPE (IMAGE_MCAL_APER, OPIHI_FLT); 853 if (!strcasecmp (fieldName, "dMcal" )) ESCAPE (IMAGE_dMCAL, OPIHI_FLT); 854 if (!strcasecmp (fieldName, "Xm" )) ESCAPE (IMAGE_XM, OPIHI_FLT); 855 if (!strcasecmp (fieldName, "photcode" )) ESCAPE (IMAGE_PHOTCODE, OPIHI_INT); 856 if (!strcasecmp (fieldName, "exptime" )) ESCAPE (IMAGE_EXPTIME, OPIHI_FLT); 857 if (!strcasecmp (fieldName, "expname" )) ESCAPE (IMAGE_EXPNAME_AS_INT, OPIHI_INT); 858 if (!strcasecmp (fieldName, "sidtime" )) ESCAPE (IMAGE_SIDTIME, OPIHI_FLT); 859 859 860 860 if (!strcasecmp (fieldName, "latitude" )) ESCAPE (IMAGE_LATITUDE, OPIHI_FLT);
Note:
See TracChangeset
for help on using the changeset viewer.
