爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4974|回复: 0

[作图] 在等值线图上叠加地形出错

[复制链接]

新浪微博达人勋

发表于 2019-2-26 11:31:27 | 显示全部楼层 |阅读模式

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

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

x
程序:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
f1=addfile("C:/Users/Administrator/Desktop/data/temp.1987.nc","r")
ff1=short2flt(f1->t(1:5,:,:))

g1=addfile("C:/Users/Administrator/Desktop/data/temp.1987.nc","r")
gg1=short2flt(g1->t(6:10,:,:))

t=ff1(0,:,:)
t=gg1(0,:,:)-ff1(0,:,:)
t1=smth9_Wrap(t,0.50,-0.25,True)
shpfn2 = "C:/Users/Administrator/Desktop/data/tibetan.shp"
wks=gsn_open_wks("png","C:/Users/Administrator/Desktop/chenxu/contour")
res = True
res@gsnDraw = False
res@gsnFrame = False
res@pmTickMarkDisplayMode = "Always"
res@gsnAddCyclic=False
res@mpMaxLatF = 50
res@mpMinLatF = 0
res@mpMinLonF = 50
res@mpMaxLonF = 120

res@cnLineThicknessF = 3.0
res@gsnContourNegLineDashPattern = 1
res@cnSmoothingOn        = True
res@cnLineLabelPlacementMode="Constant"
plot = gsn_csm_contour_map(wks,t1,res)


plres = True
plres@gsLineColor = "black"
plres@gsLineThickness = "3.0"
shp_plot = gsn_add_shapfile_polylines(wks,plot,shpfn2,plres)
报错信息
@%P~012%B}KQET816743.png
地形文件应该是没有问题的,不知道为啥会有这个报错




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

本版积分规则

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

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

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