爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4540|回复: 2

[作图] NCL底图加上自己ArcGIS做的矢量数据出错

[复制链接]

新浪微博达人勋

发表于 2018-3-28 20:18:27 | 显示全部楼层 |阅读模式

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

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

x
本渣有时想加上一些自己矢量化的shp,比如青藏高原等等,但是总是报错,有高人知道自己矢量化的底图有什么要求吗?比如坐标之类的。
谢谢啦!


                               
登录/注册后可看大图


附上代码/自己矢量化的shp:
begin
f= addfile ("ua_FGOALS.nc","r")
u = f->ua
u700 = u(:,3,:,:)
uTim = dim_avg_n_Wrap(u700,0)
q = addfile ("va_FGOALS.nc","r")
v = q->va
v700 = v(:,3,:,:)
vTim = dim_avg_n_Wrap(v700,0)
wks = gsn_open_wks("pdf","stream_all")
res = True
res@gsnFrame = False
res@gsnMaximize = True
res@mpOutlineOn = True
res@mpDataBaseVersion = "MediumRes"
res@gsnAddCyclic = False
res@mpMinLonF = 80
res@mpMaxLonF = 120
res@mpMinLatF = 15
res@mpMaxLatF = 50
res@gsnMajorLatSpacing = 10
res@gsnMajorLonSpacing = 10
res@mpLandFillColor = "tan"
res@mpOceanFillColor = "LightBue"
res@mpInlandWaterFillColor = "LightBlue"
res@mpOceanFillColor = "LightBlue"
res@vcRefMagnitudeF = 1.
res@vcRefLengthF    = 0.045
res@vcGlyphStyle    = "CurlyVector"
res@vcMinDistanceF  = 0.006
res@vcLineArrowColor        = "blue"
plot = gsn_csm_vector_map(wks,uTim,vTim,res)
plres = True        ; resource list for polylines
plres@gsLineColor = "black"

pgres = True
pgres@gsLineColor = "yellow"

psres = True
psres@gsLineColor = "black"

pfres = True
pfres@gsFillColor = "white"


id = gsn_add_shapefile_polylines(wks,plot,"bou1_4l.shp",plres)
id1 = gsn_add_shapefile_polylines(wks,plot,"desert.shp",pgres)
id2 = gsn_add_shapefile_polylines(wks,plot,"sandy_land.shp",psres)
id3 = gsn_add_shapefile_polygons(wks,plot,"Qinghai-Tibet_Plateau.shp",pfres)
draw(plot)
frame(wks)
end


Qinghai-Tibet_Plateau.dbf

339 Bytes, 下载次数: 1, 下载积分: 金钱 -5

自己的shp

Qinghai-Tibet_Plateau.shp

101.71 KB, 下载次数: 1, 下载积分: 金钱 -5

自己的shp

Qinghai-Tibet_Plateau.shx

108 Bytes, 下载次数: 1, 下载积分: 金钱 -5

自己的shp

密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-3-28 20:22:19 | 显示全部楼层
{:5_235:}{:5_235:}{:5_235:}
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-3-28 20:36:38 | 显示全部楼层
解决了,从气象家园上下载了一个,下载地址http://bbs.06climate.com/forum.php?mod=viewthread&tid=32840 希望可以帮助后面的童鞋
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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