- 积分
- 304
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-8-27
- 最后登录
- 1970-1-1
|
GrADS
系统平台: |
win7 |
问题截图: |
|
问题概况: |
fortran运行的时候没有bug,但是运行过程中报错 |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
1 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 weiqiyun0049 于 2015-8-31 17:29 编辑
fortran程序参照气象家园教程的:
program transform
implicit none
Character*8 stid
real lat
real lon
real tim
integer nlev
integer flag
real var
tim=0.0
nlev=1
flag=0
open(1,file='transform.txt',status='old')
open(2,file='result.grd',status='replace',form='binary')
read(1,*)
read(1,*)
10 read(1,*,end=100)stid,lon,lat,var
write(2)stid,lat,lon,tim,nlev,flag,var
goto 10
100 continue
close(1)
nlev=0
write(2)stid,lat,lon,tim,nlev,flag
close(2)
end program transform
|
|