- 积分
- 624
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-3-18
- 最后登录
- 1970-1-1

|

楼主 |
发表于 2013-5-2 14:50:50
|
显示全部楼层
topmad 发表于 2013-5-2 08:50
去掉感兴趣区域之外的的等值线 用掩膜功能 也就是maskout 不同的软件里面操作不同 你自己找一下
我参考论坛帖子的做法,用Meteoinfo做出GrADS maskout 文件,但是用GrADS一直提示出错,所以我写了个简化的gs如下:- 'reinit'
- 'open d:\paper\ave_grd.ctl'
- 'open d:\paper\canton.ctl'
- 'set mpdset pearl-river-delta'
- 'define a=oacres(mask.2,pcp.1,50,20,10,5,1)'
- 'd smth9(maskout(a,mask.2))'
- 'd pcp'
- ;
复制代码 ave_grd.ctl是数据描述文件,内容如下:
dset d:\paper\grd\year\02.grd
undef -9999.9
xdef 45 linear 109 0.25
ydef 25 linear 20 0.25
zdef 1 linear 0 1
tdef 1 linear 02Z01jan2000 3hr
vars 1
pcp 0 t,y,x precipitation rate
endvars
canton.ctl是maskout文件,内容如下:
DSET D:\PAPER\canton.dat
TITLE Mask data
UNDEF -9999
XDEF 45 LINEAR 109 0.25
YDEF 25 LINEAR 20 0.25
ZDEF 1 LINEAR 1 1
tdef 1 linear 02Z01jan2000 3hr
VARS 1
mask 0 99 background mask data
ENDVARS
GrADS运行后提示‘a’ not a variable or function name
第一次用oacres、smth9和maskout函数,不知道设置有没有错? |
|