<div dir="ltr">Hi:<div><br></div><div>Can you please send a picture/map...</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 19, 2017 at 7:55 AM, Tao Lu <span dir="ltr"><<a href="mailto:hakufu.asano@gmail.com" target="_blank">hakufu.asano@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I occurred a problem when I plot contour.</div><div><br></div><div>Even though I turn off contour line label bar the graph also shows it.</div><div>" opts_rh = opts_xy</div><div> opts_rh@cnLineLabelsOn = False </div><div> opts_rh@cnFillOn = True</div><div>"</div><div><br></div><div>Is there anyone know why?</div><div><br></div><div>Thank you,</div><div>Tao</div><div><br></div><div><br></div><div>Here is my codes:</div><div>##############################<wbr>##############################<wbr>##############################<wbr>#</div><div><div>begin</div><div>;</div><div>;---Read wrf file </div><div> ;a = addfile("../../wrfout_d01_<wbr>2015-09-08_12:00:00","r") ; small domain ouput 5</div><div> a = addfile("../wrfout_d01_2015-<wbr>09-08_12:00:00_big2","r") ; big domain ouput 10</div><div><br></div><div>; read need data</div><div> xlat = wrf_user_getvar(a, "XLAT",0)</div><div> xlon = wrf_user_getvar(a, "XLONG",0)</div><div> ter = wrf_user_getvar(a, "HGT",0)</div><div><br></div><div>;--Set up workstation</div><div> type = "x11"</div><div>; type = "pdf"</div><div>; type = "ps"</div><div>; type = "ncgm"</div><div> type@wkWidth<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                        </span>= 3000 ; Increase size for a slightly</div><div> type@wkHeight<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                        </span>= 3000</div><div><br></div><div>; Output folder</div><div> folder="./clean_vertical_wind"</div><div> mkdir = systemfunc ("mkdir -p " + folder)</div><div> wks = gsn_open_wks(type,folder+"/<wbr>plt_CrossSection_3")</div><div><br></div><div><br></div><div>;---Set some basic resources</div><div> res = True</div><div> res@gsnMaximize =True</div><div> res@gsnDraw = False</div><div> res@gsnFrame = False</div><div><br></div><div><br></div><div> </div><div>;-----------------------------<wbr>------------------------------<wbr>------------------- </div><div>;---Set bounding box</div><div>; C->C' WE</div><div> lats = (/ 36.59845, 36.59845 /)</div><div> lons = (/ 138.50, 141.0 /)</div><div><br></div><div>; X-axis label</div><div> xoption=0 </div><div><br></div><div>;0 means lon X-axis, 1 means lat X-axis</div><div> if (xoption .eq. 0) then</div><div> X_desc = "longitude" </div><div> xvalue=xlon</div><div> px = 0.2</div><div> end if</div><div><br></div><div> if (xoption .eq. 1) then</div><div> X_desc = "latitude"</div><div> xvalue = xlat</div><div> px = 0.5</div><div> end if</div><div><br></div><div> </div><div>;---Set zoomin indices</div><div>; loc(0,;) is west-east (x) ; loc(1,:) is south-north (y)</div><div>; subtract one since we want to use it as an index in NCL</div><div> loc<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                </span>= wrf_user_ll_to_ij(a, lons, lats, True)</div><div> loc<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                </span>= loc - 1</div><div> x_start<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= loc(0,0)</div><div> x_end<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= loc(0,1)</div><div> y_start<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= loc(1,0)</div><div> y_end<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= loc(1,1)</div><div> </div><div> </div><div>;---Read time</div><div><br></div><div> times = wrf_user_getvar(a,"times",-1) ; get times in the file</div><div> ntimes = dimsizes(times) ; number of times in the file</div><div> FirstTime = True</div><div><br></div><div> mdims = getfilevardimsizes(a,"P") ; get some dimension sizes for the file</div><div> nd = dimsizes(mdims)</div><div> </div><div> </div><div>;-----------------------------<wbr>------------------------------<wbr>---------------</div><div>; Loop of time to do plot</div><div>;-----------------------------<wbr>------------------------------<wbr>----</div><div><br></div><div> ;do it = 356,356;ntimes-1,18 ; for output5 when need 0909_1740 (UTC)</div><div> do it = 178,178;ntimes-1,18 ; for output10 when need 0909_1740 (UTC)</div><div> </div><div><br></div><div> print("Working on time: " + times(it) )</div><div><br></div><div> rh = wrf_user_getvar(a,"rh",it) ; relative humidity</div><div> z = wrf_user_getvar(a, "z",it) ; grid point height</div><div> u = wrf_user_getvar(a,"ua",it) ; u in m/s</div><div> w = wrf_user_getvar(a,"wa",it) ; w in m/s</div><div><br></div><div><br></div><div> if ( FirstTime ) then ; get height info for labels</div><div> zmin = 0.</div><div> zmax = 12;max(z)/1000.</div><div> nz = floattoint(zmax + 1)</div><div> FirstTime = False</div><div> end if</div><div><br></div><div>;-----------------------------<wbr>------------------------------<wbr>----</div><div><br></div><div>; Plot a cross session that run from point A to point B</div><div><br></div><div> plane = new(4,float)</div><div> plane = (/ x_start,x_end, y_start,y_end /) ; start x;y & end x;y point </div><div> opts = True ; start and end points specified</div><div><br></div><div> rh_plane = wrf_user_intrp3d(rh,z,"v",<wbr>plane,0.,opts)</div><div> u_plane = wrf_user_intrp3d(u,z,"v",<wbr>plane,0.,opts)</div><div> w_plane = wrf_user_intrp3d(w,z,"v",<wbr>plane,0.,opts)</div><div> X_plane = wrf_user_intrp2d(xvalue,plane,<wbr>0,opts)</div><div><br></div><div><br></div><div> dim = dimsizes(rh_plane) ; Find the data span - for use in labels</div><div> zspan = dim(0)</div><div><br></div><div> ; Options for XY Plots</div><div> ; X-axis lables</div><div> dimsX = dimsizes(X_plane)</div><div> xmin = X_plane(0)</div><div> xmax = X_plane(dimsX(0)-1)</div><div> xspan = dimsX(0)-1</div><div> nx = floattoint( (xmax-xmin)/px + 1)</div><div> print ("dimsX= "+dimsX+" xmin= "+xmin+" xmax= "+xmax+" xspan= "+xspan+ " nx="+nx)</div><div><br></div><div><br></div><div> ;-----------------------------<wbr>------------------------------<wbr>----</div><div> </div><div> ; Options for XY Plots</div><div> opts_xy = res</div><div> opts_xy@tiXAxisString = X_desc</div><div> opts_xy@tiYAxisString = "Height (km)"</div><div> opts_xy@tmXTOn = False</div><div> opts_xy@tmYROn = False</div><div> opts_xy@tmXBMode = "Explicit"</div><div> if (nx .lt. 0) then</div><div> nx = -nx</div><div> end if</div><div> opts_xy@tmXBValues = fspan(0,xspan,nx) ; Create tick marks</div><div> opts_xy@tmXBLabels = sprintf("%.1f",fspan(xmin,<wbr>xmax,nx)) ; Create labels</div><div> opts_xy@tmXBLabelFontHeightF = 0.015</div><div> opts_xy@tmYLMode = "Explicit"</div><div> opts_xy@tmYLValues = fspan(0,zspan,nz) ; Create tick marks</div><div> opts_xy@tmYLLabels = sprintf("%.1f",fspan(zmin,<wbr>zmax,nz)) ; Create labels</div><div> opts_xy@tiXAxisFontHeightF = 0.020</div><div> opts_xy@tiYAxisFontHeightF = 0.020</div><div> opts_xy@tmXBMajorLengthF = 0.02</div><div> opts_xy@tmYLMajorLengthF = 0.02</div><div> opts_xy@tmYLLabelFontHeightF = 0.015</div><div> </div><div><br></div><div> ; Plotting options for RH</div><div> opts_rh = opts_xy</div><div> opts_rh@cnLineLabelsOn = False </div><div> opts_rh@cnFillOn = True</div><div> opts_rh@lbOrientation = "vertical"</div><div> opts_rh@ContourParameters = (/ 10., 90., 10. /)</div><div> opts_rh@cnFillColors = (/"White","White","White", \</div><div> "White","Chartreuse","Green", \</div><div> "Green3","Green4", \</div><div> "ForestGreen","PaleGreen4"/) </div><div> ; Set contour title </div><div> mainstring<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= times(it) + " (UTC)"</div><div> leftstring<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= "Relative humidity %"</div><div> rightstring<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= "Wind (m/s)"</div><div> size<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= 0.02</div><div><br></div><div> opts_rh@tiMainString <span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                        </span>= mainstring </div><div> opts_rh@gsnLeftString <span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                        </span>= leftstring <span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                                </span></div><div> opts_rh@gsnRightString <span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                </span>= rightstring</div><div> opts_rh@tiMainFontHeightF <span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                </span>= 0.030</div><div> opts_rh@<wbr>gsnLeftStringFontHeightF <span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= size<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                        </span></div><div> opts_rh@<wbr>gsnRightStringFontHeightF <span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= size<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                        </span></div><div> </div><div> </div><div> </div><div> ; Get the contour info for the rh</div><div> contour_rh = gsn_csm_contour(wks,rh_plane,<wbr>opts_rh)</div><div> </div><div> </div><div>;-----------------------------<wbr>-------------------</div><div>; curly vector plot</div><div>;-----------------------------<wbr>-------------------</div><div><br></div><div> vecres = opts_xy ; vector only resources</div><div> vecres@vcGlyphStyle = "LineArrow"</div><div> vecres@vcLineArrowThicknessF = 2</div><div> vecres@vcMinDistanceF = 0.008</div><div> vecres@vcRefLengthF = 0.04</div><div> </div><div> </div><div> </div><div> vecres@gsnLeftString <span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                </span>= " " <span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                                </span>; add the gsn titles</div><div> vecres@gsnRightString <span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">                </span>= " "</div><div> vector = gsn_csm_vector(wks,u_plane,w_<wbr>plane,vecres)</div><div><br></div><div><br></div><div> ; MAKE PLOTS </div><div> overlay(contour_rh,vector)</div><div> draw(contour_rh)</div><div> frame(wks)</div><div><br></div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<wbr>;;;;</div><div><br></div><div> end do ; END OF TIME LOOP</div><div><br></div><div>end</div><div>##############################<wbr>##############################<wbr>###############</div><div><br></div>-- <br><div class="m_8168733904700360536gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px"><span style="font-size:12.8px">******************************<wbr>************************</span><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">盧 涛 (ル タオ) </span><span style="font-family:arial,helvetica,sans-serif;font-size:small">修士課程2年</span><br style="font-size:12.8px"><p style="font-size:12.8px;margin:0px"><font size="2" face="arial, helvetica, sans-serif">〒<span lang="EN-US">112-8551 </span>東京都文京区春日<span lang="EN-US">1-13-27</span></font></p><p style="font-size:12.8px;margin:0px"><font size="2" face="arial, helvetica, sans-serif">中央大学理工学研究科都市環境学専攻</font></p><p style="font-size:12.8px;margin:0px"><font size="2" face="arial, helvetica, sans-serif">河川・水文<span lang="EN-US"><span lang="EN-US"><span lang="EN-US">研究</span></span><span lang="EN-US"><span lang="EN-US">室</span></span></span></font><span style="font-family:arial,helvetica,sans-serif;font-size:small">(山田正教授)</span></p></div><div style="font-size:12.8px"><p style="font-size:12.8px;margin:0px"><font size="2" face="arial, helvetica, sans-serif"><span lang="EN-US"><br></span></font></p><p style="font-size:12.8px;margin:0px"><font size="2" face="arial, helvetica, sans-serif"><span lang="EN-US">TEL: 03-3817-3406; </span></font><span style="font-family:arial,helvetica,sans-serif;font-size:small">Phone: 070-2188-7509</span></p>Email1: <a href="mailto:mail%3Amet.yamos@gmail.com" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">hakufu.asano@gmail.com</a><br style="font-size:12.8px">Email2: <a href="mailto:mail%3Ayamoto@civil.chuo-u.ac.jp" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">lutao@civil.chuo-u.ac.<wbr>jp</a><br style="font-size:12.8px"><span style="font-size:12.8px">******************************<wbr>*************************</span></div><div style="font-size:12.8px"><span style="font-size:small;font-family:arial">******************************</span><span style="font-size:small;font-family:arial"><wbr>************************</span><br></div><div><span style="font-size:small;font-family:arial">Tao Lu (M. Eng)</span></div><div><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px">Laboratory of River Engineering and Hydrology,</span><br style="font-family:arial;font-size:small"><span style="font-size:small;font-family:arial">Dept. of Civil and Environmental Engineering,</span><br style="font-family:arial;font-size:small"><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px">Graduate School of Science and Engineering,</span><br style="font-family:arial;font-size:small"><span style="font-size:small;font-family:arial">Chuo University</span><br style="font-family:arial;font-size:small"><span style="font-size:small;font-family:arial"> </span><br style="font-family:arial;font-size:small">1-13-27<span style="font-size:small;font-family:arial">,Kasuga,Bunkyo-ku,Tokyo</span><br style="font-family:arial;font-size:small"><span style="font-size:small;font-family:arial">112-8551, Japan</span><br style="font-family:arial;font-size:small"><span style="font-size:small;font-family:arial">TEL: </span>03-3817-1805<font size="2" face="arial, helvetica, sans-serif"><span lang="EN-US">; </span></font><span style="font-family:arial,helvetica,sans-serif;font-size:small">Phone: 070-2188-7509</span><br style="font-family:arial;font-size:small"><span style="font-size:12.8px">Email1: </span><a href="mailto:mail%3Amet.yamos@gmail.com" style="font-size:12.8px;color:rgb(17,85,204)" target="_blank">hakufu.asano@gmail.com</a><br style="font-size:12.8px"><span style="font-size:12.8px">Email2: </span><a href="mailto:mail%3Ayamoto@civil.chuo-u.ac.jp" style="font-size:12.8px;color:rgb(17,85,204)" target="_blank">lutao@civil.chuo-u.ac.<wbr>jp</a><br style="font-family:arial;font-size:small"><span style="font-size:small;font-family:arial">******************************</span><span style="font-size:small;font-family:arial"><wbr>***********************</span><span style="font-size:12.8px"><br></span></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
</div>