- 积分
- 36
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-12-5
- 最后登录
- 1970-1-1

|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
想画形势图 但是怎么出图 等温线和等压线都对不齐 如图
纠错纠一天了 试过另开一个带地图的底图三图叠加 也试过添加res@gsnMaximize = True
请各位大神帮我看看到底哪里有错 谢谢!
以下是我的程序
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"
begin
lat_tulufan = 42.0
lon_tulufan = 88.0
u = addfile("hgt.2013.nc","r")
t = addfile("air.2013.nc","r")
temp = t->air(783,{500},:,:)
v = u->hgt(783,{500},:,:)
temp1 = temp-273
hgt1 = v/10
wks = gsn_open_wks("png","cirmap")
res = True
sres = True
res@gsnDraw = False
res@gsnFrame = False
res@gsnMaximize = True
sres@gsnDraw = False
sres@gsnFrame = False
sres@cnMonoLineColor = True
sres@cnLineColor = "red"
sres@gsnMaximize = True
hgtmap = gsn_csm_contour(wks,hgt1, res)
tempmap = gsn_csm_contour_map(wks,temp1,sres)
overlay(tempmap,hgtmap)
mkres = True
mkres@gsMarkerColor = "black"
mkres@gsMarkerSizeF = 0.02
mkres@gsMarkerIndex = 1
dum1 = gsn_add_polymarker(wks,tempmap,lon_tulufan,lat_tulufan,mkres)
txres = True
txres@txFontHeightF = 0.015
txres@txFontColor = "black"
dum2 = gsn_add_text(wks,tempmap,"Tulufan",lon_tulufan,lat_tulufan+3.0,txres)
draw(tempmap)
frame(wks)
end
不胜感激!
|
-
|