- 积分
- 78
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-11-11
- 最后登录
- 1970-1-1
|
发表于 2013-11-28 10:49:32
|
显示全部楼层
本帖最后由 weiwei1990 于 2013-11-28 14:55 编辑
weiwei1990 发表于 2013-11-28 10:46
我改了一下你附带的那个脚本,想画一个3*1graphic的图,但是一直出现错误。
;>============================================================<
; add China map
;>------------------------------------------------------------<
cnres = True
cnres@china = True ;draw china map or not
cnres@river = True ;draw changjiang&huanghe or not
cnres@province = True ;draw province boundary or not
cnres@nanhai = True ;draw nanhai or not
cnres@diqu = False ; draw diqujie or not
wks = gsn_open_wks("eps","china_boundary")
gsn_define_colormap(wks,"GrayWhiteGray")
plot = new(3*1,graphic)
printVarSummary(plot)
plot(0) = gsn_csm_contour_map(wks,pres1,res)
chinamap0 = add_china_map(wks,plot(0),cnres)
plot(1) = gsn_csm_contour_map(wks,pres2,res)
chinamap1 = add_china_map(wks,plot(1),cnres)
plot(2) = gsn_csm_contour_map(wks,pres3,res)
chinamap2 = add_china_map(wks,plot(2),cnres)
printVarSummary(plot)
;>============================================================<
gsn_panel(wks,plot,(/3,1/),resP)
@尽头的尽头@freekiller请教一下,我的提示是红色这行错误,Argument type mismatch on argument(3) of (gsn_panel) can not coerce.然后我printVarsummary(plot)出来,看到叠加南海地图前后plot的属性的确不一样。怎么解决啊?愁眉莫展中。 |
|