read fortan binary file

From: Mehmet Coskun <mehmet.coskun_at_nyahnyahspammersnyahnyah>
Date: Wed Oct 06 2010 - 01:44:19 MDT

How can I read fortran binary file by NCL which has written below,

array type;
type cell1
  real(4),dimension(:),allocatable :: Var
end type cell1
type(cell1),dimension(:),allocatable :: daily
!allocate array
allocate(daily(1:365))
do i=1,365
allocate(daily(i)%Var(Nsta))
end do

do j=1,365
    open (unit=100, file=trim(filename), form='unformatted',
access='direct', status='unknown', recl=4*Nsta) ! 4 bytes /
cell (real 4)
     write (100,rec=k) daily(j)%Var(:)
end do

thank you

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Wed Oct 6 01:44:42 2010

This archive was generated by hypermail 2.1.8 : Wed Oct 06 2010 - 09:53:35 MDT