Changeset 25027 for branches/pap/psLib/src/fits/psFits.c
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psLib/src/fits/psFits.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/psLib/src/fits/psFits.c
r21431 r25027 214 214 errorMsg = errorBuf; 215 215 # endif 216 psError (PS_ERR_IO, true, "Failed to delete a previously-existing file: %s", errorMsg); 217 fprintf (stderr, "errno: %d, %s, %s : %lx, %lx\n", thisErrno, errorMsg, errorBuf, (long int) errorMsg, (long int) errorBuf); 216 psError(PS_ERR_IO, true, "Failed to delete a previously-existing file (%s), error %d: %s", 217 name, thisErrno, errorMsg); 218 //fprintf(stderr, "errno: %d, %s, %s : %lx, %lx\n", thisErrno, errorMsg, errorBuf, (long int) errorMsg, (long int) errorBuf); 218 219 return NULL; 219 220 } … … 931 932 } 932 933 934 // use strncmp so that we can resolve the string valuves that cfitsio puts into headers (RICE_1 GZIP_1) 935 // into psFitsCompressionType 933 936 if (strcmp(string, "NONE") == 0) return PS_FITS_COMPRESS_NONE; 934 if (str cmp(string, "GZIP") == 0) return PS_FITS_COMPRESS_GZIP;935 if (str cmp(string, "RICE") == 0) return PS_FITS_COMPRESS_RICE;936 if (str cmp(string, "HCOMPRESS") == 0) return PS_FITS_COMPRESS_HCOMPRESS;937 if (str cmp(string, "PLIO") == 0) return PS_FITS_COMPRESS_PLIO;937 if (strncmp(string, "GZIP", 4) == 0) return PS_FITS_COMPRESS_GZIP; 938 if (strncmp(string, "RICE", 4) == 0) return PS_FITS_COMPRESS_RICE; 939 if (strncmp(string, "HCOMPRESS", 9) == 0) return PS_FITS_COMPRESS_HCOMPRESS; 940 if (strncmp(string, "PLIO", 4) == 0) return PS_FITS_COMPRESS_PLIO; 938 941 939 942 psWarning("Unable to identify compression type (%s) --- none set.", string);
Note:
See TracChangeset
for help on using the changeset viewer.
