Changeset 1143 in Sophya for trunk/SophyaExt/FitsIOServer/fitsfile.h
- Timestamp:
- Aug 25, 2000, 5:52:48 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsfile.h
r1136 r1143 58 58 opens a file 'flnm' 59 59 60 gets parameters in header (hdunum)60 gets parameters in extension-header (hdunum) 61 61 62 62 calls the method 'ReadFromFits' from the inherited object … … 125 125 static void printerror(int&) ; 126 126 static void printerror(int&,char* texte) ; 127 inline void InitNull() { cout << " init fitsfile " << endl;fptr_= NULL; hdutype_= 0; hdunum_ = 1;127 inline void InitNull() { fptr_= NULL; hdutype_= 0; hdunum_ = 1; 128 128 fits_status_ = 0;} 129 129 … … 150 150 // FitsInFile(char flnm[], int hdunum=0); 151 151 FitsInFile(char flnm[]); 152 ~FitsInFile() { cout << " destructeur FitsInFile " << endl; };152 ~FitsInFile() { ; }; 153 153 154 154 … … 170 170 */ 171 171 inline const DVList& DVListFromFits() const { return dvl_;} 172 173 /* get the keywords of primary header in a DVList */ 174 DVList DVListFromPrimaryHeader() const; 172 175 173 176 void moveToFollowingHeader(); … … 347 350 FitsOutFile(); 348 351 FitsOutFile(char flnm[], bool OldFile=false); 349 ~FitsOutFile() { cout << " destructeur FitsOutFile " << endl;};352 ~FitsOutFile() { ;}; 350 353 inline void InitNull() {imageOnPrimary_=false;} 351 354 … … 368 371 \param <naxisn> array containind sizes of the different dimensions 369 372 */ 370 void makeHeaderImageOnFits(char type, int nbdim, int* naxisn) ; 373 void makeHeaderImageOnFits(char type, int nbdim, int* naxisn, DVList &dvl) ; 374 371 375 372 376 /*! write double data from array 'map'on an IMAGE extension … … 391 395 392 396 /*! create an BINTABLE header on FITS file. 393 \param <fieldType> array containing characters denoting types of the different column (see method ColTypeFromFits) 397 \param <fieldType> array conta 398 ining characters denoting types of the different column (see method ColTypeFromFits) 394 399 \param <Noms> array of the names of columns 395 400 \param <nentries> number of data of each column … … 416 421 void putColToFits(int nocol, int nentries, char** donnees) const; 417 422 423 ///////////////////////////////////////////////////////////// 424 // methods for managing any type of FITS extension 425 //////////////////////////////////////////////////////// 426 427 428 /* put keywords from a DVList into the primary header of the fits-file */ 429 void DVListIntoPrimaryHeader(DVList& dvl) const; 430 431 432 418 433 private : 419 434 420 435 void writeSignatureOnFits() const; 421 436 void addKeywordsOfDVList(DVList& dvl) const; 422 437 423 438 bool imageOnPrimary_;
Note:
See TracChangeset
for help on using the changeset viewer.