Changeset 2935 in Sophya for trunk/SophyaProg
- Timestamp:
- Apr 3, 2006, 3:10:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/tnfits.cc
r2866 r2935 19 19 /* SOPHYA - R. Ansari (LAL) - Sep 2005 */ 20 20 21 int tsfitsReadFile(string& flnm); 22 21 23 int main(int narg, char* arg[]) 22 24 { 23 25 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; 26 28 return 1; 27 29 } … … 31 33 FitsIOServerInit(); 32 34 InitTim(); 33 {35 if (narg > 1) { // Lecture fichier entree 34 36 string flnm = arg[1]; 35 37 cout << "1/=== Lecture fichier FITS : " << flnm << endl; … … 74 76 else encore = false; 75 77 } 76 } 78 } // ---- Fin lecture fichier entree 77 79 { 78 80 cout << "2/=== Ecriture BinTable dans toto.fits " << endl; … … 145 147 TArray<r_4> mxf(100,50,3); 146 148 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(); 147 153 TMatrix<int_4> mxi(60,30); 148 154 mxi = RegularSequence(); … … 159 165 fiosc >> mxf >> mxi ; 160 166 cout << mxf; 167 cout << " mxf.Info()= " << mxf.Info() << mxi; 161 168 cout << " mxi.Info()= " << mxi.Info() << mxi; 162 169 }
Note:
See TracChangeset
for help on using the changeset viewer.