- 积分
- 2304
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-12-13
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 我是彤-Tina 于 2018-2-1 15:40 编辑
在用GRADS画北半球极地投影的时候,发现图中红色框内的等值线出现断节的问题。搜了家园的很多帖子,感觉应该是2.5*2.5格点数据第144个格点是357.5,不是360?但是不知道怎么办了。。
然后现在大概可能因为这个问题所以画出来的图也不是正圆形。
求助各位大佬,怎么样才能解决图中数据等值线断节的问题?
不画shaded的时候,等值线是正常可以画出来的!
以下是CTL:
- dset E:\hecheng\chun\result\hgt1000-chun.grd
- title 1000 hpa
- undef -9.9621e+33
- xdef 144 linear 0 2.5
- ydef 73 linear -90 2.5
- zdef 1 levels 1000
- tdef 1 linear 1sep1961 1yr
- vars 3
- strong 1 99
- jpq 1 99
- stq 1 99
- endvars
复制代码
然后是GS
- 'reinit'
- 'open E:\hecheng\chun\result\HECHENG.ctl'
- *'set grid on 1'
- 'set grads off'
- 'set map 1 1 5'
- 'set mproj nps'
- 'set frame circle'
- 'set lon -90 270'
- 'set lat 0 90'
- 'set mpdset cnriver lowres'
- 'run D:\tools\colors.gs'
- 'set gxout shaded'
- 'set clevs -8 -4 -2 -1 0 1 2 4 8'
- 'd smth9(jpq)'
- 'set gxout contour '
- 'set ccolor 1'
- 'd smth9(strong)'
- 'xcbar 2 9 0.2 0.4 -line on'
- 'set strsiz 0.15'
- 'q w2xy 90 -3'
- x1=subwrd(result,3);y1=subwrd(result,6)
- 'set string 1 c 8 0'
- 'draw string 'x1' 'y1' 90E'
- 'q w2xy 180 -3'
- x2=subwrd(result,3);y2=subwrd(result,6)
- 'set string 1 l 8 0'
- 'draw string 'x2' 'y2' 180'
- 'q w2xy 270 -3'
- x3=subwrd(result,3);y3=subwrd(result,6)
- 'set string 1 c 8 0'
- 'draw string 'x3' 'y3' 90W'
- 'q w2xy 360 -3'
- x4=subwrd(result,3);y4=subwrd(result,6)
- 'set string 1 r 8 0'
- 'draw string 'x4' 'y4' 0'
- 'gxprint E:\hecheng\chun\result\p\chun-1000.png x1000 y800 white'
- ;
复制代码
|
|