IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 25, 2010, 3:16:58 PM (16 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20100823

File:
1 edited

Legend:

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

    r29004 r29548  
    3535    bool CONSTANT_PHOTOMETRIC_WEIGHTS = psMetadataLookupBool(&status, recipe, "CONSTANT_PHOTOMETRIC_WEIGHTS");
    3636    psAssert (status, "You must provide a value for the BOOL recipe CONSTANT_PHOTOMETRIC_WEIGHTS");
     37
     38    float MIN_VALID_FLUX = psMetadataLookupF32(&status, recipe, "PSF_FIT_MIN_VALID_FLUX");
     39    if (!status) {
     40        MIN_VALID_FLUX = 0.0;
     41    }
     42    float MAX_VALID_FLUX = psMetadataLookupF32(&status, recipe, "PSF_FIT_MAX_VALID_FLUX");
     43    if (!status) {
     44        MAX_VALID_FLUX = 1e+8;
     45    }
    3746
    3847    // XXX store a local static array of covar factors for each of the images (by image ID)
     
    123132
    124133    psSparseConstraint constraint;
    125     constraint.paramMin   = 0.0;
    126     constraint.paramMax   = 1e8;
    127     constraint.paramDelta = 1e8;
     134    constraint.paramMin   = MIN_VALID_FLUX;
     135    constraint.paramMax   = MAX_VALID_FLUX;
     136    constraint.paramDelta = 1e7;
    128137
    129138    // solve for normalization terms (need include local sky?)
Note: See TracChangeset for help on using the changeset viewer.