IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2011, 12:33:05 PM (15 years ago)
Author:
eugene
Message:

adding some of the metadata needed by PSPS to output headers; skip models with few valid pixels (eg, only the edge is showing); only do the linear fit on pixels within the fit radius; modify psf-match auto-scaling process; enable multiple target psfs for matched-psf aperture photometry; speed up analysis of the radial apertures

Location:
trunk/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src/psphotStackMatchPSFsUtils.c

    r29548 r30624  
    365365        pmSubtractionSetFWHMs(options->inputSeeing->data.F32[index], options->targetSeeing);
    366366
    367         if (scale && !pmSubtractionParamsScale(&size, &footprint, widthsCopy, scaleRef, scaleMin, scaleMax)) {
    368             psError(psErrorCodeLast(), false, "Unable to scale kernel parameters");
    369             goto escape;
    370         }
     367        pmSubtractionParamScaleOptions(scale, scaleRef, scaleMin, scaleMax);
     368
     369        // if (scale && !pmSubtractionParamsScale(&size, &footprint, widthsCopy, scaleRef, scaleMin, scaleMax)) {
     370        //     psError(psErrorCodeLast(), false, "Unable to scale kernel parameters");
     371        //     goto escape;
     372        // }
    371373
    372374        if (!pmSubtractionMatch(NULL, readoutOut, fake, readoutSrc, footprint, stride, regionSize, spacing, threshold, stampSources, stampsName, type, size, order, widthsCopy, orders, inner, ringsOrder, binning, penalty, optimum, optWidths, optOrder, optThresh, iter, rej, normFrac, sysError, skyErr, kernelError, covarFrac, maskVal, maskBad, maskPoor, poorFrac, badFrac, PM_SUBTRACTION_MODE_2)) {
     
    383385        goto escape;
    384386    }
     387
     388    // save the PSF on the new readout->analysis:
     389    // if (!psMetadataAddPtr (readoutOut->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_META_REPLACE | PS_DATA_UNKNOWN, "psphot psf model", options->psf)) {
     390    //     psError (PSPHOT_ERR_UNKNOWN, false, "problem saving sources on readout");
     391    //     return false;
     392    // }
    385393
    386394    // dumpImage(readoutOut, readoutSrc, index, "conv");
Note: See TracChangeset for help on using the changeset viewer.