Changeset 27004 for trunk/ppStack/src/ppStackThread.c
- Timestamp:
- Feb 18, 2010, 6:42:01 PM (16 years ago)
- Location:
- trunk/ppStack/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStackThread.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppStackVersionDefinitions.h 12 ppStackErrorCodes.c 13 ppStackErrorCodes.h
-
- Property svn:ignore
-
trunk/ppStack/src/ppStackThread.c
r26076 r27004 102 102 (FITS)->data[INDEX] = psFitsOpen(resolved, "r"); \ 103 103 if (!(FITS)->data[INDEX]) { \ 104 psError(P S_ERR_IO, false, "Unable to open file %s", (char*)(NAMES)->data[INDEX]); \104 psError(PPSTACK_ERR_IO, false, "Unable to open file %s", (char*)(NAMES)->data[INDEX]); \ 105 105 psFree(resolved); \ 106 106 return NULL; \ … … 152 152 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // Recipe 153 153 if (!recipe) { 154 psError(P S_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSTACK_RECIPE);154 psError(PPSTACK_ERR_CONFIG, false, "Unable to find recipe %s", PPSTACK_RECIPE); 155 155 return NULL; 156 156 } 157 157 int rows = psMetadataLookupS32(NULL, recipe, "ROWS"); // Number of rows to read per chunk 158 158 if (rows <= 0) { 159 psError(P S_ERR_BAD_PARAMETER_VALUE, false, "ROWS is not set in the recipe.");159 psError(PPSTACK_ERR_CONFIG, false, "ROWS is not set in the recipe."); 160 160 return NULL; 161 161 } … … 204 204 keepReading = true; 205 205 if (!pmReadoutReadChunk(ro, imageFits, 0, NULL, rows, overlap, config)) { 206 psError(PS_ERR_IO, false, "Unable to read chunk %d for file PPSTACK.INPUT %d", 206 psError(PPSTACK_ERR_IO, false, 207 "Unable to read chunk %d for file PPSTACK.INPUT %d", 207 208 numChunk, i); 208 209 *status = false; … … 214 215 keepReading = true; 215 216 if (!pmReadoutReadChunkMask(ro, maskFits, 0, NULL, rows, overlap, config)) { 216 psError(PS_ERR_IO, false, "Unable to read chunk %d for file PPSTACK.INPUT.MASK %d", 217 psError(PPSTACK_ERR_IO, false, 218 "Unable to read chunk %d for file PPSTACK.INPUT.MASK %d", 217 219 numChunk, i); 218 220 *status = false; … … 224 226 keepReading = true; 225 227 if (!pmReadoutReadChunkVariance(ro, varianceFits, 0, NULL, rows, overlap, config)) { 226 psError(P S_ERR_IO, false,228 psError(PPSTACK_ERR_IO, false, 227 229 "Unable to read chunk %d for file PPSTACK.INPUT.VARIANCE %d", 228 230 numChunk, i);
Note:
See TracChangeset
for help on using the changeset viewer.
