Created
April 19, 2013 22:17
-
-
Save linktohack/5423605 to your computer and use it in GitHub Desktop.
Load Binary Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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