爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 7997|回复: 9

[作图] NCL如何画雷达范围的圆形图?求教

[复制链接]
发表于 2019-4-20 17:09:03 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
如何画出如下图片 QQ截图20190420170713.png
密码修改失败请联系微信:mofangbao
发表于 2019-4-20 22:38:02 | 显示全部楼层
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"

然后使用里面的circle_ll函数,把resc@Scale=1.0就是绘制圆了

经纬度转格点坐标可以用wrf_ll_to_ij函数
  1. procedure circle_ll(wks:graphic,plt:graphic,x0:numeric,y0:numeric,r:numeric,res:logical)
  2. ; Draws a circle (or ellipse) or radius (or x-axis length) r centered at (x0,y0). Optionally it can draw an ellipse and axes can be rotated as desired.
  3. ; Input Parameters:
  4. ; wks: graphics workstation
  5. ; plt: the plot graphics
  6. ; (x0,y0): center of the circle in terms of plot coordinate
  7. ; r: radius (or x-direction length) of the circle in terms of plot coordinate
  8. ; res: resources. If true can take any line graphic parameter valid to gsn_add_polyline. In addition, there are two special resources for this procedure:
  9. ;      Scale: The scale by which the y-axis length should be modified to the x-axis length. This can be used to plot an ellipse. (default=1).
  10. ;      Rotation: The rotation angle (in degrees) by which the axes are rotated (positive anticlockwhise). (default=0).
  11. ;
  12. ; Example:
  13. ;...
  14. ; arr=random_uniform(1,10,(/15,20/))
  15. ; wks = gsn_open_wks("x11","circle");
  16. ; res = True
  17. ; res@vpHeightF=0.5
  18. ; res@vpWidthF=0.8
  19. ; res@gsnDraw = False
  20. ; res@gsnFrame = False
  21. ; plt=gsn_csm_contour(wks,arr,res)

  22. ; resc=True
  23. ; resc@gsLineColor="red"
  24. ; resc@gsLineThicknessF=2
  25. ; resc@Scale=1.0
  26. ; resc@Rotation=-45
  27. ; circle_ll(wks,plt,10,7,3,resc)
  28. ; draw(plt)
  29. ; frame(wks)
复制代码

密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

发表于 2019-4-21 21:58:32 | 显示全部楼层
微信图片_20190421215813.png
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-4-22 15:22:11 | 显示全部楼层
小其其格 发表于 2019-4-20 22:38
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"

然后使用里面的circle_ll函数,把resc@Sca ...

哇!十分感谢,画出来了,就是想要的效果!!非常感谢~~~~~~~~~~~~
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-11-24 21:00:19 | 显示全部楼层
中间的五角星标记是怎么画上去的呀
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-11-29 21:38:39 | 显示全部楼层

不知道为什么example的图可以画出圆圈,但是换到地图的时候就没有圈圈出来
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-12-1 00:06:44 | 显示全部楼层
Nalanalanaa 发表于 2019-11-24 21:00
中间的五角星标记是怎么画上去的呀

please look
1、maker function:
http://www.ncl.ucar.edu/Document/Graphics/marker_styles.shtml

2、maker type:
http://www.ncl.ucar.edu/Document/Graphics/Images/markers.png
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-12-17 15:33:33 | 显示全部楼层

请问这个图是ncl画的么?图上的汉字是用的什么字体啊?字体很漂亮!
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-12-17 21:47:57 | 显示全部楼层
Eudora99 发表于 2019-12-17 15:33
请问这个图是ncl画的么?图上的汉字是用的什么字体啊?字体很漂亮!

MeteoInfo绘制的
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-12-18 09:12:22 | 显示全部楼层

好的,谢谢
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表