<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">&lt;<a href="mailto:hakufu.asano@gmail.com" target="_blank">hakufu.asano@gmail.com</a>&gt;</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>&quot;    opts_rh = opts_xy</div><div>    opts_rh@cnLineLabelsOn = False </div><div>    opts_rh@cnFillOn                = True</div><div>&quot;</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(&quot;../../wrfout_d01_<wbr>2015-09-08_12:00:00&quot;,&quot;r&quot;)  ; small domain ouput 5</div><div>  a = addfile(&quot;../wrfout_d01_2015-<wbr>09-08_12:00:00_big2&quot;,&quot;r&quot;) ; big domain ouput 10</div><div><br></div><div>; read need data</div><div>  xlat = wrf_user_getvar(a, &quot;XLAT&quot;,0)</div><div>  xlon = wrf_user_getvar(a, &quot;XLONG&quot;,0)</div><div>  ter = wrf_user_getvar(a, &quot;HGT&quot;,0)</div><div><br></div><div>;--Set up workstation</div><div>  type = &quot;x11&quot;</div><div>; type = &quot;pdf&quot;</div><div>; type = &quot;ps&quot;</div><div>; type = &quot;ncgm&quot;</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=&quot;./clean_vertical_wind&quot;</div><div>  mkdir = systemfunc (&quot;mkdir -p &quot; + folder)</div><div>  wks = gsn_open_wks(type,folder+&quot;/<wbr>plt_CrossSection_3&quot;)</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-&gt;C&#39; 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 = &quot;longitude&quot; </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 = &quot;latitude&quot;</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,&quot;times&quot;,-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,&quot;P&quot;) ; 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(&quot;Working on time: &quot; + times(it) )</div><div><br></div><div>    rh = wrf_user_getvar(a,&quot;rh&quot;,it)      ; relative humidity</div><div>    z   = wrf_user_getvar(a, &quot;z&quot;,it)     ; grid point height</div><div>    u    = wrf_user_getvar(a,&quot;ua&quot;,it)      ; u in m/s</div><div>    w    = wrf_user_getvar(a,&quot;wa&quot;,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 &amp; 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,&quot;v&quot;,<wbr>plane,0.,opts)</div><div>    u_plane = wrf_user_intrp3d(u,z,&quot;v&quot;,<wbr>plane,0.,opts)</div><div>    w_plane = wrf_user_intrp3d(w,z,&quot;v&quot;,<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 (&quot;dimsX= &quot;+dimsX+&quot;   xmin= &quot;+xmin+&quot;   xmax= &quot;+xmax+&quot;   xspan= &quot;+xspan+ &quot;   nx=&quot;+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           = &quot;Height (km)&quot;</div><div>    opts_xy@tmXTOn                  = False</div><div>    opts_xy@tmYROn                  = False</div><div>    opts_xy@tmXBMode                = &quot;Explicit&quot;</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(&quot;%.1f&quot;,fspan(xmin,<wbr>xmax,nx))  ; Create labels</div><div>    opts_xy@tmXBLabelFontHeightF    = 0.015</div><div>    opts_xy@tmYLMode                = &quot;Explicit&quot;</div><div>    opts_xy@tmYLValues              = fspan(0,zspan,nz)                    ; Create tick marks</div><div>    opts_xy@tmYLLabels              = sprintf(&quot;%.1f&quot;,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           = &quot;vertical&quot;</div><div>    opts_rh@ContourParameters       = (/ 10., 90., 10. /)</div><div>    opts_rh@cnFillColors            = (/&quot;White&quot;,&quot;White&quot;,&quot;White&quot;, \</div><div>                                            &quot;White&quot;,&quot;Chartreuse&quot;,&quot;Green&quot;, \</div><div>                                            &quot;Green3&quot;,&quot;Green4&quot;, \</div><div>                                            &quot;ForestGreen&quot;,&quot;PaleGreen4&quot;/)  </div><div>    ; Set contour title                                            </div><div>    mainstring<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= times(it) + &quot; (UTC)&quot;</div><div>    leftstring<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= &quot;Relative humidity %&quot;</div><div>    rightstring<span class="m_8168733904700360536gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= &quot;Wind (m/s)&quot;</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               = &quot;LineArrow&quot;</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>= &quot; &quot; <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>= &quot; &quot;</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>