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
This archive was generated by hypermail 2.1.8 : Wed Oct 06 2010 - 09:53:35 MDT