Changeset 13900 for trunk/psphot/src/psphotModelTest.c
- Timestamp:
- Jun 19, 2007, 4:40:44 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotModelTest.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotModelTest.c
r13035 r13900 3 3 4 4 // XXX consider this function : add more test information? 5 bool psphotModelTest (pmReadout *readout, psMetadata *recipe ) {5 bool psphotModelTest (pmReadout *readout, psMetadata *recipe, psMaskType maskVal, psMaskType mark) { 6 6 7 7 bool status; … … 94 94 95 95 // find the local sky 96 status = pmSourceLocalSky (source, PS_STAT_SAMPLE_MEDIAN, INNER );96 status = pmSourceLocalSky (source, PS_STAT_SAMPLE_MEDIAN, INNER, maskVal, mark); 97 97 if (!status) psAbort("pmSourceLocalSky error"); 98 98 … … 159 159 160 160 // define the pixels used for the fit 161 psImageKeepCircle (source->maskObj, xObj, yObj, RADIUS, "OR", PM_MASK_MARK);161 psImageKeepCircle (source->maskObj, xObj, yObj, RADIUS, "OR", mark); 162 162 163 163 char *fitset = psMetadataLookupStr (&status, recipe, "TEST_FIT_SET"); 164 164 if (status) { 165 status = psphotFitSet (source, model, fitset, fitMode );165 status = psphotFitSet (source, model, fitset, fitMode, maskVal); 166 166 exit (0); 167 167 } 168 168 169 status = pmSourceFitModel (source, model, fitMode );169 status = pmSourceFitModel (source, model, fitMode, maskVal); 170 170 171 171 // measure the source mags 172 172 pmSourcePhotometryModel (&fitMag, model); 173 pmSourcePhotometryAper (&obsMag, model, source->pixels, source->maskObj );173 pmSourcePhotometryAper (&obsMag, model, source->pixels, source->maskObj, maskVal); 174 174 fprintf (stderr, "ap: %f, fit: %f, apmifit: %f\n", obsMag, fitMag, obsMag - fitMag); 175 175 … … 178 178 179 179 // subtract object, leave local sky 180 pmModelSub (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL );180 pmModelSub (source->pixels, source->maskObj, model, PM_MODEL_OP_FULL, maskVal); 181 181 182 182 fprintf (stderr, "output parameters: \n");
Note:
See TracChangeset
for help on using the changeset viewer.
