#573 readf errors

v1.0 (example)
closed-fixed
None
5
2013-10-24
2013-10-09
Joanna
No

Considering the following test.dat:

234.123 231.2 54.3
5432.4 543.
33.4 444.22 3321.

Now I attempt to read it:

GDL> openr,unit,'test.dat',/get_lun
GDL> foo = dblarr(5)
GDL> readf,unit,foo
GDL> readf,unit,foo2,foo3,foo4
GDL> print,foo2,foo3,foo4
5432.40 543.000 33.4000
GDL> print,foo
234.12300 231.20000 54.300000 5432.4000 543.00000

What seems to be happening is that readf correctly reads 5 pieces of data into foo, but then the second readf starts from line 2 instead of line 3. This happens even reading long arrays that take up multiple lines. The next readf still starts at line2.

I am using the current cvs checked out today on ubuntu 13.04, using the following cmake command:

cmake ../. -DMAGICK=OFF -DNETCDF=OFF

Thanks,
Joanna

Discussion

  • giloo

    giloo - 2013-10-21

    I confirm!
    Rats!

     
  • Marc Schellens

    Marc Schellens - 2013-10-23
    • status: open --> closed-fixed
    • assigned_to: Marc Schellens
     
  • Marc Schellens

    Marc Schellens - 2013-10-23

    Fixed in the CVS.

     
  • Alain C.

    Alain C. - 2013-10-24

    I included this case into "test_readf.pro" in the testsuite

    Alain

     

Log in to post a comment.