爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 13177|回复: 1

[作图] NCL 读取nc数据叠加地图绘制,叠加错误

[复制链接]

新浪微博达人勋

发表于 2020-9-13 17:29:02 | 显示全部楼层 |阅读模式
1金钱
本帖最后由 dreamFly1993 于 2020-9-13 17:30 编辑

读取nc数据叠加地图绘制,叠加完地图后达不到理想效果。帮忙看下如何配置地图属性:
代码:
  1. load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"   
  2. load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"   
  3. ; ================================================;
  4. begin
  5. ;=================================================;
  6. ; open file and read in data
  7. ;=================================================;
  8.   f    =addfile("/test.nc","r")
  9.   u  = f->tem         
  10. ;=================================================;
  11. ; PLOT 2
  12. ;=================================================;
  13.   wks  = gsn_open_wks("png","conwomap")   ; send graphics to PNG file

  14.   res                     = True          ; plot mods desired
  15.   res@cnLinesOn       = False
  16.   res@cnFillOn            = True          ; turn on color
  17.   res@cnFillPalette       = "gui_default" ; set color map
  18.   res@mpFillOn                   = True
  19.      res@mpMinLatF                  = 0.03125
  20.    res@mpMaxLatF                  = 64.96875
  21.    res@mpMinLonF                  = 60.09375
  22.   res@mpMaxLonF                  = 159.9688

  23.   plot = gsn_csm_contour_map(wks,u,res)       ; contour the variable
  24.   end
复制代码


理想图

理想图

叠加地图时效果

叠加地图时效果

未叠加地图时效果

未叠加地图时效果

最佳答案

查看完整内容

试试 res@gsnAddCyclic = False
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2020-9-13 17:29:03 | 显示全部楼层
试试
res@gsnAddCyclic = False
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

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

本版积分规则

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

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

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