Changeset 1241 for trunk/psLib/src/image/psImageIO.c
- Timestamp:
- Jul 19, 2004, 12:01:19 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageIO.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageIO.c
r1073 r1241 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-0 6-23 23:00:15$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-07-19 22:01:19 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 203 203 204 204 205 intpsImageWriteSection(psImage* input, int col0,int row0,int z,206 char* extname, int extnum, char* filename)205 bool psImageWriteSection(psImage* input, int col0,int row0,int z, 206 char* extname, int extnum, char* filename) 207 207 { 208 208 int numCols = 0; … … 226 226 psError(__func__, "Can not write %s. Input psImage is NULL.", 227 227 filename); 228 return 1;228 return false; 229 229 } 230 230 … … 271 271 psError(__func__, "psImage datatype (%d) not supported. File %s not written.", 272 272 input->type.type,filename); 273 return 1;273 return false; 274 274 } 275 275 … … 281 281 psError(__func__,"Could not open file '%s'. FITS error:%s", 282 282 filename, fitsErr); 283 return 2;283 return false; 284 284 } 285 285 … … 292 292 psError(__func__,"Could not index to '%s' HDU for file %s. (%s)", 293 293 extname, filename, fitsErr); 294 return 3;294 return false; 295 295 } 296 296 } else { … … 302 302 psError(__func__,"extnum (%d) must not exceed number of HDUs (%d) by more than one.", 303 303 extnum, numHDUs); 304 return 3;304 return false; 305 305 } else if (numHDUs == extnum) { 306 306 createNewHDU = true; … … 311 311 psError(__func__,"Could not index to HDU #%d for file %s. (%s)", 312 312 extnum, filename, fitsErr); 313 return 3;313 return false; 314 314 } 315 315 } … … 322 322 psError(__func__,"Could not create file '%s'. (%s)", 323 323 filename, fitsErr); 324 return 5;324 return false; 325 325 } 326 326 createNewHDU = true; … … 338 338 psError(__func__,"Could not create image HDU in FITS file '%s'. %s", 339 339 filename, fitsErr); 340 return 5;340 return false; 341 341 } 342 342 … … 354 354 psError(__func__,"Could not create EXTNAME keyword in FITS file '%s'. (%s)", 355 355 filename, fitsErr); 356 return 5;356 return false; 357 357 } 358 358 } … … 373 373 psError(__func__, "Could not write image data to '%s'. (%s)", 374 374 filename, fitsErr); 375 return 6;375 return false; 376 376 } 377 377 … … 379 379 (void)fits_close_file(fptr, &status); 380 380 381 return 0;381 return true; 382 382 }
Note:
See TracChangeset
for help on using the changeset viewer.
