IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 9, 2006, 8:40:35 AM (21 years ago)
Author:
eugene
Message:

changed apresid fit to add terms in a sequence

File:
1 edited

Legend:

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

    r5837 r5952  
    5959    stats->clipIter = 3;
    6060
     61    // first clip out objects which are too far from the median
     62    stats->clipIter = 1;
     63    maskToConstant (psf->ApTrend);
     64    psf->ApTrend  = psVectorClipFitPolynomial3D (psf->ApTrend, stats, mask, PSFTRY_MASK_ALL, apResid, NULL, xPos, yPos, rflux);
     65
     66    // next, fit just SkyBias and clip out objects which are too far from the median
     67    stats->clipIter = 2;
     68    maskToSkyBias (psf->ApTrend);
     69    psf->ApTrend  = psVectorClipFitPolynomial3D (psf->ApTrend, stats, mask, PSFTRY_MASK_ALL, apResid, NULL, xPos, yPos, rflux);
     70
     71    // finally, fit x, y, SkyBias and clip out objects which are too far from the median
     72    stats->clipIter = 2;
     73    maskToDefault (psf->ApTrend);
     74    psf->ApTrend  = psVectorClipFitPolynomial3D (psf->ApTrend, stats, mask, PSFTRY_MASK_ALL, apResid, NULL, xPos, yPos, rflux);
     75
    6176    // linear clipped fit of apResid to rflux, xPos, yPos
     77    # if (0)
    6278    psf->ApTrend  = psVectorClipFitPolynomial3D (psf->ApTrend, stats, mask, PSFTRY_MASK_ALL, apResid, NULL, xPos, yPos, rflux);
    6379    psf->skyBias  = psf->ApTrend->coeff[0][0][1] / (M_PI * PS_SQR(RADIUS));
     
    6581    psf->dApResid = stats->sampleStdev;
    6682    psf->ApTrend->coeff[0][0][1] = 0;
     83    # endif
    6784
    6885    /*
Note: See TracChangeset for help on using the changeset viewer.