function gsn_create_text ( wks [1] : graphic, text : integer, res [1] : logical ) return_val : graphic 9 addfile 打开一个数据文件 function addfile ( (或将会)在支持的 file_path [1] : 文件格式写入 string, status [1] : string ) return_val [1] : file 10 gsn_add_annotation 给...
gsn_create_labelbar(wks,nboxes,""+arr,lbres)amres = True amres@amJust = "TopCenter"amres@amParallelPosF = 0.0 ; Center amres@amOrthogonalPosF = 0.6 ; Bottom annoid = gsn_add_annotation(map,lbid,amres)return(annoid)end ...
29-29 19-19 0 gsn_*()与相应的gsn_*_ndc()区别在于:gsn_*()使用像素定位像元的绝对位置,而gsn_*_ndc()使用0~1的比例定位像元在页面中的相对位置。 gsn_*()与相应的gsn_add_*()区别在于∶gsn_*()是过程,而gsn_add_*()是函数。 gsn_csm_*_map在地图上绘制,gsn_csm_*_map_ce()采用圆柱等距...
gsn_define_colormap(wks,colors),cnFillOn=True 填色等值线+等值线 set gxout shaded d .. set gxout contour d .. 注意:顺序不能反 同上,之前设置cnFillOn = True, cnLinesOn=True 仅仅标记网格点 set gxout grid 比较灵活,可以使用gsn_add_test做到,没有对应的csm接口,参照http://www.ncl.ucar.edu/A...
gsn_add_annotation gsn_add_polygon gsn_add_polyline gsn_add_polymarker gsn_add_text gsn_attach_plots gsn_blank_plot gsn_contour gsn_contour_map gsn_contour_shade gsn_create_labelbar gsn_create_legend gsn_create_text gsn_csm_attach_zonal_means ...
= -0.3dumLg = gsn_add_annotation(plot, lbid, amres)dumDate = new(nrow,graphic)resTx = TrueresTx@txFontHeightF = 0.015resTx@txFontColor = "black"resTx@txJust = "BottomLeft"do i = 0, nrow-1if (HH(i) .ne. "00" ) thencontinueend ifdumDate(i) = gsn_add_text(wks,plot, ...
1. 所用台风轨迹数据格式 2107151800221661351100600021071600002216913531006000210716060022175135410040002107161200221851353100400021071618002219513531004000 第一列 时间 第三列 等级划分 第四列 纬度 第五列 经度 第六列 台风中心气压 2.程序 ;LoadNCL scriptsload"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"load"$NCAR...
amres@amOrthogonalPosF=-0.5;Move legend down.annoid=gsn_add_annotation(plot1,legend,amres);add legend to plotdraw(plot1)frame(wks) res@pmLegendDisplayMode="Always"res@xyExplicitLegendLabels=lglabels(chosex)res@lgJustification="TopRight"res@pmLegendOrthogonalPosF= -0.35;Move into plot ...
lbid = gsn_create_labelbar(wks,nboxes,""+arr,lbres) amres = True amres@amJust = "TopCenter" amres@amParallelPosF= 0.0 ; Center amres@amOrthogonalPosF =0.6 ; Bottom annoid = gsn_add_annotation(map,lbid,amres) return(annoid) ...
如果想要镶板,要用 。 gsn_add_polygon 下面代码段用来说明如何在图像上绘制或添加多边形 ; plot created above with gsnFrame and gsnDraw set to false. ; add polygon to plot y = (/30.,30.,0.0,0.,30./) x = (/-90.,-45.,-45.-90.,-90./) resp = True; mods yes resp@gsFill...