IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2005, 5:22:13 PM (21 years ago)
Author:
eugene
Message:

running sources in brightness order, using a mask

File:
1 edited

Legend:

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

    r4114 r4115  
    2222    keep           = psRegionForImage (keep, image, keep);
    2323
    24     // set the object surfact-brightness limit for fitted pixels
     24    float shapeNsigma = psMetadataLookupF32 (&status, config, "PSF_SHAPE_NSIGMA");
     25    float snFaint     = psMetadataLookupF32 (&status, config, "FAINT_SN_LIM");
     26
     27    // set the object surface-brightness limit for fitted pixels
    2528    float FLUX_LIMIT  = FIT_NSIGMA * sky->sampleStdev;
    2629    psLogMsg ("psphot.apply_psf_model", 3, "fitting pixels with at least %f object counts\n", FLUX_LIMIT);
     
    3134    for (int i = 0; i < sources->n; i++) {
    3235        psSource *source = sources->data[i];
     36
     37        // skip the existing PSF stars
     38        // XXX drop this -- refit?
    3339        if (source->modelPSF != NULL) continue;
    3440
     
    5561        pmSourceMaskSaturated (source, SATURATE);
    5662
    57         // fit as PSF, not FLT (drop poor fits)
     63        // fit as PSF, not FLT (skip poor fits)
    5864        if (!pmSourceFitModel (source, model, true)) continue;
    5965        source->modelPSF = model;
    6066        Niter += model[0].nIter;
    6167        Nfit ++;
     68
     69        mark_psf_source (source);
     70        subtract_psf_source (source);
    6271    }
    6372    psLogMsg ("psphot", 3, "fit PSF models: %f sec for %d objects (%d total iterations)\n", psTimerMark ("psphot"), Nfit, Niter);
Note: See TracChangeset for help on using the changeset viewer.