IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 2, 2011, 11:46:07 AM (15 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20111122/psModules/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/psModules/src/astrom/pmAstrometryWCS.c

    r28386 r32853  
    487487
    488488    if (fpa->toSky == NULL) {
     489        psFree(fpa->toTPA);
     490        psFree(fpa->fromTPA);
    489491        fpa->toTPA = psPlaneTransformIdentity (1);
    490492        fpa->fromTPA = psPlaneTransformIdentity (1);
  • branches/eam_branches/ipp-20111122/psModules/src/objects

    • Property svn:ignore
      •  

        old new  
        99pmSourceIO_CMF_PS1_V3.c
        1010pmSourceIO_CMF_PS1_V4.c
         11pmSourceIO_CMF_PS1_V3.v1.c
         12pmSourceIO_CMF_PS1_V1.v1.c
         13pmSourceIO_CMF_PS1_V2.v1.c
         14
  • branches/eam_branches/ipp-20111122/psModules/src/objects/pmSourceMasks.h

    r31670 r32853  
    4646    PM_SOURCE_MODE2_DIFF_WITH_DOUBLE = 0x00000002, ///< diff source matched to positive detections in both images
    4747    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
    4849
    4950    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  
    5656static psImageMaskType maskBurntool = 0;
    5757static psImageMaskType maskConvPoor = 0;
     58static psImageMaskType maskGhost    = 0;
     59static psImageMaskType maskGlint    = 0;
    5860
    5961bool pmSourceMagnitudesInit (pmConfig *config, psMetadata *recipe)
     
    6870        maskBurntool = pmConfigMaskGet("BURNTOOL", config);
    6971        maskConvPoor = pmConfigMaskGet("CONV.POOR", config);
     72        maskGhost    = pmConfigMaskGet("GHOST", config);
     73        maskGlint    = pmConfigMaskGet("GHOST", config);
    7074        maskSuspect  = maskSpike | maskStarCore | maskBurntool | maskConvPoor;
    7175    }
     
    533537    }
    534538
     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
    535567    return (true);
    536568}
Note: See TracChangeset for help on using the changeset viewer.