Skip to content

Instantly share code, notes, and snippets.

@linktohack
Created April 19, 2013 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linktohack/5423605 to your computer and use it in GitHub Desktop.
Save linktohack/5423605 to your computer and use it in GitHub Desktop.
Load Binary Data
subroutine load_bin_data_1d_r(d, f)
implicit none
real*4, intent(out) :: d(:) ! array of binary data
character(*), intent(in) :: f ! chanel file name
integer*4 :: n
n = size(d)
open(51, file=trim(f), status='old', form='unformatted', &
access='direct', recl=n*4)
read(51, rec=1) d
close(51)
endsubroutine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment