Changeset 31016 for trunk/ippToPsps/src/Fits.c
- Timestamp:
- Mar 23, 2011, 9:53:44 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/src/Fits.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/Fits.c
r31010 r31016 6 6 * 7 7 * @author IfA 8 * Copyright 20 09Institute for Astronomy, University of Hawaii8 * Copyright 2011 Institute for Astronomy, University of Hawaii 9 9 */ 10 10 11 11 #include "Fits.h" 12 13 /** 14 Non-class method 15 16 Gets cfitsio type from string 17 */ 18 int Fits_getDataType(char *typename) { 19 20 if (!strncmp(typename, "TBYTE", 5)) return TBYTE; 21 if (!strncmp(typename, "TSHORT", 6)) return TSHORT; 22 if (!strncmp(typename, "TLONGLONG", 9)) return TLONGLONG; 23 if (!strncmp(typename, "TLONG", 5)) return TLONG; 24 if (!strncmp(typename, "TFLOAT", 6)) return TFLOAT; 25 if (!strncmp(typename, "TDOUBLE", 7)) return TDOUBLE; 26 if (!strncmp(typename, "TSTRING", 7)) return TSTRING; 27 28 psError(PS_ERR_IO, false, "* Fits: Don't understand data type '%s'", typename); 29 30 return 0; 31 } 12 32 13 33 /**
Note:
See TracChangeset
for help on using the changeset viewer.
