- 积分
- 1501
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-8-6
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!将arwpost输出结果(.dat文件)转化为txt文件的fortran程序!!!!!!!!!!!!!!
program main
implicit none
integer,parameter:: nx=250,ny=207,nz=19,nt=1
real,allocatable :: U(:,:)
integer :: i,j,t,jrec
allocate(U(nx,ny))
jrec = 0
open(101,file='D:/d01.dat',form='unformatted',access='direct',recl=nx*ny)
open(102,file='d01.txt')
do t=1,nt
jrec=jrec+1
read(101,rec=jrec)((U(i,j),i=1,nx),j=1,ny)
write(102,*)((u(i,j),i=1,nx),j=1,ny)
enddo
close(101)
close(102)
deallocate(U)
end
!!!!!!!!!!转化后地面水平风分量如图!!!!!!!!!!!!!!!!!
请问,数值明显不对吧,为什么会这样呢?多谢。
|
|