爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 15382|回复: 8

[作图] 【已解决】NCL FNL 850hPa温度场和风场

[复制链接]
发表于 2020-4-16 16:34:41 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 channam 于 2021-11-16 09:45 编辑

用2020年1月份FNL数据做850hPa温度场和10m风速平均,发现温度场北边温度比南边高,感觉有问题,而且平均风速偏小(2m/s的参考矢量),不知道原因在哪里,另外想问一下FNL数据有缺测值吗,我在绘图时候没考虑过缺测的问题。  求助大家吖~

部分相关脚本在这里:

;;read;;
        dir   = "./fnl/"
        files = systemfunc("ls " + dir + "fnl_202001*.grib2")     
        f   = addfiles(files,"r")
        ListSetType (f, "join")   
        u = f[:]->UGRD_P0_L103_GLL0(:,{10},:,:)
        v = f[:]->VGRD_P0_L103_GLL0(:,{10},:,:)
        hgt =f[:]->HGT_P0_L100_GLL0(:,{85000},:,:)
        tmp =f[:]->TMP_P0_L100_GLL0(:,{85000},:,:)
        tmp = tmp - 273.15
        ..........

;;plot;;
        map     = gsn_csm_map(wks,mpres)
        contour1 = gsn_csm_contour(wks,dim_avg_n(hgt,0),hgtres)   
        contour2 = gsn_csm_contour(wks,dim_avg_n(tmp,0),tmpres)
        vector  = gsn_csm_vector(wks,dim_avg_n(u,0),dim_avg_n(v,0),res_vc)   

ncl之后出现这种warning,感觉不影响,不知道和这个有关吗。
warning:ContourPlotPreDraw: out of range coordinates encountered; standard  rendering method may be unreliable;
consider setting the resource trGridType to "TriangularMesh" if coordinates contain missing values
warning:ContourPlotDraw: out of range coordinates encountered; standard AreaFill rendering method may be unreliable;
consider setting the resource trGridType to "TriangularMesh" if coordinates contain missing values
warning:ContourPlotDraw: out of range coordinates encountered; standard  rendering method may be unreliable;
consider setting the resource trGridType to "TriangularMesh" if coordinates contain missing values

后来自己找到的解决方法:dim_avg_n变为dim_avg_n_Wrap,保留原数据信息包括经纬度。

;;plot;;
        map      = gsn_csm_map(wks,mpres)
        contour1 = gsn_csm_contour(wks,dim_avg_n_Wrap(tmp,0),tmpres)  ;使用dim_avg_n_Wrap做平均可保留原数据信息包括经纬度等不易出错
        contour2 = gsn_csm_contour(wks,dim_avg_n_Wrap(hgt,0),hgtres)  ;对变量第一维做平均
        vector   = gsn_csm_vector(wks,dim_avg_n_Wrap(u,0),dim_avg_n_Wrap(v,0),res_vc)



202001_850hpa.png
密码修改失败请联系微信:mofangbao
发表于 2021-1-14 21:17:22 | 显示全部楼层
LZ你好,完整的脚本分享一下吧,谢谢
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

 楼主| 发表于 2020-5-19 08:42:05 | 显示全部楼层
哈哈哈哈或或或 发表于 2020-5-11 23:11
我想知道你的色板用的是什么呀

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

使用道具 举报

发表于 2020-5-11 23:11:33 | 显示全部楼层
我想知道你的色板用的是什么呀
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2020-7-1 17:02:23 | 显示全部楼层
想问一下2和箭头怎么放到图形的右上方?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2020-7-16 09:45:40 | 显示全部楼层
可以看一下你完整的脚本吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2020-12-22 17:35:55 | 显示全部楼层
请问方便分享完整代码吗?在网络上都找不到画风场的
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2021-2-26 09:44:29 | 显示全部楼层
ncar的fnl数据好像要转置一下?我拿matlab读的时候是这样,不知道楼主是什么情况
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2021-7-23 19:39:29 | 显示全部楼层
请问怎么解决的呢
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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