<DIV>Hi all:</DIV>
<DIV> I am trying to make a panel plot,but the Xlabelvalue of the third plote not appear?</DIV>
<DIV> and how can I turn off the the reference vector box of the first and second plot and make the reference vector box of the third plot samller?</DIV>
<DIV> The text (TEST,OBS) that I add on the plot did not make any difference.</DIV>
<DIV><FONT size=4></FONT> How can I slove those problem?</DIV>
<DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"><FONT style="LINE-HEIGHT: 30px" size=2> Or do you guys have some advice?</FONT></SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"><FONT style="LINE-HEIGHT: 30px" size=2> Any information will be appreciated.</FONT></SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"><FONT size=2> This is my plot:</FONT></SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"><FONT size=2></FONT></SPAN> </DIV></DIV>
<DIV><IMG style="WIDTH: 744px; HEIGHT: 556px" src="cid:C07165CD@2BEB7910.8CB51C56" filesize="283643" modifysize="65%" diffpixels="13px" scalingmode="zoom" naturalh="856" naturalw="1146"></DIV>
<DIV><STRONG> </STRONG><FONT size=2><BR></FONT>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'">
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"><FONT style="LINE-HEIGHT: 30px" size=2></FONT></SPAN></DIV><SPAN style="LINE-HEIGHT: 24px"><FONT size=2>This is my scirpt:</FONT></SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" <BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" <BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"<BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<BR>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px">begin<BR>;<BR>; The WRF ARW input file. <BR>; This needs to have a ".nc" appended, so just do it.<BR> a = addfile("/public/home/huanglei/wrfdata/wrfout_d03_2015-05-01_12:00:00.nc","r") </SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"> ij = wrf_user_ll_to_ij(a, 108.966667,34.433333,True)</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"> print("lon location is: " +ij(0))</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"> print("lat location is: " + ij(1))<BR> <BR>; First get the variables we will need <BR>u10_2=new((/31,24/),float,"No_FillValue")<BR>v10_2=new((/31,24/),float,"No_FillValue")</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"> <BR> filename1=systemfunc("ls /public/home/huanglei/wrfdata/wrfout_d03_2015-05*.nc")<BR> fin1=addfiles(filename1,"r")<BR> do i=0,30<BR> <BR> u10_1=fin1[i]->U10(0:23,ij(1)-1, ij(0)-1)<BR> v10_1=fin1[i]->V10(0:23,ij(1)-1, ij(0)-1)<BR> u10_2 (i,:)= u10_1 <BR> v10_2 (i,:)= v10_1 <BR> end do <BR> u10=ndtooned(u10_2)<BR> v10=ndtooned(v10_2)</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"> u10_d=u10(0:724)<BR> v10_d=v10(0:724)</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px">;;;;;;;;;;;;;;;get obs data;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; <BR> ascii_filename = "/public/home/huanglei/obs.txt"<BR> seismic = asciiread(ascii_filename,(/725,6/),"float")<BR> <A href="mailto:seismic@_FillValue">seismic@_FillValue</A> = -999<BR> wdir = seismic(:,4)<BR> wspd = seismic(:,5)<BR> rad = 4.0*atan(1.0)/180.<BR> u_o = wspd*sin(rad*wdir)<BR> v_o = wspd*cos(rad*wdir)</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px">;;;;;;;;;;;;;;;;;;;;;;;;;data for plot1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<BR> u10_new1=new((/25,220/),float)<BR> u10_new1=0 <BR> u10_new1(8,:)=u10_d(0:219)<BR> u10_new1(15,:)=u_o(0:219) <BR> v10_new1=new((/25,220/),float)<BR> v10_new1=0<BR> v10_new1(8,:)=v10_d(0:219)<BR> v10_new1(15,:)=v_o(0:219)<BR>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<BR> <BR>;;;;;;;;;;;;;;;;;;;;;;;;;data for plot2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<BR> u10_new2=new((/25,240/),float)<BR> u10_new2=0 <BR> u10_new2(8,:)=u10_d(220:459)<BR> u10_new2(15,:)=u_o(220:459) <BR> v10_new2=new((/25,240/),float)<BR> v10_new2=0<BR> v10_new2(8,:)=v10_d(220:459)<BR> v10_new2(15,:)=v_o(220:459)<BR>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px">;;;;;;;;;;;;;;;;;;;;;;;;;data for plot3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<BR> u10_new3=new((/25,264/),float)<BR> u10_new3=0 <BR> u10_new3(8,:)=u10_d(461:724)<BR> u10_new3(15,:)=u_o(461:724) <BR> v10_new3=new((/25,264/),float)<BR> v10_new3=0<BR> v10_new3(8,:)=v10_d(461:724)<BR> v10_new3(15,:)=v_o(461:724)<BR>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<BR>wks = gsn_open_wks("pdf","gsn_vector_panel") ; open a Graphic wkStation<BR>plot = new(3,graphic)<BR> res = True ; plot mods desired<BR> <A href="mailto:res@gsnFrame">res@gsnFrame</A> = False<BR> <A href="mailto:res@gsnDraw">res@gsnDraw</A> = False ; don't draw<BR>; <A href="mailto:res@tiMainString">res@tiMainString</A> = "Basic Vector Plot"</SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"> <A href="mailto:res@vcGlyphStyle">res@vcGlyphStyle</A> = "CurlyVector" ; turn on curley vectors<BR> <A href="mailto:res@gsnMaximize">res@gsnMaximize</A> = True <BR> <A href="mailto:res@vpHeightF">res@vpHeightF</A> = 0.15<BR> <A href="mailto:res@vpWidthF">res@vpWidthF</A> = 0.8<BR> ;res@vcRefMagnitudeF = 5.0 ; add a reference vector<BR> ; <A href="mailto:res@vcRefLengthF">res@vcRefLengthF</A> = 0.045 ; what the ref length is<BR> ; <A href="mailto:res@vcRefMagnitudeF">res@vcRefMagnitudeF</A> = 0.15 <BR> ; <A href="mailto:res@vcRefLengthF">res@vcRefLengthF</A> = 0.001<BR> <A href="mailto:res@vcRefAnnoArrowLineColor">res@vcRefAnnoArrowLineColor</A> = "black" ; change ref vector color<BR></SPAN></DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px"><BR> <A href="mailto:res@pmLegendWidthF">res@pmLegendWidthF</A> = 0.10 ; Change width and<BR> <A href="mailto:res@pmLegendHeightF">res@pmLegendHeightF</A> = 0.10 ; height of legend.<BR>; <A href="mailto:res@lgLabelFontHeightF">res@lgLabelFontHeightF</A> = 0.02 ; change font height<BR> <A href="mailto:res@tmYLOn">res@tmYLOn</A> = False ; Don't draw labels for left<BR> <A href="mailto:res@tmYLLabelsOn">res@tmYLLabelsOn</A> = False ; Y axes<BR> <A href="mailto:res@tmYROn">res@tmYROn</A> = False ; Don't draw labels for right<BR> <A href="mailto:res@tmYRLabelsOn">res@tmYRLabelsOn</A> = False ; Y axes</SPAN></DIV><SPAN style="LINE-HEIGHT: 24px"></SPAN></DIV>
<DIV><SPAN style="LINE-HEIGHT: 24px">
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><BR> </DIV></SPAN>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><SPAN style="LINE-HEIGHT: 24px">;;;;;;;;;;;;;;;;;;;;add text TEST / OBS;;;;;;;<BR> res_text = True<BR> <A href="mailto:res_text@txFontHeightF">res_text@txFontHeightF</A> = 0.01<BR> ; <A href="mailto:res_text@txJust">res_text@txJust</A> = "CenterLeft" <BR> m1 = "TEST"<BR> m2 = "OBS"</SPAN></DIV><SPAN style="LINE-HEIGHT: 24px">
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"><BR> res0=res<BR> <A href="mailto:res0@tmXBMode">res0@tmXBMode</A> ="Explicit" <BR> <A href="mailto:res0@tmXBValues">res0@tmXBValues</A> =(/5,29,53,77,101,125,149,173,197/)<BR> <A href="mailto:res0@tmXBLabels">res0@tmXBLabels</A> = (/"5/2","5/3"," 5/4","5/5", "5/6","5/7","5/8","5/9","5/10"/)<BR> <A href="mailto:res0@tmXBLabelFontHeightF">res0@tmXBLabelFontHeightF</A> = 0.01<BR> <A href="mailto:res0@vcRefAnnoOrthogonalPosF">res0@vcRefAnnoOrthogonalPosF</A> = -0.33 ; move ref vector up<BR> <A href="mailto:res0@vcRefMagnitudeF">res0@vcRefMagnitudeF</A> = 0.5 ; define vector ref mag<BR> <A href="mailto:res0@vcRefLengthF">res0@vcRefLengthF</A> = 0.025 ; define length of vec ref<BR> <A href="mailto:res0@vcRefAnnoParallelPosF">res0@vcRefAnnoParallelPosF</A> = 0.999<BR> <A href="mailto:res0@vpHeightF">res0@vpHeightF</A> = 0.15<BR> <A href="mailto:res0@vpWidthF">res0@vpWidthF</A> = 0.8<BR> plot(0) = gsn_vector(wks,u10_new1,v10_new1,res0)<BR> gsn_text(wks,plot(0),m1,190,10,res_text)<BR> gsn_text(wks,plot(0),m2,190,35,res_text)<BR> res1=res<BR> <A href="mailto:res1@tmXBMode">res1@tmXBMode</A> ="Explicit" <BR> ; <A href="mailto:res1@tmXBValues">res1@tmXBValues</A> =(/221,245,269,293,317,341,365,389,413,437/)<BR> <A href="mailto:res1@tmXBValues">res1@tmXBValues</A> =(/1,25,49,73,97,121,145,169,193,217/)<BR> <A href="mailto:res1@tmXBLabels">res1@tmXBLabels</A> = (/"5/11","5/12","5/13","5/14","5/15","5/16","5/17","5/18","5/19","5/20"/)<BR> <A href="mailto:res1@tmXBLabelFontHeightF">res1@tmXBLabelFontHeightF</A> = 0.01 <BR> <A href="mailto:res1@vcRefAnnoOrthogonalPosF">res1@vcRefAnnoOrthogonalPosF</A> = -0.33 ; move ref vector up<BR> <A href="mailto:res1@vcRefMagnitudeF">res1@vcRefMagnitudeF</A> = 0.5 ; define vector ref mag<BR> <A href="mailto:res1@vcRefLengthF">res1@vcRefLengthF</A> = 0.025 ; define length of vec ref<BR> <A href="mailto:res1@vcRefAnnoParallelPosF">res1@vcRefAnnoParallelPosF</A> = 0.999<BR> <A href="mailto:res1@vpHeightF">res1@vpHeightF</A> = 0.15<BR> <A href="mailto:res1@vpWidthF">res1@vpWidthF</A> = 0.8<BR> plot(1) = gsn_vector(wks,u10_new2,v10_new2,res1)<BR> <BR> gsn_text(wks,plot(1),m1,200,10,res_text)<BR> gsn_text(wks,plot(1),m2,200,35,res_text)<BR> res2=res<BR> <A href="mailto:res2@tmXBMode">res2@tmXBMode</A> ="Explicit" <BR> ; <A href="mailto:res2@tmXBValues">res2@tmXBValues</A> =(/461,485,509,533,557,581,605,629,653,677,701/)<BR> <A href="mailto:res2@tmXBValues">res2@tmXBValues</A> =(/1,25,49,73,97,121,145,169,193,217,241/)<BR> <A href="mailto:res2@tmXBLabels">res2@tmXBLabels</A> = (/"5/21"," 5/22"," 5/23","5/24","5/25","5/27","5/28","5/29","5/30","5/31"/)<BR> <A href="mailto:res2@tmXBLabelFontHeightF">res2@tmXBLabelFontHeightF</A> = 0.01 <BR> <A href="mailto:res2@vcRefAnnoOrthogonalPosF">res2@vcRefAnnoOrthogonalPosF</A> = -0.33 ; move ref vector up<BR> <A href="mailto:res2@vcRefMagnitudeF">res2@vcRefMagnitudeF</A> = 0.5 ; define vector ref mag<BR> <A href="mailto:res2@vcRefLengthF">res2@vcRefLengthF</A> = 0.025 ; define length of vec ref<BR> <A href="mailto:res2@vcRefAnnoParallelPosF">res2@vcRefAnnoParallelPosF</A> = 0.999<BR> <A href="mailto:res2@vpHeightF">res2@vpHeightF</A> = 0.15<BR> <A href="mailto:res2@vpWidthF">res2@vpWidthF</A> = 0.8<BR> plot(2) = gsn_vector(wks,u10_new3,v10_new3,res2)<BR> <BR> gsn_text(wks,plot(2),m1,220,10,res_text)<BR> gsn_text(wks,plot(2),m2,220,35,res_text)<BR> ;;;;;;;;;;;;;;;;add obs test mark;;;;;;;;;;;;;;<BR> <BR> <BR> resP = True ; modify the panel plot<BR> gsn_panel(wks,plot,(/3,1/),resP) ; now draw as one plot<BR>;frame(wks)<BR>end</DIV>
<DIV style="LINE-HEIGHT: 23px; FONT-FAMILY: 'lucida Grande', Verdana, 'Microsoft YaHei'"></SPAN> </DIV></DIV>