Changeset 2890 in Sophya for trunk/SophyaProg/Tests/tswfits.cc
- Timestamp:
- Jan 9, 2006, 6:33:27 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/tswfits.cc
r2866 r2890 7 7 #include "histinit.h" 8 8 #include "dvlist.h" 9 // #include "datatable.h"10 // #include "swppfdtable.h"11 9 #include "fitsswapper.h" 12 10 #include "fiosinit.h" 11 #include "swfitsdtable.h" 13 12 14 13 void test_fdtable() ; … … 85 84 segd.Print(cout, 4, " "); 86 85 } 87 86 87 { 88 cout << "8/ Creation SwFitsDataTable sur myswtable.fits " << endl; 89 FitsInOutFile so("!myswtable.fits", FitsInOutFile::Fits_Create); 90 SwFitsDataTable dt(so, 16); 91 // define table columns 92 dt.AddFloatColumn("X0_f"); 93 dt.AddFloatColumn("X1_f"); 94 dt.AddDoubleColumn("X0X0pX1X1_d"); 95 cout << "8.b/ start fill " << endl; 96 // Fill the table 97 r_8 x[5]; 98 for(int i=0; i<63; i++) { 99 if (i < 5) cout << " DBG - i= " << i << endl; 100 x[0] = (i%9)-4.; x[1] = (i/9)-3.; x[2] = x[0]*x[0]+x[1]*x[1]; 101 dt.AddLine(x); 102 } 103 cout << "8.c/ End fill " << endl; 104 105 // Printing table info 106 cout << dt ; 107 } 88 108 cout << "============ FIN test_fdtable ======== ======= " << endl; 89 109 }
Note:
See TracChangeset
for help on using the changeset viewer.