IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2022, 2:36:39 PM (4 years ago)
Author:
eugene
Message:

especially in very high-dynamic range stack images, the peak pixels can drive the PSF fit too much: add an option for iterative reweighting of the pixel values during the non-linear fit

File:
1 edited

Legend:

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

    r37811 r42087  
    164164        // default to the old method (chisqConvergence)
    165165        chisqConvergence = true;
     166    }
     167
     168    bool useReweighting = psMetadataLookupBool (&status, recipe, "LMM_FIT_USE_REWEIGHTING"); // Fit tolerance
     169    if (!status) {
     170        useReweighting = false;
    166171    }
    167172
     
    185190    options->fitOptions->gainFactorMode   = gainFactorMode;
    186191    options->fitOptions->chisqConvergence = chisqConvergence;
     192    options->fitOptions->useReweighting   = useReweighting;
    187193
    188194    psArray *stars = psArrayAllocEmpty (sources->n);
Note: See TracChangeset for help on using the changeset viewer.