Changeset 32853 for branches/eam_branches/ipp-20111122/psModules
- Timestamp:
- Dec 2, 2011, 11:46:07 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20111122/psModules/src
- Files:
-
- 4 edited
-
astrom/pmAstrometryWCS.c (modified) (1 diff)
-
objects (modified) (1 prop)
-
objects/pmSourceMasks.h (modified) (1 diff)
-
objects/pmSourcePhotometry.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/psModules/src/astrom/pmAstrometryWCS.c
r28386 r32853 487 487 488 488 if (fpa->toSky == NULL) { 489 psFree(fpa->toTPA); 490 psFree(fpa->fromTPA); 489 491 fpa->toTPA = psPlaneTransformIdentity (1); 490 492 fpa->fromTPA = psPlaneTransformIdentity (1); -
branches/eam_branches/ipp-20111122/psModules/src/objects
- Property svn:ignore
-
old new 9 9 pmSourceIO_CMF_PS1_V3.c 10 10 pmSourceIO_CMF_PS1_V4.c 11 pmSourceIO_CMF_PS1_V3.v1.c 12 pmSourceIO_CMF_PS1_V1.v1.c 13 pmSourceIO_CMF_PS1_V2.v1.c 14
-
- Property svn:ignore
-
branches/eam_branches/ipp-20111122/psModules/src/objects/pmSourceMasks.h
r31670 r32853 46 46 PM_SOURCE_MODE2_DIFF_WITH_DOUBLE = 0x00000002, ///< diff source matched to positive detections in both images 47 47 PM_SOURCE_MODE2_MATCHED = 0x00000004, ///< diff source matched to positive detections in both images 48 PM_SOURCE_MODE2_DIFF_SELF_MATCH = 0x00000800, ///< positive detection match is probably this source 48 49 49 50 PM_SOURCE_MODE2_ON_SPIKE = 0x00000008, ///< > 25% of (PSF-weighted) pixels land on diffraction spike -
branches/eam_branches/ipp-20111122/psModules/src/objects/pmSourcePhotometry.c
r32347 r32853 56 56 static psImageMaskType maskBurntool = 0; 57 57 static psImageMaskType maskConvPoor = 0; 58 static psImageMaskType maskGhost = 0; 59 static psImageMaskType maskGlint = 0; 58 60 59 61 bool pmSourceMagnitudesInit (pmConfig *config, psMetadata *recipe) … … 68 70 maskBurntool = pmConfigMaskGet("BURNTOOL", config); 69 71 maskConvPoor = pmConfigMaskGet("CONV.POOR", config); 72 maskGhost = pmConfigMaskGet("GHOST", config); 73 maskGlint = pmConfigMaskGet("GHOST", config); 70 74 maskSuspect = maskSpike | maskStarCore | maskBurntool | maskConvPoor; 71 75 } … … 533 537 } 534 538 539 // Check that if the peak is on/off a ghost, glint, or diffraction spike. In regular IPP 540 // processing, these values are only set in the image mask after the 'camera' stage 541 542 int xChip = source->peak->x; 543 int yChip = source->peak->y; 544 545 bool onChip = true; 546 onChip &= (xChip >= 0); 547 onChip &= (xChip < mask->numCols); 548 onChip &= (yChip >= 0); 549 onChip &= (yChip < mask->numRows); 550 if (!onChip) { 551 // if the source is off the edge of the chip, raise a different bit? 552 source->mode |= PM_SOURCE_MODE_OFF_CHIP; 553 } else { 554 psImageMaskType maskValue = mask->data.PS_TYPE_IMAGE_MASK_DATA[yChip][xChip]; 555 if (maskValue & maskGhost) { 556 source->mode |= PM_SOURCE_MODE_ON_GHOST; 557 } 558 pmSourceMode PM_SOURCE_MODE_ON_GLINT = PM_SOURCE_MODE_ON_GHOST; 559 if (maskValue & maskGlint) { 560 source->mode |= PM_SOURCE_MODE_ON_GLINT; 561 } 562 if (maskValue & maskSpike) { 563 source->mode |= PM_SOURCE_MODE_ON_SPIKE; 564 } 565 } 566 535 567 return (true); 536 568 }
Note:
See TracChangeset
for help on using the changeset viewer.
