Changeset 2967 for trunk/psLib/src/fileUtils/psFits.c
- Timestamp:
- Jan 12, 2005, 4:08:30 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fileUtils/psFits.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fileUtils/psFits.c
r2965 r2967 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-01-13 0 1:54:25$9 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-01-13 02:08:30 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 313 313 int psFitsGetExtNum(psFits* fits) 314 314 { 315 int hdunum; 316 315 317 if (fits == NULL) { 316 318 psError(PS_ERR_BAD_PARAMETER_NULL, true, … … 319 321 } 320 322 321 int hdutype = ANY_HDU; 322 int status = 0; 323 324 if (fits_get_hdu_type(fits->p_fd, &hdutype, &status) != 0) { 325 char fitsErr[MAX_STRING_LENGTH]; 326 fits_get_errstatus(status, fitsErr); 327 psError(PS_ERR_LOCATION_INVALID, true, 328 PS_ERRORTEXT_psFits_GET_EXTNUM_FAILED, 329 fits->filename, fitsErr); 330 return -1; 331 } 332 333 return hdutype; 323 324 return fits_get_hdu_num(fits->p_fd,&hdunum) - 1; 334 325 } 335 326
Note:
See TracChangeset
for help on using the changeset viewer.
