Changeset 12978 for branches/eam_02_branch/psphot/src/psphotModelTest.c
- Timestamp:
- Apr 23, 2007, 4:54:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_02_branch/psphot/src/psphotModelTest.c
r12957 r12978 2 2 static char DEFAULT_MODE[] = "EXT"; 3 3 4 // XXX consider this function : add more test information? 4 5 bool psphotModelTest (pmReadout *readout, psMetadata *recipe) { 5 6 … … 158 159 159 160 // 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); 161 162 162 163 char *fitset = psMetadataLookupStr (&status, recipe, "TEST_FIT_SET"); … … 170 171 // measure the source mags 171 172 pmSourcePhotometryModel (&fitMag, model); 172 pmSourcePhotometryAper (&obsMag, model, source->pixels, source->mask );173 pmSourcePhotometryAper (&obsMag, model, source->pixels, source->maskObj); 173 174 fprintf (stderr, "ap: %f, fit: %f, apmifit: %f\n", obsMag, fitMag, obsMag - fitMag); 174 175 … … 177 178 178 179 // 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); 180 181 181 182 fprintf (stderr, "output parameters: \n"); … … 186 187 // write out 187 188 psphotSaveImage (NULL, source->pixels, "resid.fits"); 188 psphotSaveImage (NULL, source->mask , "mask.fits");189 psphotSaveImage (NULL, source->maskObj, "mask.fits"); 189 190 190 191 exit (0);
Note:
See TracChangeset
for help on using the changeset viewer.
