- 积分
- 232
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-8-30
- 最后登录
- 1970-1-1
|
发表于 2014-2-24 15:06:44
|
显示全部楼层
本帖最后由 小英子 于 2014-2-24 16:00 编辑
qxtlyf 发表于 2014-2-24 06:47
我的数据、程序、说明
谢谢哈,用了你的换了xp的可以运行的出结果了,可能原来的是4.0版本的问题。原来的编译过了,但是运行不出结果。还有想向您请教一下,如果文件头是3行的资料,怎样修改输入、输出部分?
diamond 4 2014022108-2120_EC
2014 02 21 08 12 0
0.250000 -0.250000 60.000000 150.000000 60.000000 -10.000000 361 281 1.000000 -100.000000 88.000000 1.000000 0.000000
读文件的时候我改为:
!----------------------------------------------------
! Open data file and allocate variables
!----------------------------------------------------
inquire (file=finp,exist=ftest)
if(ftest)then
open(10,file=finp,status='old',iostat=error)
else
write(*,*)'Input file not found: ',finp
stop
end if
read(10,*) ctemp,ctemp,desc
write(*,'(A)') desc
read(10,*) iyear,imonth,iday,ihour,phour,level
write(*,*) iyear,imonth,iday,ihour,phour,level
read(10,*) xdelt,ydelt,xmin,xmax,ymin,ymax,xnum,ynum,ctemp&
,ctemp,ctemp,ctemp,ctemp
write(*,*) xdelt,ydelt,xmin,xmax,ymin,ymax,xnum,ynum,ctemp&
,ctemp,ctemp,ctemp,ctemp
...............................
但是还是不行!
|
|