Changeset 37110
- Timestamp:
- Jul 24, 2014, 11:11:58 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140717/Ohana/src/libdvo
- Files:
-
- 10 edited
-
include/dvo.h (modified) (1 diff)
-
include/dvodb.h (modified) (1 diff)
-
src/TessellationTable.c (modified) (1 diff)
-
src/dbExtractAverages.c (modified) (1 diff)
-
src/dbExtractMeasures.c (modified) (1 diff)
-
src/dbFields.c (modified) (3 diffs)
-
src/dvo_catalog.c (modified) (1 diff)
-
src/dvo_convert_PS1_V4.c (modified) (2 diffs)
-
src/dvo_convert_PS1_V5.c (modified) (2 diffs)
-
src/dvo_photcode_ops.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140717/Ohana/src/libdvo/include/dvo.h
r37101 r37110 128 128 ID_MEAS_BLEND_MEAS = 0x00000100, // detection is within radius of multiple objects 129 129 ID_MEAS_BLEND_OBJ = 0x00000200, // multiple detections within radius of object 130 ID_MEAS_ UNDEF_3 = 0x00000400, // unused130 ID_MEAS_WARP_USED = 0x00000400, // measurement used to find mean warp photometry 131 131 ID_MEAS_UNDEF_4 = 0x00000800, // unused 132 132 ID_MEAS_BLEND_MEAS_X = 0x00001000, // detection is within radius of multiple objects across catalogs -
branches/eam_branches/ipp-20140717/Ohana/src/libdvo/include/dvodb.h
r37035 r37110 54 54 MAG_OPTION_NPHOT, // Nused 55 55 MAG_OPTION_UC_DIST, 56 MAG_OPTION_STACK_DET_ID,57 56 MAG_OPTION_FLAGS, 58 57 } dvoMagOptionType; 58 59 // MAG_OPTION_STACK_PRIMARY_OFF, 60 // MAG_OPTION_STACK_BEST_OFF, 59 61 60 62 typedef enum { -
branches/eam_branches/ipp-20140717/Ohana/src/libdvo/src/TessellationTable.c
r37101 r37110 560 560 int yi = y / tess[myTess].tree->dY[zone][band]; 561 561 562 xi = MAX(MIN(xi, tess[myTess]. NX_SUB - 1.0), 0);563 yi = MAX(MIN(yi, tess[myTess]. NY_SUB - 1.0), 0);562 xi = MAX(MIN(xi, tess[myTess].tree->NX_SUB - 1.0), 0); 563 yi = MAX(MIN(yi, tess[myTess].tree->NY_SUB - 1.0), 0); 564 564 565 565 int N = xi + tess[myTess].tree->NX_SUB * yi; -
branches/eam_branches/ipp-20140717/Ohana/src/libdvo/src/dbExtractAverages.c
r37093 r37110 306 306 value.Flt = PhotUCdist (field->photcode, average, secfilt); 307 307 break; 308 case MAG_OPTION_STACK_DET_ID:309 value.Int = PhotStackID (field->photcode, average, secfilt);310 break;308 // XX case MAG_OPTION_STACK_DET_ID: 309 // XX value.Int = PhotStackID (field->photcode, average, secfilt); 310 // XX break; 311 311 case MAG_OPTION_FLAGS: { 312 312 int Nsec = GetPhotcodeNsec (field->photcode->code); -
branches/eam_branches/ipp-20140717/Ohana/src/libdvo/src/dbExtractMeasures.c
r37035 r37110 248 248 case MAG_OPTION_NPHOT: 249 249 case MAG_OPTION_UC_DIST: 250 case MAG_OPTION_STACK_DET_ID:251 250 case MAG_OPTION_FLAGS: 252 251 case MAG_OPTION_NONE: -
branches/eam_branches/ipp-20140717/Ohana/src/libdvo/src/dbFields.c
r37035 r37110 78 78 if (!strcasecmp (string, "nphot")) return (MAG_OPTION_NPHOT); 79 79 if (!strcasecmp (string, "uc_dist")) return (MAG_OPTION_UC_DIST); 80 if (!strcasecmp (string, "stack_det_id")) return (MAG_OPTION_STACK_DET_ID);81 80 if (!strcasecmp (string, "flags")) return (MAG_OPTION_FLAGS); 82 81 … … 145 144 if (!strcasecmp (string, "max")) return (MAG_MAX); 146 145 if (!strcasecmp (string, "ucdist")) return (MAG_UC_DIST); 147 if (!strcasecmp (string, "stackDetectID")) return (MAG_STACK_DET_ID);148 146 if (!strcasecmp (string, "fluxpsf")) return (MAG_FLUX_PSF); 149 147 if (!strcasecmp (string, "fluxpsferr")) return (MAG_FLUX_PSF_ERR); … … 296 294 297 295 switch (field->magOption) { 298 case MAG_OPTION_STACK_DET_ID:299 296 case MAG_OPTION_NCODE: 300 297 case MAG_OPTION_NPHOT: -
branches/eam_branches/ipp-20140717/Ohana/src/libdvo/src/dvo_catalog.c
r37085 r37110 197 197 secfilt->dFapStk = NAN; 198 198 199 secfilt->stackDetectID = 0; 199 secfilt->stackPrmryOff = -1; 200 secfilt->stackBestOff = -1; 200 201 201 202 secfilt->MpsfWrp = NAN; -
branches/eam_branches/ipp-20140717/Ohana/src/libdvo/src/dvo_convert_PS1_V4.c
r37035 r37110 251 251 out[i].Mstdev = in[i].Mstdev; 252 252 out[i].ubercalDist = in[i].ubercalDist; 253 out[i].stackDetectID = in[i].stackDetectID; 253 out[i].stackPrmryOff = in[i].stackPrmryOff; 254 out[i].stackBestOff = in[i].stackBestOff; 254 255 } 255 256 return (out); … … 281 282 out[i].Mstdev = in[i].Mstdev; 282 283 out[i].ubercalDist = in[i].ubercalDist; 283 out[i].stackDetectID = in[i].stackDetectID; 284 out[i].stackPrmryOff = in[i].stackPrmryOff; 285 out[i].stackBestOff = in[i].stackBestOff; 284 286 } 285 287 return (out); -
branches/eam_branches/ipp-20140717/Ohana/src/libdvo/src/dvo_convert_PS1_V5.c
r37035 r37110 319 319 out[i].dFapStk = in[i].dFapStk; 320 320 321 out[i].stackDetectID = in[i].stackDetectID; 321 out[i].stackPrmryOff = in[i].stackPrmryOff; 322 out[i].stackBestOff = in[i].stackBestOff; 322 323 323 324 out[i].MpsfWrp = in[i].MpsfWrp; … … 387 388 out[i].dFapStk = in[i].dFapStk; 388 389 389 out[i].stackDetectID = in[i].stackDetectID; 390 out[i].stackPrmryOff = in[i].stackPrmryOff; 391 out[i].stackBestOff = in[i].stackBestOff; 390 392 391 393 out[i].MpsfWrp = in[i].MpsfWrp; -
branches/eam_branches/ipp-20140717/Ohana/src/libdvo/src/dvo_photcode_ops.c
r37093 r37110 863 863 } 864 864 865 unsigned int PhotStackID (PhotCode *code, Average *average, SecFilt *secfilt) {866 867 int Ns;868 unsigned int ID;869 870 if (code == NULL) return 0;871 872 Ns = photcodes[0].hashNsec[code[0].code];873 ID = (Ns == -1) ? 0 : secfilt[Ns].stackDetectID;874 return (ID);875 }865 // XX unsigned int PhotStackID (PhotCode *code, Average *average, SecFilt *secfilt) { 866 // XX 867 // XX int Ns; 868 // XX unsigned int ID; 869 // XX 870 // XX if (code == NULL) return 0; 871 // XX 872 // XX Ns = photcodes[0].hashNsec[code[0].code]; 873 // XX ID = (Ns == -1) ? 0 : secfilt[Ns].stackDetectID; 874 // XX return (ID); 875 // XX } 876 876 877 877 // Xm is now (2014.07.03) stored as the chisq except in dvo formats which use as short
Note:
See TracChangeset
for help on using the changeset viewer.
