- Timestamp:
- May 3, 2010, 8:45:22 AM (16 years ago)
- Location:
- branches/simmosaic_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simmosaic_branches
- Property svn:mergeinfo changed
-
branches/simmosaic_branches/ppSub/src
- Property svn:ignore
-
old new 13 13 ppSubErrorCodes.c 14 14 ppSubVersionDefinitions.h 15 ppSubConvolve
-
- Property svn:ignore
-
branches/simmosaic_branches/ppSub/src/ppSubReadoutSubtract.c
r24155 r27839 45 45 } 46 46 47 // XXX this should be replaced by SAVE options to the inConv and refConf pmFPAfiles48 #ifdef TESTING49 {50 pmReadoutMaskApply(minuend, maskVal);51 psFits *fits = psFitsOpen("minuend.fits", "w");52 psFitsWriteImage(fits, NULL, minuend->image, 0, NULL);53 psFitsClose(fits);54 }55 {56 pmReadoutMaskApply(subtrahend, maskVal);57 psFits *fits = psFitsOpen("subtrahend.fits", "w");58 psFitsWriteImage(fits, NULL, subtrahend->image, 0, NULL);59 psFitsClose(fits);60 }61 #endif62 63 47 // Do the actual subtraction 64 48 pmReadout *outRO = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT"); … … 87 71 pmFPA *outFPA = outFile->fpa; // Output FPA 88 72 if (!pmConceptsCopyFPA(outFPA, inFPA, true, true)) { 89 psError(P S_ERR_UNKNOWN, false, "Unable to copy concepts from input to output.");73 psError(PPSUB_ERR_CONFIG, false, "Unable to copy concepts from input to output."); 90 74 psFree(outRO); 91 75 psFree(view); … … 100 84 psFree(view); 101 85 if (!outHDU || !inHDU) { 102 psError(P S_ERR_UNKNOWN, false, "Unable to find HDU at FPA level to copy astrometry.");86 psError(PPSUB_ERR_PROG, true, "Unable to find HDU at FPA level to copy astrometry."); 103 87 return false; 104 88 } 105 89 if (!pmAstromReadWCS(outFPA, outChip, inHDU->header, 1.0)) { 106 psError( PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry from input FPA.");90 psError(psErrorCodeLast(), false, "Unable to read WCS astrometry from input FPA."); 107 91 return false; 108 92 } 109 93 if (!pmAstromWriteWCS(outHDU->header, outFPA, outChip, WCS_TOLERANCE)) { 110 psError( PS_ERR_UNKNOWN, false, "Unable to write WCS astrometry to output FPA.");94 psError(psErrorCodeLast(), false, "Unable to write WCS astrometry to output FPA."); 111 95 return false; 112 96 }
Note:
See TracChangeset
for help on using the changeset viewer.
