- 积分
- 454
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-4-23
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
这个之前大神给的程序 Program nc2txt
parameter (m=180,n=360,o=1)
dimension x(m,n,o)
open(1,file='sst.mnmean.dat',access='direct',form='binary',recl=n*m*o*4)
read(1,rec=1) (((x(i,j,k),j=1,n),i=1,m),k=1,o)
close(1)
open(2,file='123.txt')
do i=1,m
print*,i
do j=1,n
write(2,"(2f10.1,2x,f15.6)") -(i-1)*1.+180,(j)*1.,x(i,j,1)
enddo
enddo
close(2)
End program nc2txt
但是放在我这里有错
:\Text1.f90
D:\Text1.f90(3): error FOR3093: array bound is not integer scalar
Errors in declarations, no further processing for NC2TXT
Error executing fl32.exe.
Text1.obj - 1 error(s), 0 warning(s)
好心碎。。。。无法读取QAQ求指点迷津 {:eb303:}{:eb303:} |
|