Changeset 2935 in Sophya for trunk/SophyaProg


Ignore:
Timestamp:
Apr 3, 2006, 3:10:55 PM (19 years ago)
Author:
ansari
Message:

petites modifs/correction dans le programme de test FITS , Reza 3 Avril 2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Tests/tnfits.cc

    r2866 r2935  
    1919/*  SOPHYA - R. Ansari (LAL)  -   Sep 2005           */
    2020
     21int tsfitsReadFile(string& flnm);
     22
    2123int main(int narg, char* arg[])
    2224{
    2325  cout << " ---- Programme tnfits - Test classes NFits --- " << endl;
    24   if (narg < 2) {
    25     cout << " Erreur Argument / Usage : tnfits FitsFileName " << endl;
     26  if ( (narg > 1) && (strcmp(arg[1],"-h")==0) ) {
     27    cout << " Usage : tnfits [InputFitsFileName] " << endl;
    2628    return 1;
    2729  }
     
    3133    FitsIOServerInit();
    3234    InitTim();
    33     {
     35    if (narg > 1) {   // Lecture fichier entree
    3436      string flnm = arg[1];
    3537      cout << "1/=== Lecture fichier FITS : " << flnm << endl;
     
    7476        else encore = false;
    7577      }
    76     }
     78    }  // ---- Fin lecture fichier entree
    7779    {
    7880      cout << "2/=== Ecriture BinTable dans toto.fits  " << endl;
     
    145147      TArray<r_4> mxf(100,50,3);
    146148      mxf = RegularSequence(0., 0.2);
     149      mxf.Info()["info1"] = "info1: TArray<r_4>";
     150      mxf.Info()["info2"] = "info2: (100,50,3)";
     151      mxf.Info()["info3 "] = "info3: mot-cle-avec-blanc";
     152      cout << mxf.Info();
    147153      TMatrix<int_4> mxi(60,30);
    148154      mxi = RegularSequence();
     
    159165      fiosc >> mxf >> mxi ;
    160166      cout << mxf;
     167      cout << " mxf.Info()= " << mxf.Info() << mxi;
    161168      cout << " mxi.Info()= " << mxi.Info() << mxi;
    162169    }
Note: See TracChangeset for help on using the changeset viewer.