Changeset 25027 for branches/pap/psModules/src/camera/pmFPAWrite.c
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/psModules
- Property svn:mergeinfo deleted
-
branches/pap/psModules/src/camera/pmFPAWrite.c
r23428 r25027 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 … … 724 741 } 725 742 if (!psFitsCompressionApply(fits, compress)) { 726 psError(PS_ERR_UNKNOWN, false, "Unable to set FITS compression to NONE");743 psError(PS_ERR_UNKNOWN, false, "Unable to restore FITS compression"); 727 744 psFree(compress); 728 745 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
