Changeset 1073 for trunk/psLib/src/image/psImageIO.c
- Timestamp:
- Jun 23, 2004, 1:00:17 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageIO.c (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageIO.c
r997 r1073 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-06- 11 03:45:07$9 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-06-23 23:00:15 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 19 19 #include "psImageIO.h" 20 20 #include "psError.h" 21 #include "psMemory.h" 21 22 22 23 psImage* psImageReadSection(psImage* output, int col, int row, int numCols, … … 39 40 if (filename == NULL) { 40 41 psError(__func__,"Must specify filename; it can not be NULL."); 41 ps ImageFree(output);42 psFree(output); 42 43 return NULL; 43 44 } … … 49 50 psError(__func__,"Could not open file '%s'. (%s)", 50 51 filename, fitsErr); 51 ps ImageFree(output);52 psFree(output); 52 53 return NULL; 53 54 } … … 61 62 psError(__func__,"Could not index to '%s' HDU for file %s. (%s)", 62 63 extname, filename, fitsErr); 63 ps ImageFree(output);64 psFree(output); 64 65 return NULL; 65 66 } … … 71 72 psError(__func__,"Could not index to HDU #%d for file %s. (%s)", 72 73 extnum, filename, fitsErr); 73 ps ImageFree(output);74 psFree(output); 74 75 return NULL; 75 76 } … … 83 84 psError("Could not determine image data type of '%s'. (%s)", 84 85 filename, fitsErr); 85 ps ImageFree(output);86 psFree(output); 86 87 return NULL; 87 88 } … … 94 95 psError("Could not determine dimensions of '%s'. (%s)", 95 96 filename,fitsErr); 96 ps ImageFree(output);97 psFree(output); 97 98 return NULL; 98 99 } … … 104 105 psError("Dimensions of '%s' are not supported (NAXIS=%i).", 105 106 filename, nAxis); 106 ps ImageFree(output);107 psFree(output); 107 108 return NULL; 108 109 } … … 115 116 psError("Could not determine image size of '%s'. (%s)", 116 117 filename,fitsErr); 117 ps ImageFree(output);118 psFree(output); 118 119 return NULL; 119 120 } … … 181 182 psError(__func__,"Unsupported bitpix value (%d) in FITS file %s.", 182 183 bitPix,filename); 183 ps ImageFree(output);184 psFree(output); 184 185 return NULL; 185 186 } … … 187 188 if (fits_read_subset(fptr, fitsDatatype, firstPixel, lastPixel, increment, 188 189 NULL, output->data.V[0], &anynull, &status) != 0) { 189 ps ImageFree(output);190 psFree(output); 190 191 (void)fits_get_errstatus(status, fitsErr); 191 192 status = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
