Changeset 1209 in Sophya for trunk/SophyaExt/FitsIOServer/fitsfile.h
- Timestamp:
- Sep 29, 2000, 6:19:40 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsfile.h
r1193 r1209 18 18 { 19 19 int nbcols = dc + fc + ic + cc; 20 int maxName = names.size(); 21 if (nbcols != maxName) 22 { 23 cout << " WARNING: BnTblLine:: length of vector of column names not equal to total number of columns" << endl; 24 maxName = nbcols < maxName ? nbcols : maxName; 25 } 20 26 ColName_ = vector<string>(nbcols); 21 for (int k=0; k < nbcols; k++) ColName_ = names;27 for (int k=0; k < maxName; k++) ColName_[k] = names[k]; 22 28 if (dc >0) ddata_ = vector<double>(dc); 23 29 if (fc >0) fdata_ = vector<float>(fc); … … 25 31 if (cc >0) cdata_ = vector<string>(fc); 26 32 } 27 void Print() 33 34 bool sameFormat(const BnTblLine& btl) const 35 { 36 if (btl.ddata_.size() == ddata_.size() && btl.fdata_.size() == fdata_.size() && btl.idata_.size() == idata_.size() && btl.cdata_.size() == cdata_.size()) return true; 37 else return false; 38 } 39 40 void Print() 28 41 { 29 42 int k; 30 int compt = 0;31 43 cout << " ********* ligne ************* " << endl; 32 44 cout << " *** noms de variables " << endl; 33 for (k=0; k < compt +ColName_.size(); k++) cout << ColName_[k] << " ";45 for (k=0; k < ColName_.size(); k++) cout << ColName_[k] << " "; 34 46 cout << endl; 35 47 cout << " *** variables doubles " << endl; … … 162 174 virtual ~FitsFile(); 163 175 164 static string getErrStatus(int status);176 static string GetErrStatus(int status); 165 177 166 178 … … 210 222 211 223 static int NbBlocks(char flnm[]); 212 static void getBlockType(char flnm[], int hdunum, string& typeOfExtension, int& naxis, vector<int>& naxisn, string& dataType, DVList& dvl );224 static void GetBlockType(char flnm[], int hdunum, string& typeOfExtension, int& naxis, vector<int>& naxisn, string& dataType, DVList& dvl ); 213 225 214 226 … … 298 310 299 311 /*! 300 get the NoLine-th 'line' from the current BINTABLE extension on FITS file,312 Get the NoLine-th 'line' from the current BINTABLE extension on FITS file, 301 313 */ 302 314 void GetBinTabLine(int NoLine, double* ddata, float* fdata, int* idata, char 303 315 ** cdata) ; 304 316 /*! 305 get the NoLine-th 'line' from the current BINTABLE extension on FITS file,317 Get the NoLine-th 'line' from the current BINTABLE extension on FITS file, 306 318 */ 307 319 void GetBinTabLine(long NoLine, BnTblLine& ligne) ; 308 320 309 321 /*! 310 get the NoLine-th 'line' from the current BINTABLE extension on FITS file,322 Get the NoLine-th 'line' from the current BINTABLE extension on FITS file, 311 323 */ 312 324 void GetBinTabLine(int NoLine, float* fdata) ; … … 438 450 439 451 */ 440 void putImageToFits( int nbData, double* map) const;452 void PutImageToFits( int nbData, double* map) const; 441 453 442 454 /*! same as previous method with float data */ 443 void putImageToFits(int nbData, float* map ) const;455 void PutImageToFits(int nbData, float* map ) const; 444 456 445 457 /*! same as previous method with int data */ 446 void putImageToFits(int nbData, int* map) const;458 void PutImageToFits(int nbData, int* map) const; 447 459 448 460 … … 470 482 471 483 */ 472 void putColToFits(int nocol, int nentries, double* donnees) const;484 void PutColToFits(int nocol, int nentries, double* donnees) const; 473 485 474 486 /*! same as previous method with float data */ 475 void putColToFits(int nocol, int nentries, float* donnees) const;487 void PutColToFits(int nocol, int nentries, float* donnees) const; 476 488 477 489 /*! same as previous method with int data */ 478 void putColToFits(int nocol, int nentries, int* donnees) const;490 void PutColToFits(int nocol, int nentries, int* donnees) const; 479 491 480 492 /*! same as previous method with char* data */ 481 void putColToFits(int nocol, int nentries, char** donnees) const;482 483 void putBinTabLine(int NoLine, double* ddata, float* fdata, int* idata, char ** cdata) const;493 void PutColToFits(int nocol, int nentries, char** donnees) const; 494 495 void PutBinTabLine(long NoLine, BnTblLine& ligne) const; 484 496 485 497 … … 489 501 490 502 491 /* put keywords from a DVList into the primary header of the fits-file */503 /* Put keywords from a DVList into the primary header of the fits-file */ 492 504 void DVListIntoPrimaryHeader(DVList& dvl) const; 493 505
Note:
See TracChangeset
for help on using the changeset viewer.