IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29455


Ignore:
Timestamp:
Oct 17, 2010, 9:21:18 AM (16 years ago)
Author:
eugene
Message:

fix valid flux limits

Location:
branches/eam_branches/ipp-20100823/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psphot/src/psphotFitSourcesLinear.c

    r29004 r29455  
    104104    float MIN_VALID_FLUX = psMetadataLookupF32(&status, recipe, "PSF_FIT_MIN_VALID_FLUX");
    105105    if (!status) {
    106         MIN_VALID_FLUX = 1e-8;
     106        MIN_VALID_FLUX = 0.0;
    107107    }
    108108    float MAX_VALID_FLUX = psMetadataLookupF32(&status, recipe, "PSF_FIT_MAX_VALID_FLUX");
  • branches/eam_branches/ipp-20100823/psphot/src/psphotFitSourcesLinearStack.c

    r29004 r29455  
    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.