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

|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
初学ncl画图 想画形势图 问题是等温线和等高线合在一起时候
指定经纬度的那四个res是只有在gsn_csm_contour_map有map的情况下才能生效吗?
我的程序里plot_ov等温线后面没有跟map 画等高线的plot有map
所以就会出现出图时等高线显示正常但等温线不是显示的指定经纬度区域而出现叠加错位的问题
请问各位大神 怎么解决这个问题 另外我出图时总会多有一张全白的图是怎么回事?
谢谢各位!以下是我的程序
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
f = addfile("hgt.2013.nc","r")
t = addfile("air.2013.nc","r")
u = f->hgt(784,{500},:,:)
v = t->air(784,{500},:,:)
hgt1 = u/10
temp = v-273
wks = gsn_open_wks("png","2013-07-16-00-Cirsituation.500hpa")
res = True
res@gsnDraw = False
res@gsnFrame = False
res@mpMinLatF = 20
res@mpMaxLatF = 70
res@mpMinLonF = 30
res@mpMaxLonF = 120
res@mpOutlineOn = True
res@tiMainString = "2013-07-16-00-Cirsituation.500hpa"
res@cnLevelSelectionMode = "ManualLevels"
res@cnLevelSpacingF = 4
sres = True
sres@gsnDraw = False
res@gsnFrame = False
sres@cnMonoLineColor = True
sres@cnLineColor = "red"
plot = gsn_csm_contour_map(wks,hgt1,res)
plot_ov = gsn_csm_contour(wks,temp,sres)
overlay(plot,plot_ov)
mkres = True
mkres@gsMarkerColor = "black"
mkres@gsMarkerSizeF = 0.02
mkres@gsMarkerIndex = 1
dum1 = gsn_add_polymarker(wks,plot,lon_tulufan,lat_tulufan,mkres)
txres = True
txres@txFontHeightF = 0.015
txres@txFontColor = "black"
dum2 = gsn_add_text(wks,plot,"Tulufan",lon_tulufan,lat_tulufan+3.0,txres)
draw(plot)
frame(wks)
end
|
|