Re: [R] Problem reading binaries created with fortran

2009-12-20 Thread kapo coulibaly
Duncan Murdoch helped me sort it out last Friday. Thanks to all who responded. On Fri, Dec 18, 2009 at 11:20 AM, Don MacQueen wrote: > However, source code is available at > http://water.usgs.gov/nrp/gwsoftware/modflow2005/modflow2005.html > so it would seem that the details are available. > >

Re: [R] Problem reading binaries created with fortran

2009-12-18 Thread Don MacQueen
However, source code is available at http://water.usgs.gov/nrp/gwsoftware/modflow2005/modflow2005.html so it would seem that the details are available. -Don At 4:35 PM -0500 12/17/09, kapo coulibaly wrote: Duncan, I couldn't find clear details about the way fortran writes the binaries. I was

Re: [R] Problem reading binaries created with fortran (More infos)

2009-12-17 Thread Duncan Murdoch
On 17/12/2009 4:30 PM, kapo coulibaly wrote: The structure of the file is clear (see below) the first line is made of integers and doubles with the fifth being a text string followed by arrays of double precision number.: int1 int2 double1 double2 text int3 int4 int5 (array of double) here is an

Re: [R] Problem reading binaries created with fortran

2009-12-17 Thread kapo coulibaly
Duncan, I couldn't find clear details about the way fortran writes the binaries. I was hoping someone here has done it before. But the hexView package seems like a great idea i'll give it a shot. Thanks a bunch On Thu, Dec 17, 2009 at 4:02 PM, Duncan Murdoch wrote: > On 17/12/2009 3:48 PM, kapo

Re: [R] Problem reading binaries created with fortran (More infos)

2009-12-17 Thread kapo coulibaly
The structure of the file is clear (see below) the first line is made of integers and doubles with the fifth being a text string followed by arrays of double precision number.: int1 int2 double1 double2 text int3 int4 int5 (array of double) here is an example of file: 1 1 1.0 1.0 "HEAD" 160 224 3

Re: [R] Problem reading binaries created with fortran

2009-12-17 Thread Duncan Murdoch
On 17/12/2009 3:48 PM, kapo coulibaly wrote: Is it possible to read fortran binaries with R? I tried unsucessfully and my understanding is that fortran write binaries with leading and trailing bytes. I get numbers but not the right ones. Thanks ps: the binary I'm interested in reading is a MODFL

Re: [R] Problem reading binaries created with fortran

2009-12-17 Thread Duncan Murdoch
On 17/12/2009 3:48 PM, kapo coulibaly wrote: Is it possible to read fortran binaries with R? I tried unsucessfully and my understanding is that fortran write binaries with leading and trailing bytes. I get numbers but not the right ones. Thanks ps: the binary I'm interested in reading is a MODFL

[R] Problem reading binaries created with fortran

2009-12-17 Thread kapo coulibaly
Is it possible to read fortran binaries with R? I tried unsucessfully and my understanding is that fortran write binaries with leading and trailing bytes. I get numbers but not the right ones. Thanks ps: the binary I'm interested in reading is a MODFLOW output with a mix of character, double and i