爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
12
返回列表 发新帖
楼主: 橙子鲜

[作图] 如何将地图文件覆盖在等值线图之上,使填色图边界严格按照地图边界呢

[复制链接]

新浪微博达人勋

发表于 2018-9-27 20:45:47 | 显示全部楼层
橙子鲜 发表于 2017-4-6 14:15
procedure add_shp_polygons(wks,plot,shp_filename)
local nres
begin

楼主,你好,我也遇到了这个问题,但是你最后那个调用add_shp_polygons(xwks,map0,shpfn4),我有点不懂括号里的这些,括号里不是应该是wks,plot,shp_filename吗?我按照你这个试了一下,总是提示我这个错误,这是为什么啊 fatal:Variable (shp_filename) is undefined
这是我的脚本:undef("add_shp_polygons")
  procedure add_shp_polygons(wks,plot,shp_filename)
  local cnres
  begin
   
   cnres                  =True
   cnres@gsFillColor      = "White"
   shp_filename           ="/public1/home/hehuanran/cnmap/cnhimap.shp"
   plot@amZone= gsn_add_shapefile_polygons(wks, plot,shp_filename,cnres)
  
  end
   
   add_shp_polygons(wks,plot,shp_filename)
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-9-28 17:21:45 | 显示全部楼层
MARZOLINI 发表于 2018-9-27 20:45
楼主,你好,我也遇到了这个问题,但是你最后那个调用add_shp_polygons(xwks,map0,shpfn4),我有点不懂括 ...

shp_filename           ="/public1/home/hehuanran/cnmap/cnhimap.shp"


你的这句话完全多余啊, procedure add_shp_polygons(wks,plot,shp_filename)  这一段的意思是,在这个脚本中单独定义了一个函数,然后在主程序中调用,上面多余的话应该放进主程序里面写啊。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-9-28 17:21:49 | 显示全部楼层
MARZOLINI 发表于 2018-9-27 20:45
楼主,你好,我也遇到了这个问题,但是你最后那个调用add_shp_polygons(xwks,map0,shpfn4),我有点不懂括 ...

shp_filename           ="/public1/home/hehuanran/cnmap/cnhimap.shp"


你的这句话完全多余啊, procedure add_shp_polygons(wks,plot,shp_filename)  这一段的意思是,在这个脚本中单独定义了一个函数,然后在主程序中调用,上面多余的话应该放进主程序里面写啊。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-10-17 11:12:35 | 显示全部楼层
橙子鲜 发表于 2018-9-28 17:21
shp_filename           ="/public1/home/hehuanran/cnmap/cnhimap.shp"

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

本版积分规则

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

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

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