Changeset 867 in Sophya for trunk/SophyaExt/FitsIOServer


Ignore:
Timestamp:
Apr 10, 2000, 5:49:18 PM (25 years ago)
Author:
ansari
Message:

impressions inutiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsfile.cc

    r861 r867  
    241241  void FitsFile::GetBinTabFCol(double* valeurs,int nentries, int NoCol) const
    242242    {
    243       cout << "entree getbintablefcol double" << endl;
    244243      int status= 0;
    245244      int DTYPE;
     
    254253      int    anull;
    255254      float dnull= 0.;
    256       cout << " avant lecture  colonne, nels= " << nels << endl;
    257255      fits_read_col(fptr_,TDOUBLE,NoCol+1,1,1,nels,&dnull,valeurs,
    258256                            &anull,&status);
    259       cout << "  colonne lue" << endl;
    260257      if( status ) printerror( status,"erreur lecture de colonne" );
    261258    }
     
    263260  void FitsFile::GetBinTabFCol(float* valeurs,int nentries, int NoCol) const
    264261    {
    265       cout << "entree getbintablefcol float" << endl;
    266262      int status= 0;
    267263      int DTYPE;
     
    282278  void FitsFile::GetBinTabFCol(int* valeurs,int nentries, int NoCol) const
    283279    {
    284       cout << "entree getbintablefcol int" << endl;
    285280      int status= 0;
    286281      int DTYPE;
     
    298293                            &anull,&status);
    299294      if( status ) printerror( status,"erreur lecture de colonne" );
    300       cout << " tableau d'entiers relu: " << endl;
    301       for (int ijk=0; ijk<nels;ijk++) cout << valeurs[ijk] << endl;
    302295    }
    303296  void FitsFile::GetBinTabFCol(char** valeurs, int nentries, int NoCol) const
    304297    {
    305       cout << "entree getbintablefcol string" << endl;
    306298      int status= 0;
    307299      int DTYPE;
     
    312304          throw IOExc("FitsFile::GetBinTabFCol, tentative de lecture non float");
    313305        }
    314       cout << " repeat= " << repeat << " width= " << width << endl;
    315306      long nels=nentries;
    316307      // no checking for undefined pixels
     
    319310      long frow=1;
    320311      long felem=1;
    321       cout << " nb elements a lire" << nels << endl;
    322       cout << " taille element tableau " << strlen(valeurs[0]) << endl;
    323       cout << " numero de colonne a lire: " << NoCol+1 << endl;
    324312      fits_read_col(fptr_,TSTRING,NoCol+1,frow,felem,nels,cnull,valeurs,
    325313                    &anull,&status);
    326314      if( status ) printerror( status,"erreur lecture de colonne" );
    327       cout << " fin lecture chaines" << endl;
    328315    }
    329316int  FitsFile::NbColsFromFits() const
     
    458445          taille_des_chaines_.push_back(width);
    459446          rept/=width;
    460           cout << " j'ai lu  taille_des_chaines= " << width << " rept= " << rept << endl;
    461447          break;
    462448        default :
     
    466452      //    nentries = max(nentries, nrows_*rept);
    467453      repeat_.push_back(rept);
    468       cout << " getparam: repeat= " << repeat_[ii] << endl;
    469454    }
    470455  // get number of keywords
     
    525510        }
    526511    }
    527   cout << " fin lecture du dvlist : " << endl;
    528   dvl_.Print();
     512  //  dvl_.Print();
    529513}
    530514void FitsFile::makeHeaderBntblOnFits( char* fieldType, char** Noms, int nentries, int tfields, DVList &dvl, char* extname, vector<int> taille_des_chaines) const
    531515{
    532   cout << " entree put_column_bntbl " << endl;
    533516  int status = 0;
    534517  long nrows;
    535   cout << " nombre de types: " << strlen(fieldType) << endl;
    536518  if (strlen(fieldType) != tfields)
    537519    {
     
    574556          else strcpy(format,"1024");
    575557        }
    576       cout << " en ecriture fits : nrows= " << nrows << endl;
    577       cout << " fitsfile : format= " << format << endl;
    578558      strncat(format,&fieldType[k],1);
    579559      if (fieldType[k] == 'A')
     
    581561          strcat(format,largeur);
    582562        }
    583       cout << " fitsfile : format= " << format << endl;
    584563      ttype[k]= new char[FLEN_VALUE];
    585564      strcpy(ttype[k],Noms[k]);
     
    596575  // so the NULL pointer is given for the tunit parameters.
    597576  nrows=0;
    598       cout << " en ecriture fits : nrows avant create = " << nrows << endl;
    599577  fits_create_tbl(fptr_,BINARY_TBL,nrows,tfields,ttype,tform,
    600578                  NULL,extn,&status);
     
    612590  //
    613591  // get names and values from the join DVList object
    614   cout << " dvlist en ecriture..." << endl;
    615   dvl.Print();
     592  //  dvl.Print();
    616593  DVList::ValList::const_iterator it;
    617594  for(it = dvl.Begin(); it != dvl.End(); it++)
     
    621598      strncpy(keyname,(*it).first.substr(0,64).c_str(),10);
    622599      char comment[FLEN_COMMENT];
    623       cout << " keyname: " << keyname << " keytype: " << keytype << endl;
    624600      switch (keytype)
    625601        {
     
    629605            strcpy(comment,"I entier");
    630606            fits_write_key(fptr_,TINT,keyname,&ival,comment,&status);
    631             cout << " keyname " << keyname << " = " << ival << " ecrit " << endl;
    632607            break;
    633608          }
     
    637612            strcpy(comment,"D double");
    638613            fits_write_key(fptr_,TDOUBLE,keyname,&dval,comment,&status);
    639             cout << " keyname " << keyname << " = " << dval << " ecrit " << endl;
    640614            break;
    641615          }
     
    646620            strcpy(comment,"S character string");
    647621            fits_write_key(fptr_,TSTRING,keyname,&strval,comment,&status);
    648             cout << " keyname " << keyname << " = " << strval << " ecrit " << endl;
    649622            break;
    650623          }
     
    653626    }
    654627
    655   cout << " fitsfile: le dvlist est ecrit" << endl;
    656628}
    657629
     
    663635  if( status ) printerror(status,"putColToFits: le movabs a foire");
    664636  fits_get_hdu_type(fptr_, &hdutype, &status);
    665   if(hdutype != ASCII_TBL && hdutype != BINARY_TBL)
    666     {
    667       cout << " hdunum= " << hdunum_ << " hdutype= " << hdutype << endl;
    668   //   throw IOExc("FitsFile::putColToFits, this HDU is not an ASCII table nor a binary table");
    669     }
     637    if(hdutype != ASCII_TBL && hdutype != BINARY_TBL)
     638        {
     639            cout << " hdunum= " << hdunum_ << " hdutype= " << hdutype << endl;
     640     throw IOExc("FitsFile::putColToFits, this HDU is not an ASCII table nor a binary table");
     641          }
    670642  //  if(hdutype == ASCII_TBL && nocol>0)
    671643  //  {
Note: See TracChangeset for help on using the changeset viewer.