Changeset 27838 for branches/tap_branches/ppSub/src/ppSubVarianceRescale.c
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/ppSub/src
- Property svn:ignore
-
old new 13 13 ppSubErrorCodes.c 14 14 ppSubVersionDefinitions.h 15 ppSubConvolve
-
- Property svn:ignore
-
branches/tap_branches/ppSub/src/ppSubVarianceRescale.c
r25374 r27838 35 35 int num = psMetadataLookupS32(&mdok, recipe, "RENORM.NUM"); 36 36 if (!mdok) { 37 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "RENORM.NUM is not set in the recipe");37 psError(PPSUB_ERR_ARGUMENTS, true, "RENORM.NUM is not set in the recipe"); 38 38 return false; 39 39 } 40 40 float minValid = psMetadataLookupF32(&mdok, recipe, "RENORM.MIN"); 41 41 if (!mdok) { 42 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "RENORM.MIN is not set in the recipe");42 psError(PPSUB_ERR_ARGUMENTS, true, "RENORM.MIN is not set in the recipe"); 43 43 return false; 44 44 } 45 45 float maxValid = psMetadataLookupF32(&mdok, recipe, "RENORM.MAX"); 46 46 if (!mdok) { 47 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "RENORM.MAX is not set in the recipe");47 psError(PPSUB_ERR_ARGUMENTS, true, "RENORM.MAX is not set in the recipe"); 48 48 return false; 49 49 } … … 54 54 pmReadout *readout = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT"); // Output image 55 55 56 if (!readout->variance) { 57 // Nothing to renormalise 58 psWarning("Renormalisation of the variance requested, but no variance provided."); 59 return true; 60 } 61 56 62 return pmReadoutVarianceRenormalise(readout, maskBad, num, minValid, maxValid); 57 63 }
Note:
See TracChangeset
for help on using the changeset viewer.
