Changeset 14520 for trunk/ppStack/src/ppStackCamera.c
- Timestamp:
- Aug 15, 2007, 4:18:51 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackCamera.c
r14404 r14520 40 40 psString weight = psMetadataLookupStr(&mdok, input, "WEIGHT"); // Name of weight map 41 41 42 float seeing = psMetadataLookupF32( NULL, input, "SEEING"); // Seeing FWHM43 if ( isnan(seeing)) {42 float seeing = psMetadataLookupF32(&mdok, input, "SEEING"); // Seeing FWHM 43 if (!mdok || isnan(seeing) || seeing == 0.0) { 44 44 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Component %s lacks SEEING of type F32", item->name); 45 45 psFree(iter); … … 47 47 } 48 48 49 float weighting = psMetadataLookupF32( NULL, input, "WEIGHTING"); // Relative weighting50 if ( isnan(weighting)) {49 float weighting = psMetadataLookupF32(&mdok, input, "WEIGHTING"); // Relative weighting 50 if (!mdok || isnan(weighting) || weighting == 0.0) { 51 51 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Component %s lacks WEIGHTING of type F32", item->name); 52 52 psFree(iter); … … 54 54 } 55 55 56 float scale = psMetadataLookupF32( NULL, input, "SCALE"); // Relative scale57 if ( isnan(scale)) {56 float scale = psMetadataLookupF32(&mdok, input, "SCALE"); // Relative scale 57 if (!mdok || isnan(scale) || scale == 0.0) { 58 58 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Component %s lacks SCALE of type F32", item->name); 59 59 psFree(iter);
Note:
See TracChangeset
for help on using the changeset viewer.
