IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11167


Ignore:
Timestamp:
Jan 18, 2007, 6:49:45 PM (19 years ago)
Author:
eugene
Message:

using CELL.SATURATION value not outdated psphot recipe value (requires passing in a readout to psphotInitLimitsPSF); applying PM_PAR_XXX names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotEvalPSF.c

    r10204 r11167  
    3232static float PSF_DSY_STDEV;
    3333
    34 bool psphotInitLimitsPSF (psMetadata *recipe) {
     34bool psphotInitLimitsPSF (psMetadata *recipe, pmReadout *readout) {
    3535
    3636    bool status;
    3737
    38     // we may set this differently here from the value used to mark likely saturated stars
    39     SATURATION       = psMetadataLookupF32 (&status, recipe, "SATURATION");
     38    // XXX do we need to set this differently from the value used to mark saturated pixels?
     39    pmCell *cell     = readout->parent;
     40    SATURATION       = psMetadataLookupF32 (&status, cell->concepts, "CELL.SATURATION");
    4041    PSF_MIN_SN       = psMetadataLookupF32 (&status, recipe, "PSF_MIN_SN");
    4142    PSF_MAX_CHI      = psMetadataLookupF32 (&status, recipe, "PSF_MAX_CHI");
     
    201202    // remember: fit does not use saturated pixels (masked)
    202203    // XXX no extended object can saturate and stay extended...
    203     if (model->params->data.F32[1] >= SATURATION) {
     204    if (model->params->data.F32[PM_PAR_I0] >= SATURATION) {
    204205        if (source->mode & PM_SOURCE_MODE_PSFSTAR) {
    205206            psLogMsg ("psphot", 5, "PSFSTAR marked SATSTAR\n");
     
    210211
    211212    // if the object has a fitted peak below 0, the fit did not converge cleanly
    212     if (model->params->data.F32[1] <= 0) {
     213    if (model->params->data.F32[PM_PAR_I0] <= 0) {
    213214        source->mode |= PM_SOURCE_MODE_FAIL;
    214215        return false;
Note: See TracChangeset for help on using the changeset viewer.