Changeset 573 in Sophya for trunk/SophyaProg/Tests/fitsioImage.cc


Ignore:
Timestamp:
Nov 10, 1999, 5:30:50 PM (26 years ago)
Author:
ansari
Message:

ajout de tests

File:
1 edited

Legend:

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

    r476 r573  
    1414  // A faire au debut de main()
    1515  PeidaInit();
    16   ImageI4  img(20, 10);
    17   int_4 compt=0;
     16  ImageR4  img(20, 10);
     17  r_4 compt=0;
    1818  for(int i=0; i<20; i++)
    1919    {
    2020      for(int j=0; j<10; j++)
    2121        {
    22           compt+=1;
    23           img(i,j) =compt;
     22          compt+=1.;
     23          img(i,j) =compt+0.6;
    2424    }
    2525    }
     
    2929  FitsIoServer fserv;
    3030  fserv.save(img,"image.fits");
    31   ImageR4  img2(20, 10);
     31  ImageI4  img2(20, 10);
    3232  fserv.load(img2,"image.fits");
    3333  img2.Print();
Note: See TracChangeset for help on using the changeset viewer.