- 积分
- 11107
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-9-5
- 最后登录
- 1970-1-1

|
发表于 2011-12-3 10:38:33
|
显示全部楼层
我觉得不是没有地图,是你的范围太小了,显示不出地图来,我用同样的方法差值画的降水就很好。
下面是画你的图的程序:
for 先把站点文件转化为二进制文件
program bintd
parameter (st=22) ! st means nums of station
character stid(st)*8
integer:: nflag,nlev
real lat(st),lon(st),std(st),tim
open(10,file='F:\test\station0208.txt')
open(20,file='F:\test\station0208.dat',form='binary')
do i=1,st
read(10,'(a4,f7.2,f8.2,f6.1)')stid(i),lat(i),lon(i),std(i)
write(*,*)stid(i),lat(i),lon(i),std(i)
pause
end do
close(10)
tim=0.0
nflag=1
nlev=1
do i=1,st
write(20)stid(i),lat(i),lon(i),tim,nlev,nflag,std(i)
end do
nlev=0
write(20)stid(22),lat(22),lon(22),tim,nlev,nflag
close(20)
end
生成相应的格点文件 wgrid.f90
program wgrid
! to get grids
real gtd(22,22)
! redefine the grids numbers when necessary
open(10,file='F:\test\wgrid.dat',form='binary')
do i=1,22
do j=1,22
gtd(i,j)=0
end do
end do
write(10)((gtd(i,j),i=1,22),j=1,22)
end
ctl 自己写
gs
'reinit'
'open F:/test/grid.ctl'
'open F:/test/station0208.ctl'
'enable print F:/test/station0208.gmf'
'set mpdset cnworld'
'set lon 109 110'
'set lat 18.1 18.7'
'set t 1'
'define tds=oacres(gtd,temp.2)'
**'set cint 0.5'
'set gxout shaded'
'd tds'
'set gxout contour'
'd tds'
'print'
'printim F:/test/td.gif white'
'disable print'
'reinit' |
|