爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5407|回复: 0

[作图] NCL极区投影等值线交叉

[复制链接]
发表于 2022-9-7 17:09:18 | 显示全部楼层 |阅读模式

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

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

x
如图,为什么等值线会出现交叉?
我的脚本如下:

    a        = addfile("/gpfsnewhome/mayxia/WANGH/Build_WRF/WRF-4.1.2/test/em_real/wrfout_d01_2016-01-16_00:00:00","r")
    xlat     = a->XLAT(0,:,:)
    xlon     = a->XLONG(0,:,:)
    t        = 0
    time     = wrf_user_getvar(a,"Times",t)
    hgt      = wrf_user_getvar(a,"geopt",t)
    hgt      = hgt/9.8
    tc       = wrf_user_getvar(a,"tc",t)
    p        = wrf_user_getvar(a,"pressure",t)
    level    = 500
    hgt_interp          = wrf_user_interp_level(hgt,p,level,True)
    tc_interp           = wrf_user_interp_level(tc,p,level,True)
    hgt_interp@lon2d    = xlon
    hgt_interp@lat2d    = xlat
    tc_interp@lon2d     = xlon
    tc_interp@lat2d     = xlat
    wrf_smooth_2d(hgt_interp,2)
    wrf_smooth_2d(tc_interp,2)
;=====================================================================================================================

    wks     = gsn_open_wks("pdf","polar")
    gsn_define_colormap(wks,"GMT_globe")
;=====================================================================================================================

    res1                    = True
    res1@gsnLeftString      = ""
    res1@gsnRightString     = ""
    res1@gsnAddCyclic       = True
    res1@gsnPolar           = "NH"

    res1@mpDataSetName      = "/gpfsnewhome/mayxia/WANGH/heatwave/database/Earth..4"
    res1@mpDataBaseVersion  = "MediumRes"
    res1@mpMinLatF          = 50
    res1@mpCenterLonF       = 90
    res1@mpOceanFillColor   = 117
    res1@mpLandFillColor    = 255

    res1@cnLinesOn          = True
    res1@pmTickMarkDisplayMode  = "Always"
;=====================================================================================================================

    plot                    = gsn_csm_contour_map_polar(wks,tc_interp,res1)


polar.png
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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