Changeset 1353 in Sophya for trunk/SophyaExt/FitsIOServer/fitsfile.h
- Timestamp:
- Dec 15, 2000, 11:58:21 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsfile.h
r1352 r1353 20 20 class FitsInFile; 21 21 class FitsOutFile; 22 22 23 24 25 class FitsKeyword 26 { 27 28 public: 29 30 FitsKeyword(); 31 FitsKeyword(string comment); 32 FitsKeyword(string keyname, string value, string comment); 33 void writeOnFits(fitsfile* ptr); 34 35 void Print(); 36 37 private: 38 39 char datatype_; 40 string keyname_; 41 double dvalue_; 42 int ivalue_; 43 string svalue_; 44 string comment_; 45 }; 46 47 23 48 24 49 // 25 50 //! Class for managing Interface for SOPHYA objects to FITS Format Files (uses cfitsio lib) 26 51 27 52 class FitsIOHandler { 28 53 29 54 … … 77 102 inline void firstImageOnPrimaryHeader(bool choice) {imageOnPrimary_=choice;} 78 103 inline int currentHeaderIndex() {return hdunum_;} 104 inline fitsfile* fitsfilePtr() {return fptr_;} 79 105 80 106 … … 107 133 int NbBlocks(); 108 134 static void GetBlockType(char flnm[], int hdunum, FitsExtensionType& typeOfExtension, int& naxis, vector<int>& naxisn, FitsDataType& dataType, DVList& dvl ); 109 void ReadHeader(int hdunum); 110 135 136 void ReadHeader(int hdunum); 137 bool hasKeyword(string keyw, int hdunum); 138 111 139 /*! \return a reference on a DVList containing the keywords from FITS file */ 112 140 inline const DVList& DVListFromFits() const { return dvl_;} … … 157 185 /*! \return true if the current header corresponds to a FITS ASCII or BINTABLE extension */ 158 186 inline bool IsFitsTable() const {return (hdutype_ == FitsExtensionType_ASCII_TBL || hdutype_ == FitsExtensionType_BINARY_TBL);} 187 188 159 189 160 190 … … 195 225 void GetSingleColumn(int_4* map, int nentries) const; 196 226 227 228 229 230 197 231 private : 198 232 … … 253 287 254 288 void makeHeaderBntblOnFits ( string fieldType, vector<string> Noms, int nentries, int tfields, DVList* dvl, string extname, vector<int> taille_des_chaines) ; 289 void appendInputHeader(FitsInFile& headerin, int hdunum); 290 void writeAppendedHeaderOnFits(); 291 void PrintHeaderToBeAppended(); 292 void insertCommentLineOnHeader(string comment); 293 void insertKeywordOnHeader(string keyname, double value, string comment); 255 294 void PutColToFits(int nocol, int nentries, r_8* donnees) const; 256 295 void PutColToFits(int nocol, int nentries, r_4* donnees) const; … … 277 316 278 317 DVList* dvlToPrimary_; /**< for transferring keywords when creating primary header */ 318 list<FitsKeyword> mots_cles_; 319 279 320 }; 280 321 … … 292 333 vector<string> cdata_; 293 334 vector<string> ColName_; 294 295 335 }; 296 336 297 337 338 339 340 298 341 } // Fin du namespace 299 342 300 301 343 #endif
Note:
See TracChangeset
for help on using the changeset viewer.