Changeset 1300 in Sophya for trunk/SophyaExt/FitsIOServer/fitsfile.h
- Timestamp:
- Nov 8, 2000, 11:02:58 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsfile.h
r1246 r1300 60 60 }; 61 61 enum FitsDataType { 62 FitsDataType_NULL, 62 63 FitsDataType_double, 63 64 FitsDataType_float, 64 65 FitsDataType_int, 65 66 FitsDataType_char, 66 FitsDataType_ASCII 67 FitsDataType_ASCII, 67 68 }; 68 69 … … 72 73 inline int statusF() const { return fits_status_;} 73 74 inline void firstImageOnPrimaryHeader(bool choice) {imageOnPrimary_=choice;} 75 inline int currentHeaderIndex() {return hdunum_;} 74 76 75 77 … … 81 83 inline void InitNull() {fptr_ = NULL; hdutype_= 0; hdunum_ = 0; 82 84 fits_status_ = 0; imageOnPrimary_ = true;} 83 84 85 fitsfile *fptr_; /**< pointer to the FITS file, defined in fitsio.h */ 85 86 int hdutype_; /**< image or bintable ? */ … … 102 103 static int NbBlocks(char flnm[]); 103 104 static void GetBlockType(char flnm[], int hdunum, FitsExtensionType& typeOfExtension, int& naxis, vector<int>& naxisn, FitsDataType& dataType, DVList& dvl ); 104 void Read FInit(int hdunum);105 void ReadHeader(int hdunum); 105 106 106 107 /*! \return a reference on a DVList containing the keywords from FITS file */ … … 139 140 inline int nbOfImageData() const { return nbData_; } 140 141 142 /*! \return data type of the current IMAGE extension */ 143 inline FitsFile::FitsDataType ImageType() const {return imageDataType_;} 141 144 142 145 … … 155 158 vector<int>& repeat, 156 159 vector<string>& noms, 157 vector< char>& types,160 vector<FitsDataType>& types, 158 161 vector<int>& taille_des_chaines); 159 charColTypeFromFits(int nocol) const;162 FitsDataType ColTypeFromFits(int nocol) const; 160 163 string ColNameFromFits(int nocol) const; 161 164 int ColStringLengthFromFits(int nocol) const; … … 188 191 void getHeader(); 189 192 static void KeywordsIntoDVList(fitsfile* fileptr, DVList& dvl, int hdunum); 190 static void GetImageParameters (fitsfile* fileptr, int& bitpix,int& naxis,vector<int>& naxisn);191 192 int bitpix_; /**< fits-Image parameter*/193 static void GetImageParameters (fitsfile* fileptr,FitsDataType& dataType,int& naxis,vector<int>& naxisn); 194 195 FitsDataType imageDataType_; /**< fits-Image parameter (bitpix)*/ 193 196 int naxis_; /**< fits-Image parameter */ 194 197 vector<int> naxisn_; /**< fits-Image parameters : sizes of dimensions */ … … 198 201 int nbcols_; /**< Bintable parameter */ 199 202 vector<string> noms_; /**< Bintable parameter: column names */ 200 vector< char> types_; /**< Bintable parameters: types of columns (D: double, E: float, I: integers, A: char*) */203 vector<FitsDataType> types_; /**< Bintable parameters: types of columns (D: double, E: float, I: integers, A: char*) */ 201 204 DVList dvl_; /**< DVList for transferring keywords */ 202 205 vector<int> taille_des_chaines_; /**< Bintable parameters: length of the char* variables */
Note:
See TracChangeset
for help on using the changeset viewer.