爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 10830|回复: 11

NCL一页多图出现范围和地图不出现问题,求指教

[复制链接]
发表于 2016-1-11 11:41:30 | 显示全部楼层 |阅读模式

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

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

x
222.png

res=True
res@gsnDraw = False
  res@gsnFrame=False
res@mpFillOn             = False   ; Turn off map fill.
res@mpMinLatF         = min_lat
  res@mpMaxLatF         = max_lat
  res@mpMinLonF         = min_lon
  res@mpMaxLonF         = max_lon
res@cnFillPalette = "BlueYellowRed"
res@cnInfoLabelOn       = False  
res@cnLinesOn = False ; 关闭等值线线条
res@lbBoxLinesOn = False ; 关闭lbar box 线条
res@lbLabelBarOn        = False
res@cnFillOn = True
plot = new(2,graphic)
  plot(0) = gsn_csm_contour(wks,lhaon3,res)
  plot(1) = gsn_csm_contour(wks,lhaon4,res)
  pres                   = True
pres@gsnPanelRowSpec = True                   ;tell panel what order to plt
  pres@gsnPanelLabelBar  = True
  ;pres@txString         = "A common title"   
pres@gsnPanelFigureStrings= (/"a)","b)"/) ; add strings to panel   
gsn_panel(wks,plot,(/1,1/),pres)
frame(wks)
end
我的脚本一部分:但是出图没有地图,而且我设置的经纬度也没显示出来。下面是NCL出现的警告,请问大家这是为什么呢????
warning:mpMinLonF is not a valid resource in lhpanel_contour at this time
warning:mpMaxLonF is not a valid resource in lhpanel_contour at this time
warning:mpMinLatF is not a valid resource in lhpanel_contour at this time
warning:mpMaxLatF is not a valid resource in lhpanel_contour at this time
warning:mpFillOn is not a valid resource in lhpanel_contour at this time
warning:mpMinLonF is not a valid resource in lhpanel_contour at this time
warning:mpMaxLonF is not a valid resource in lhpanel_contour at this time
warning:mpMinLatF is not a valid resource in lhpanel_contour at this time
warning:mpMaxLatF is not a valid resource in lhpanel_contour at this time
warning:mpFillOn is not a valid resource in lhpanel_contour at this time

密码修改失败请联系微信:mofangbao
发表于 2016-1-11 11:47:52 | 显示全部楼层
画地图当然要用gsn_csm_contour_map系列函数。好好学习官网的例子啊
密码修改失败请联系微信:mofangbao
发表于 2016-1-11 12:04:36 | 显示全部楼层
你画的不就是不要地图的吗
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-11 15:44:20 | 显示全部楼层
尽头的尽头 发表于 2016-1-11 12:04
你画的不就是不要地图的吗

我要地图背景的,但是不论设置mp这个res
res@mpFillOn =True或False都会出现这些warnings
我也不知道为什么,请多指教
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-11 16:01:03 | 显示全部楼层
井中月 发表于 2016-1-11 11:47
画地图当然要用gsn_csm_contour_map系列函数。好好学习官网的例子啊

哦哦,知道了,谢谢您的提醒
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-11 16:04:57 | 显示全部楼层
井中月 发表于 2016-1-11 11:47
画地图当然要用gsn_csm_contour_map系列函数。好好学习官网的例子啊

果然是我的函数少了map,真的非常感谢您的提醒,谢谢家园好心人
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-11 16:05:09 | 显示全部楼层
井中月 发表于 2016-1-11 11:47
画地图当然要用gsn_csm_contour_map系列函数。好好学习官网的例子啊

果然是我的函数少了map,真的非常感谢您的提醒,谢谢家园好心人
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-11 16:05:12 | 显示全部楼层
井中月 发表于 2016-1-11 11:47
画地图当然要用gsn_csm_contour_map系列函数。好好学习官网的例子啊

果然是我的函数少了map,真的非常感谢您的提醒,谢谢家园好心人
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-1-11 16:06:01 | 显示全部楼层
井中月 发表于 2016-1-11 11:47
画地图当然要用gsn_csm_contour_map系列函数。好好学习官网的例子啊

果然是我的函数少了map,真的非常感谢您的提醒,谢谢家园好心人
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2016-11-15 17:52:08 | 显示全部楼层
井中月 发表于 2016-1-11 11:47
画地图当然要用gsn_csm_contour_map系列函数。好好学习官网的例子啊

再请教一下怎么把那个a),b)外面的方框去掉?
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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