Changeset 824 for trunk/psLib/src/image/psImageIO.c
- Timestamp:
- Jun 1, 2004, 12:42:57 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageIO.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageIO.c
r817 r824 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-0 5-29 01:42:44$9 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-06-01 22:42:57 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 135 135 psImageRecycle(output,numCols,numRows,PS_TYPE_U8); 136 136 (void)fits_read_subset(fptr, TBYTE, firstPixel, lastPixel, increment, 137 NULL, output->data. v, &anynull, &status);137 NULL, output->data.V, &anynull, &status); 138 138 break; 139 139 case SHORT_IMG: 140 140 psImageRecycle(output,numCols,numRows,PS_TYPE_S16); 141 141 (void)fits_read_subset(fptr, TSHORT, firstPixel, lastPixel, increment, 142 NULL, output->data. v, &anynull, &status);142 NULL, output->data.V, &anynull, &status); 143 143 break; 144 144 case LONG_IMG: 145 145 psImageRecycle(output,numCols,numRows,PS_TYPE_S32); 146 146 (void)fits_read_subset(fptr, TINT, firstPixel, lastPixel, increment, 147 NULL, output->data. v, &anynull, &status);147 NULL, output->data.V, &anynull, &status); 148 148 break; 149 149 case FLOAT_IMG: 150 150 psImageRecycle(output,numCols,numRows,PS_TYPE_F32); 151 151 (void)fits_read_subset(fptr, TFLOAT, firstPixel, lastPixel, increment, 152 NULL, output->data. v, &anynull, &status);152 NULL, output->data.V, &anynull, &status); 153 153 break; 154 154 case DOUBLE_IMG: 155 155 psImageRecycle(output,numCols,numRows,PS_TYPE_F64); 156 156 (void)fits_read_subset(fptr, TDOUBLE, firstPixel, lastPixel, increment, 157 NULL, output->data. v, &anynull, &status);157 NULL, output->data.V, &anynull, &status); 158 158 break; 159 159 default: … … 323 323 324 324 325 if ( fits_write_subset(fptr, datatype, firstPixel, lastPixel, input->data. v, &status) != 0) {325 if ( fits_write_subset(fptr, datatype, firstPixel, lastPixel, input->data.V, &status) != 0) { 326 326 (void)fits_get_errstatus(status, fitsErr); 327 327 status = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
