search for: nrest

Displaying 1 result from an estimated 1 matches for "nrest".

Did you mean: rest
2012 Apr 13
2
Can't read a binary file
...read a binary file. Here is how the creator of the file described the code that would be needed in Fortran: "Every record has a return in fortran. The length of each record is nx*ny*4. To read you would use the following: nlayx = nx*ny*4 do iz=1,nz,4 read(binary file) var(1:nlayx) enddo nrest=mod(nx*ny*nz,nlayx) read(binary file) var(1:nrest)" The first value in the file should be 0.05, and all of the data values are real. Here is what I get (with similar answers using double): > v<-readBin("plotb.251", numeric(), size=4, n=1) > v [1] 1.614296e-39 > v<-...