search for: read_binary

Displaying 2 results from an estimated 2 matches for "read_binary".

2013 Apr 19
1
How to read a direct access file by connecting fortran with R ?
...is stored as a n_row*n_col matrix of elements kind=p) without reading all the preceding lines (i.e 1,2,..,row-1). Is there a function in R that can perform this task? To solve my issue, I tried without to call Fortran from R by doing the following steps: I) I wrote a subroutine in fortran called read_binary.f90 ************************************ Subroutine read_binary (n_col,row,img) integer*1 :: im1(n_col) integer*1 :: im2(n_col) integer*1 :: im2(n_col) open(10,file=binary_file,access=direct,action=read,status='old',recl=n_col*p) if(p==1) then read(10,rec=row)...
2012 Jun 12
1
Reading binary files
Hey guys, I am currently trying to read in a binary file using this helpful manual: http://www.ats.ucla.edu/stat/r/faq/read_binary.htm Reading binary files I also have the detailed format description from the developer. But somehow the reading of the file does still not work properly. The first entry in the file is the following, according to the manufacturer: "String containing 4 one-byte characters." The content...