IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 23, 2007, 4:54:30 PM (19 years ago)
Author:
eugene
Message:

moving to maskObj and maskView, re-wrote psphotEnsemblePSF using modelFlux, renamed to psphotFitSourcesLinear

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_02_branch/psphot/src/psphotModelTest.c

    r12957 r12978  
    22static char DEFAULT_MODE[] = "EXT";
    33
     4// XXX consider this function : add more test information?
    45bool psphotModelTest (pmReadout *readout, psMetadata *recipe) {
    56
     
    158159
    159160    // define the pixels used for the fit
    160     psImageKeepCircle (source->mask, xObj, yObj, RADIUS, "OR", PM_MASK_MARK);
     161    psImageKeepCircle (source->maskObj, xObj, yObj, RADIUS, "OR", PM_MASK_MARK);
    161162
    162163    char *fitset = psMetadataLookupStr (&status, recipe, "TEST_FIT_SET");
     
    170171    // measure the source mags
    171172    pmSourcePhotometryModel (&fitMag, model);
    172     pmSourcePhotometryAper  (&obsMag, model, source->pixels, source->mask);
     173    pmSourcePhotometryAper  (&obsMag, model, source->pixels, source->maskObj);
    173174    fprintf (stderr, "ap: %f, fit: %f, apmifit: %f\n", obsMag, fitMag, obsMag - fitMag);
    174175
     
    177178
    178179    // subtract object, leave local sky
    179     pmModelSub (source->pixels, source->mask, model, PM_MODEL_OP_FULL);
     180    pmModelSub (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL);
    180181
    181182    fprintf (stderr, "output parameters: \n");
     
    186187    // write out
    187188    psphotSaveImage (NULL, source->pixels, "resid.fits");
    188     psphotSaveImage (NULL, source->mask, "mask.fits");
     189    psphotSaveImage (NULL, source->maskObj, "mask.fits");
    189190
    190191    exit (0);
Note: See TracChangeset for help on using the changeset viewer.