IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29015


Ignore:
Timestamp:
Aug 23, 2010, 7:30:13 AM (16 years ago)
Author:
eugene
Message:

skip sources without model flux images; use PCM fitting for each sersic test index

Location:
trunk/psphot/src
Files:
2 edited

Legend:

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

    r29004 r29015  
    288288        // save the modelFlux here in case we need to subtract it (for failure)
    289289        psImage *modelFluxStart = psMemIncrRefCounter (source->modelFlux);
     290        if (!modelFluxStart) {
     291          // XXX raise an error of some kind?
     292          continue;
     293        }
    290294
    291295        if (savePics) {
  • trunk/psphot/src/psphotSourceFits.c

    r29004 r29015  
    675675        }
    676676       
     677# if (0)
    677678        pmSourceFitModel (source, model, &options, maskVal);
     679# else
     680        pmSourceModelGuessPCM(pcm, source, maskVal, markVal);
     681        pmSourceFitPCM (pcm, source, &options, maskVal, markVal, psfSize);
     682# endif
    678683        fprintf (stderr, "chisq: %f, nIter: %d, radius: %f, npix: %d\n", model->chisqNorm, model->nIter, model->fitRadius, model->nPix);
    679 
    680         // pmSourceModelGuessPCM(pcm, source, maskVal, markVal);
    681         // pmSourceFitPCM (pcm, source, &options, maskVal, markVal, psfSize);
    682684
    683685        chiSquare[i] = model->chisq;
Note: See TracChangeset for help on using the changeset viewer.