爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5886|回复: 0

[作图] NCL

[复制链接]
发表于 2022-6-14 17:28:05 | 显示全部楼层 |阅读模式

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

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

x
求问大神,这种报错是什么原因???要怎么该???
fatal:ContourPlotDraw: Workspace reallocation would exceed maximum size 100000000
fatal:ContourPlotDraw: draw error
fatal:ContourPlotDraw: draw error
fatal:PlotManagerDraw: error in plot draw
fatal:_NhlPlotManagerDraw: Draw error

绘图的代码如下:
begin

f=addfile("/data/world_geo.nc", "r")
print(f)
lat=f->y
lon=f->x
height=f->z
printVarSummary(height)

lat@units ="degrees_north"
lon@units ="degrees_east"

height!0="latitude"
height&latitude = lat
height!1="longitude"
height&longitude = lon

printVarSummary(height)

wks=gsn_open_wks("png","/data/cyx_data/plot/height_line")
  gsn_define_colormap(wks,"WhiteBlueGreenYellowRed")
   ;rainbow,ncl_default,BlueRed,testcmap,BlueWhiteOrangeRed;,MPL_BrBG,cmocean_balance,BlRe

   res=True
   res@gsnAddCyclic         = False
   res@gsnFrame=False ;翻页
   res@gsnDraw=False   ;绘图
   res@gsnLeftString =""
   res@gsnRightString =""

   res@pmTickMarkDisplayMode = "Always"
   res@tmXTOn=False    ;刻度和标注显隐开关
   res@tmYROn=False     ; 刻度和标注显隐开关

   res@cnFillOn             = True      ; 打开颜色填色
   res@cnLinesOn            = True

   res@mpMaxLatF              =60;45
    res@mpMinLatF              =0;15
    res@mpMaxLonF              =120
    res@mpMinLonF              =20
   ;res@cnLevelSelectionMode = "ExplicitLevels"   ;绘制特定等值线
   ;res@cnlevels   = (/2500/)

   plot=gsn_csm_contour_map(wks, height, res)

  draw(plot)
  frame(wks)

  ;setvalues NhlGetWorkspaceObjectId()
;       "wsMaximumSize": 600000000
;nd setvalues

end


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

本版积分规则

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

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

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