Changeset 24768 for trunk/psModules/src/camera/pmFPAWrite.c
- Timestamp:
- Jul 12, 2009, 12:51:29 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAWrite.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAWrite.c
r23428 r24768 160 160 psArray **imageArray = appropriateImageArray(hdu, type); // Array of images in the HDU 161 161 162 // XXX detect missing variance & mask images... 163 162 164 // Generate the HDU if needed --- this is required after a pmFPACopy, or similar, which does not 163 165 // generate the HDU, but only copies the structure. 164 if (!blank && !hdu->blankPHU && !*imageArray && (!pmHDUGenerateForCell(cell) || !*imageArray)) { 165 psError(PS_ERR_UNKNOWN, false, "Unable to generate HDU for cell --- likely programming error."); 166 return false; 166 if (!blank && !hdu->blankPHU && !*imageArray) { 167 if (!pmHDUGenerateForCell(cell)) { 168 psError(PS_ERR_UNKNOWN, false, "Unable to generate HDU for cell --- likely programming error."); 169 return false; 170 } 171 if (!*imageArray) { 172 if (type == FPA_WRITE_TYPE_IMAGE) { 173 psError(PS_ERR_UNKNOWN, false, "Expected to write an image, but it is missing...programming error?."); 174 return false; 175 } 176 if (type == FPA_WRITE_TYPE_MASK) { 177 psWarning("No mask image for this cell; skipping"); 178 } 179 if (type == FPA_WRITE_TYPE_VARIANCE) { 180 psWarning("No variance image for this cell; skipping"); 181 } 182 return true; 183 } 167 184 } 168 185
Note:
See TracChangeset
for help on using the changeset viewer.
