- Timestamp:
- Aug 13, 2010, 12:20:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/psphot/src/psphotMagnitudes.c
r28905 r28911 259 259 psArrayAdd(job->args, 1, cells->data[j]); // sources 260 260 PS_ARRAY_ADD_SCALAR(job->args, maskVal, PS_TYPE_IMAGE_MASK); 261 PS_ARRAY_ADD_SCALAR(job->args, markVal, PS_TYPE_IMAGE_MASK); 261 262 262 263 if (!psThreadJobAddPending(job)) { … … 295 296 psArray *sources = job->args->data[0]; 296 297 psImageMaskType maskVal = PS_SCALAR_VALUE(job->args->data[1],PS_TYPE_IMAGE_MASK_DATA); 298 psImageMaskType markVal = PS_SCALAR_VALUE(job->args->data[2],PS_TYPE_IMAGE_MASK_DATA); 297 299 298 300 for (int i = 0; i < sources->n; i++) { … … 303 305 if (model == NULL) { 304 306 psTrace ("psphot", 3, "fail mag : no valid model"); 305 source->pixWeight = NAN; 307 source->pixWeightNotBad = NAN; 308 source->pixWeightNotPoor = NAN; 306 309 continue; 307 310 } 308 311 309 status = pmSourcePixelWeight (&source->pixWeight , model, source->maskObj, maskVal);312 status = pmSourcePixelWeight (&source->pixWeightNotBad, &source->pixWeightNotPoor, model, source->maskObj, maskVal, markVal); 310 313 if (!status) { 311 314 psTrace ("psphot", 3, "fail to measure pixel weight"); 312 source->pixWeight = NAN; 315 source->pixWeightNotBad = NAN; 316 source->pixWeightNotPoor = NAN; 313 317 continue; 314 318 }
Note:
See TracChangeset
for help on using the changeset viewer.
