- 积分
- 155
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-4-2
- 最后登录
- 1970-1-1
|
GrADS
系统平台: |
|
问题截图: |
- |
问题概况: |
站点插值,跟实况偏小,请问如何解决 |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
1 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 guarenyouji 于 2014-4-17 21:47 编辑
fortran.f
Program sta2grd
implicit none
character*8 stid
real lat,lon,rain,tim
integer nlev,flag
tim=0.0
nlev=1
flag=1
open(1,file='jiangshui.txt',status='old')
open(2,file='sta.grd',status='replace',form='binary')
10 read(1,*,end=100)stid,lat,lon,rain
write(2)stid,lat,lon,tim,nlev,flag,rain
goto 10
100 continue
close(1)
nlev=0
write(2)stid,lat,lon,tim,nlev,flag
close(2)
end
sta.ctl
dset G:\sta.grd
dtype station
stnmap G:\sta.map
TITLE grid data
UNDEF -9999.0
tdef 1 linear 06jul2011 1mo
VARS 1
p 0 99 rainfall data
ENDVARS
fortran
parameter(nx=5001,ny=5001)
real lat(ny),lon(nx)
real s(nx,ny)
open(1,file='G:\zhengli\grid.grd',form='binary')
lat(1)=18.0
lon(1)=100.0
do j=1,ny-1
lat(j+1)=lat(j)+0.01
enddo
do i=1,nx-1
lon(i+1)=lon(i)+0.01
enddo
do i=1,nx
do j=1,ny
s(i,j)=1
enddo
enddo
write(1) s
end
grid.ctl
dset G:\grid.grd
UNDEF -9999.0
title sample GRID Data
xdef 5001 linear 100 1
ydef 5001 linear 18 1
zdef 1 linear 500 1
tdef 1 linear 06jul2011 1mo
VARS 1
g 0 99 grid data
ENDVARS
gs
'reinit'
'open G:\grid.ctl'
'open G:\sta.ctl'
'set lon 100 130'
'set lat 25 38'
'set xlint 1'
'set ylint 1'
*'set mpdset jiangs'
'set grads off'
'set grid off'
'draw map'
'set gxout shaded'
'define a=oacres(g,p.2,0.18)'
'define a1=maskout(a,g-0.5)'
'define aa=smth9(a1)'
'set cmin 30'
'd aa'
'cbarn 1 0 4.5 3.0'
'enable print G:\rain.gmf'
'print'
'disable print'
;
|
|