IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 25, 2007, 3:35:50 PM (19 years ago)
Author:
eugene
Message:

incorporating changes from eam_02_branch (pmSourceAdd/Sub, modified API for pmModelAdd, cached models)

File:
1 edited

Legend:

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

    r12792 r13035  
    11# include "psphotInternal.h"
    22
    3 // XXX this is not used in main psphot code
     3// This is not used in main psphot code (only in psphotModelTest.c)
    44bool psphotFitSet (pmSource *source, pmModel *oneModel, char *fitset, pmSourceFitMode mode) {
    55
     
    2424    }
    2525
     26    // XXX pmSourceFitSet must cache the modelFlux?
    2627    pmSourceFitSet (source, modelSet, mode);
    2728
     
    3233    for (int i = 0; i < modelSet->n; i++) {
    3334        pmModel *model = modelSet->data[i];
    34         pmModelSub (source->pixels, source->mask, model, false, false);
     35        pmModelSub (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL);
    3536
    3637        fprintf (stderr, "output parameters (obj %d):\n", i);
     
    4243    // write out
    4344    psphotSaveImage (NULL, source->pixels, "resid.fits");
    44     psphotSaveImage (NULL, source->mask, "mask.fits");
     45    psphotSaveImage (NULL, source->maskObj, "mask.fits");
    4546    return true;
    4647}
Note: See TracChangeset for help on using the changeset viewer.