- Timestamp:
- Jun 27, 2018, 3:20:35 PM (8 years ago)
- Location:
- branches/czw_branch/20170908/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/libdvo/include/dvo.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20170908/Ohana
- Property svn:mergeinfo changed
-
branches/czw_branch/20170908/Ohana/src/libdvo/include/dvo.h
r40063 r40477 33 33 DVO_FORMAT_PS1_V4, 34 34 DVO_FORMAT_PS1_V5, 35 DVO_FORMAT_PS1_V6, 35 36 DVO_FORMAT_PS1_V5_LOAD, 36 37 } DVOCatFormat; … … 220 221 /* Secfilt.flags values -- these values are 32 bit (as of PS1_V1) */ 221 222 typedef enum { 222 ID_SECF_STAR_FEW = 0x00000001, // used within relphot: skip star 223 ID_SECF_STAR_POOR = 0x00000002, // used within relphot: skip star 224 ID_SECF_USE_SYNTH = 0x00000004, // synthetic photometry used in average measurement 225 ID_SECF_USE_UBERCAL = 0x00000008, // ubercal photometry used in average measurement 226 ID_SECF_HAS_PS1 = 0x00000010, // PS1 photometry used in average measurement 227 ID_SECF_HAS_PS1_STACK = 0x00000020, // PS1 stack photometry exists 228 ID_SECF_HAS_TYCHO = 0x00000040, // Tycho photometry used for synth mags 229 ID_SECF_FIX_SYNTH = 0x00000080, // synth mags repaired with zpt map 230 ID_SECF_RANK_0 = 0x00000100, // average magnitude uses rank 0 values 231 ID_SECF_RANK_1 = 0x00000200, // average magnitude uses rank 1 values 232 ID_SECF_RANK_2 = 0x00000400, // average magnitude uses rank 2 values 233 ID_SECF_RANK_3 = 0x00000800, // average magnitude uses rank 3 values 234 ID_SECF_RANK_4 = 0x00001000, // average magnitude uses rank 4 values 235 ID_SECF_OBJ_EXT_PSPS = 0x00002000, // In PSPS ID_SECF_OBJ_EXT is moved here so it fits within 16 bits 236 ID_SECF_STACK_PRIMARY = 0x00004000, // PS1 stack photometry comes from primary skycell 237 ID_SECF_STACK_BESTDET = 0x00008000, // PS1 stack best measurement is a detection (not forced) 238 ID_SECF_STACK_PRIMDET = 0x00010000, // PS1 stack primary measurement is a detection (not forced) 239 240 ID_SECF_HAS_SDSS = 0x00100000, // this photcode has SDSS photometry 241 ID_SECF_HAS_HSC = 0x00200000, // this photcode has HSC photometry 242 ID_SECF_HAS_CFH = 0x00400000, // this photcode has CFH photometry (mostly Megacam) 243 ID_SECF_HAS_DES = 0x00800000, // this photcode has DES photometry 244 245 ID_SECF_OBJ_EXT = 0x01000000, // extended in this band 246 247 ID_SECF_CHIP_FLAGS = 0x01003f1f, // all chip-related bits (used to reset the correct bits only) 248 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 includes a 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 = 0x0003c020, // all stack-related bits ( 249 251 } DVOSecfiltFlags; 250 252 … … 501 503 double R; 502 504 double D; 503 float M; 504 float Mcal; 505 float M; // change to Mpsf eventually to disambiguate 506 float Mkron; 507 float McalPSF; 508 float McalAPER; 505 509 float Mflat; 506 510 float dM; … … 1073 1077 # include "ps1_v4_defs.h" 1074 1078 # include "ps1_v5_defs.h" 1079 # include "ps1_v6_defs.h" 1075 1080 # include "ps1_v5_ld_defs.h" 1076 1081 # include "ps1_ref_defs.h" … … 1267 1272 # undef LENSFIELD 1268 1273 1269 # define GALPHOT_FIELD(NAME, VALUE) float GalphotValue_##NAME (PhotCode *code, dvoMagClassType class, GalPhot *galphot, int Ngalphot) 1270 1271 GALPHOT_FIELD(GAL_MAG, mag); 1272 GALPHOT_FIELD(GAL_MAG_ERR, magErr); 1273 GALPHOT_FIELD(GAL_MAJ, majorAxis); 1274 GALPHOT_FIELD(GAL_MAJ_ERR, majorAxisErr); 1275 GALPHOT_FIELD(GAL_MIN, minorAxis); 1276 GALPHOT_FIELD(GAL_MIN_ERR, minorAxisErr); 1277 GALPHOT_FIELD(GAL_THETA, theta); 1278 GALPHOT_FIELD(GAL_THETA_ERR, thetaErr); 1279 GALPHOT_FIELD(GAL_INDEX, index); 1280 GALPHOT_FIELD(GAL_CHISQ, chisq); 1281 GALPHOT_FIELD(GAL_NPIX, Npix); 1282 GALPHOT_FIELD(GAL_FLAGS, flags); 1283 GALPHOT_FIELD(GAL_TYPE, modelType); 1274 # define GALPHOT_FIELD(NAME, VALUE, TYPE, DEFAULT) TYPE GalphotValue_##NAME (PhotCode *code, dvoMagClassType class, GalPhot *galphot, int Ngalphot); 1275 1276 //GALPHOT_FIELD(GAL_MAG, mag); 1277 //GALPHOT_FIELD(GAL_MAG_ERR, magErr); 1278 //GALPHOT_FIELD(GAL_MAJ, majorAxis); 1279 //GALPHOT_FIELD(GAL_MAJ_ERR, majorAxisErr); 1280 //GALPHOT_FIELD(GAL_MIN, minorAxis); 1281 //GALPHOT_FIELD(GAL_MIN_ERR, minorAxisErr); 1282 //GALPHOT_FIELD(GAL_THETA, theta); 1283 //GALPHOT_FIELD(GAL_THETA_ERR, thetaErr); 1284 //GALPHOT_FIELD(GAL_INDEX, index); 1285 //GALPHOT_FIELD(GAL_CHISQ, chisq); 1286 //GALPHOT_FIELD(GAL_NPIX, Npix); 1287 //GALPHOT_FIELD(GAL_FLAGS, flags); 1288 //GALPHOT_FIELD(GAL_TYPE, modelType); 1289 1290 GALPHOT_FIELD(GAL_MAG, mag, float, NAN) 1291 GALPHOT_FIELD(GAL_MAG_ERR, magErr, float, NAN) 1292 GALPHOT_FIELD(GAL_MAJ, majorAxis, float, NAN) 1293 GALPHOT_FIELD(GAL_MAJ_ERR, majorAxisErr, float, NAN) 1294 GALPHOT_FIELD(GAL_MIN, minorAxis, float, NAN) 1295 GALPHOT_FIELD(GAL_MIN_ERR, minorAxisErr, float, NAN) 1296 GALPHOT_FIELD(GAL_THETA, theta, float, NAN) 1297 GALPHOT_FIELD(GAL_THETA_ERR, thetaErr, float, NAN) 1298 GALPHOT_FIELD(GAL_INDEX, index, float, NAN) 1299 GALPHOT_FIELD(GAL_CHISQ, chisq, float, NAN) 1300 GALPHOT_FIELD(GAL_NPIX, Npix, float, NAN) 1301 1302 GALPHOT_FIELD(GAL_TYPE, modelType, short, 0) 1303 1304 GALPHOT_FIELD(GAL_FLAGS, flags, unsigned int, 0) 1305 GALPHOT_FIELD(GAL_OBJ_ID, objID, unsigned int, 0) 1306 GALPHOT_FIELD(GAL_CAT_ID, catID, unsigned int, 0) 1307 GALPHOT_FIELD(GAL_DET_ID, detID, unsigned int, 0) 1308 GALPHOT_FIELD(GAL_IMAGE_ID, imageID, unsigned int, 0) 1284 1309 1285 1310 # undef GALPHOT_FIELD
Note:
See TracChangeset
for help on using the changeset viewer.
