Changeset 15477 for trunk/psModules/src/camera/pmHDUGenerate.c
- Timestamp:
- Nov 6, 2007, 1:15:12 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmHDUGenerate.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmHDUGenerate.c
r15327 r15477 134 134 psMetadataItem *biassecItem = psMetadataLookup(cell->concepts, "CELL.BIASSEC"); // Bias sections 135 135 if (!biassecItem) { 136 psLogMsg(__func__, PS_LOG_WARN, "CELL.BIASSEC has not been initialised in cell --- " 137 "ignored.\n"); 136 psWarning("CELL.BIASSEC has not been initialised in cell --- ignored.\n"); 138 137 return false; 139 138 } … … 146 145 if (!mdok || (cellreaddir != 1 && cellreaddir != 2)) { 147 146 // Probably unnecessary, but just in case.... 148 ps LogMsg(__func__, PS_LOG_WARN,"CELL.READDIR is not set in cell --- ignored.\n");147 psWarning("CELL.READDIR is not set in cell --- ignored.\n"); 149 148 return false; 150 149 } … … 152 151 *readdir = cellreaddir; 153 152 } else if (*readdir != cellreaddir) { 154 ps LogMsg(__func__, PS_LOG_WARN,"CELL.READDIR does not match read direction for HDU --- ignored.\n");153 psWarning("CELL.READDIR does not match read direction for HDU --- ignored.\n"); 155 154 return false; 156 155 } … … 255 254 psMetadataItem *trimsecItem = psMetadataLookup(cell->concepts, "CELL.TRIMSEC"); // Item with trimsec 256 255 if (!trimsecItem || trimsecItem->type != PS_DATA_REGION) { 257 psLogMsg(__func__, PS_LOG_WARN, "CELL.TRIMSEC has not been initialised in cell --- " 258 "ignored.\n"); 256 psWarning("CELL.TRIMSEC has not been initialised in cell --- ignored.\n"); 259 257 continue; 260 258 } … … 264 262 if (!mdok || (cellreaddir != 1 && cellreaddir != 2)) { 265 263 // Probably unnecessary, but just in case.... 266 ps LogMsg(__func__, PS_LOG_WARN,"CELL.READDIR is not set in cell --- ignored.\n");264 psWarning("CELL.READDIR is not set in cell --- ignored.\n"); 267 265 continue; 268 266 } … … 270 268 readdir = cellreaddir; 271 269 } else if (readdir != cellreaddir) { 272 ps LogMsg(__func__, PS_LOG_WARN,"CELL.READDIR for cells within the HDU do not match!\n");270 psWarning("CELL.READDIR for cells within the HDU do not match!\n"); 273 271 cellreaddir = readdir; 274 272 } … … 282 280 if (readout->mask && 283 281 (readout->mask->numCols != image->numCols || readout->mask->numRows != image->numRows)) { 284 ps LogMsg(__func__, PS_LOG_WARN,"Image and mask have different sizes (%dx%d vs %dx%d)!\n",282 psWarning("Image and mask have different sizes (%dx%d vs %dx%d)!\n", 285 283 image->numCols, image->numRows, readout->mask->numCols, readout->mask->numRows); 286 284 } 287 285 if (readout->weight && 288 286 (readout->weight->numCols != image->numCols || readout->weight->numRows != image->numRows)) { 289 ps LogMsg(__func__, PS_LOG_WARN,"Image and weight have different sizes (%dx%d vs %dx%d)!\n",287 psWarning("Image and weight have different sizes (%dx%d vs %dx%d)!\n", 290 288 image->numCols, image->numRows, readout->weight->numCols, readout->weight->numRows); 291 289 } … … 318 316 319 317 if (previous != current) { 320 ps LogMsg(__func__, PS_LOG_WARN, "Images within the HDU are of different types "321 "(%x vs %x) --- promoting\n",previous, current);318 psWarning("Images within the HDU are of different types (%x vs %x) --- promoting\n", 319 previous, current); 322 320 return PS_MAX(previous, current); 323 321 } … … 336 334 if (source->numCols != region->x1 - region->x0 || source->numRows != region->y1 - region->y0) { 337 335 psString regionString = psRegionToString(*region); 338 ps LogMsg(__func__, PS_LOG_WARN,"Image size (%dx%d) does not match region (%s).\n",336 psWarning("Image size (%dx%d) does not match region (%s).\n", 339 337 source->numCols, source->numRows, regionString); 340 338 psFree(regionString); … … 475 473 476 474 if (biassecs->n != readout->bias->n) { 477 ps LogMsg(__func__, PS_LOG_WARN, "Number of bias sections (%ld) and number of biases (%ld)"478 " do not match.\n",biassecs->n, readout->bias->n);475 psWarning("Number of bias sections (%ld) and number of biases (%ld) do not match.\n", 476 biassecs->n, readout->bias->n); 479 477 } 480 478 psListIterator *biasIter = psListIteratorAlloc(readout->bias, PS_LIST_HEAD, false); // Iteratr
Note:
See TracChangeset
for help on using the changeset viewer.
