Changeset 17297 for trunk/psModules/src/imcombine/pmSubtractionStamps.c
- Timestamp:
- Apr 2, 2008, 3:57:59 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionStamps.c
r15789 r17297 86 86 switch (mode) { 87 87 case PM_SUBTRACTION_MODE_1: 88 case PM_SUBTRACTION_MODE_TARGET:89 88 maskVal |= PM_SUBTRACTION_MASK_FOOTPRINT_1; 90 89 break; … … 585 584 // Let pmSubtractionStampsSet take care of the rest of the assertions 586 585 587 const char *format = (mode == PM_SUBTRACTION_MODE_TARGET ? "%f %f %f" : "%f %f"); // Format of file 588 psArray *data = psVectorsReadFromFile(filename, format); 586 psArray *data = psVectorsReadFromFile(filename, "%f %f"); 589 587 if (!data) { 590 588 psError(PS_ERR_IO, false, "Unable to read stamps file %s", filename); … … 592 590 } 593 591 psVector *x = data->data[0], *y = data->data[1]; // Stamp positions 594 psVector *flux = (mode == PM_SUBTRACTION_MODE_TARGET ? data->data[2] : NULL); // Stamp fluxes595 592 596 593 // Correct for IRAF/FITS (unit-offset) positions to C (zero-offset) positions … … 598 595 psBinaryOp(y, y, "-", psScalarAlloc(1.0, PS_TYPE_F32)); 599 596 600 pmSubtractionStampList *stamps = pmSubtractionStampsSet(x, y, flux, image, subMask, region, footprint,597 pmSubtractionStampList *stamps = pmSubtractionStampsSet(x, y, NULL, image, subMask, region, footprint, 601 598 spacing, mode); 602 599 psFree(data);
Note:
See TracChangeset
for help on using the changeset viewer.
