Changeset 27838 for branches/tap_branches/ppStack/src/ppStackPSF.c
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ppStack/src (modified) (1 prop)
-
ppStack/src/ppStackPSF.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/ppStack/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppStackVersionDefinitions.h 12 ppStackErrorCodes.c 13 ppStackErrorCodes.h
-
- Property svn:ignore
-
branches/tap_branches/ppStack/src/ppStackPSF.c
r25480 r27838 14 14 const psArray *psfs, const psVector *inputMask) 15 15 { 16 bool mdok = false; 17 16 18 #ifndef TESTING 17 19 // Get the recipe values … … 24 26 int psfOrder = psMetadataLookupS32(NULL, recipe, "PSF.ORDER"); // Spatial order for PSF 25 27 28 psString maskValStr = psMetadataLookupStr(&mdok, recipe, "MASK.VAL"); // Name of bits to mask going in 29 if (!mdok || !maskValStr) { 30 psError(PPSTACK_ERR_CONFIG, false, "Unable to find MASK.VAL in recipe"); 31 return false; 32 } 33 psImageMaskType maskVal = pmConfigMaskGet(maskValStr, config); // Bits to mask 34 26 35 for (int i = 0; i < psfs->n; i++) { 27 36 if (inputMask->data.U8[i]) { … … 32 41 33 42 // Solve for the target PSF 34 pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel, 35 psfOrder, psfOrder); 43 pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel, psfOrder, psfOrder, maskVal); 36 44 if (!psf) { 37 psError(P S_ERR_UNKNOWN, false, "Unable to determine output PSF.");45 psError(PPSTACK_ERR_PSF, false, "Unable to determine output PSF."); 38 46 return NULL; 39 47 } … … 42 50 pmPSF *psf = pmPSFBuildSimple("PS_MODEL_PS1_V1", 4.0, 4.0, 0.0, 1.0); 43 51 if (!psf) { 44 psError(P S_ERR_UNKNOWN, false, "Unable to build dummy PSF.");52 psError(PPSTACK_ERR_PSF, false, "Unable to build dummy PSF."); 45 53 return NULL; 46 54 }
Note:
See TracChangeset
for help on using the changeset viewer.
