请选择 进入手机版 | 继续访问电脑版
爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5399|回复: 6

求问一下用NCL画WRFOUT的出图设置

[复制链接]

新浪微博达人勋

发表于 2019-5-22 22:25:26 | 显示全部楼层 |阅读模式

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

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

x
我用contour=wrf_contour(f1,wks,AprDust,opts) 和 plot=wrf_map_overlays(f1,wks,(/contour/),pltres,mpres)画出了WRFOUT的图,但是不知道怎么设置标题大小和经纬度标注的大小,还有色标上面那一行字怎么取消呀?谢谢大家!
N363ER`Z2HRF(1UQ1C%X9S3.png
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-5-23 00:33:45 | 显示全部楼层
经纬度坐标大小:
res@tmXBLabelFontHeightF       = 0.021
res@tmYLLabelFontHeightF       = 0.021
你的这个标题应该是左字符串:
res@gsnLeftStringFontHeightF    = 0.22
你可以把它改成中间字符串:
res@gsnCenterString            = "标题"
或者主题名字:
res@tiMainString                = "标题"
去掉色标上的小字:
res@tiXAxisString             = “”
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2019-5-23 09:03:06 | 显示全部楼层
帅蛋fly 发表于 2019-5-23 00:33
经纬度坐标大小:
res@tmXBLabelFontHeightF       = 0.021
res@tmYLLabelFontHeightF       = 0.021

好像一般的GSN属性设置不了呢 标题都没法用tiMainString设置,用的是@FieldTitle,不然会提示这种:warning:gsnLeftStringFontHeightF is not a valid resource in /AprSurDust_contour at this time
可能和我用的wrf函数有关系
C:\Users\Pam\Desktop\~MS~5{Z5C9QKG{%5BNU38QT4N
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-5-23 20:35:50 | 显示全部楼层
自由女 发表于 2019-5-23 09:03
好像一般的GSN属性设置不了呢 标题都没法用tiMainString设置,用的是@FieldTitle,不然会提示这种:warni ...

http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/
你看看这个网站能不能帮到你
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-5-23 20:39:52 | 显示全部楼层
To plot WRF-ARW data with the gsn_csm scripts in the native map projection defined on the file, you must do three things:

Call wrf_map_resources
This sets the necessary NCL resources to define the native map projection.

Set tfDoNDCOverlay = True
By default, when data are placed onto a map, NCL performs a transformation to the specified projection. This transformation is not needed if you have defined the native grid that your data is on. Setting tfDoNDCOverlay = True turns off this transformation, and also results in faster graphic generation.

Set gsnAddCyclic = False The gsm_csm_*map* suite of interfaces expect global data, and hence tries to add a longitude cyclic point. If plotting regional data, it is necessary to set gsnAddCyclic = False to prevent the longitude cyclic point from being added.
For a whole suite of examples using NCL to plot WRF-ARW data, we recommend that you visit the WRF-ARW Online Tutorial.
https://www.ncl.ucar.edu/Applications/wrfgsn.shtml
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-4-27 19:37:06 | 显示全部楼层
你好,请问最后怎么解决的呢?我现在也想把fieldtitle调大一点,不知道怎么调整,设置标题的那些对它好像没有作用。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2023-7-3 21:48:38 | 显示全部楼层
  pltres = True
  pltres@gsnFrame    = False
  pltres@gsnDraw     = True
  pltres@NoTitles=True
试着加上最后一行语句看看
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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