<div dir="ltr">Hi Barry,<div>When setting the tmYLValues resource, one needs to make sure that the values input into tmYLValues match up with the range of the coordinate variable data associated with the first dimension of the array input into the gsn plotting function. In this case, you are setting this:</div><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><div><br></div><div>and creating a plot like this:</div><div>plot_rad1(0) = gsn_csm_contour(wks,dbz,opts_<wbr>rad)<br></div><div><br></div><div>In this case, dbz does not have any <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">coordinate variable </span>associated with the first dimension. Thus, NCL under-the-hood assigns it an array equal to ispan(0,8,1) (as the first dimension of dbz is of size 9). Your tmYLValues range from 0 to 100 by 10. Thus, NCL only has data that goes as high as 8 but you are assigning tickmark labels every 10, and NCL will only plot the range of data it has (unless you overrule it by setting trYMaxF = 100 for instance).</div><div><br></div><div>Your second question is semi-related to the first. You can set the tmXBValues/tmXBLabels much as how you set the tmYL resources, but again you need to make sure that your tmXBValues are within the range of the coordinate variable associated with the 2nd dimension of the array input into the NCL plotting function. </div><div><br></div><div>In this case, you again do not have any coordinate variable associated with the 2nd dimension of dbz, so NCL assigns an array of ispan(0,100,1). Thus, the values in tmXBValues much be within that range. Finally, there are numerous ways to set the tickmarks. See examples here:</div><div><a href="http://www.ncl.ucar.edu/Applications/time_labels.shtml">http://www.ncl.ucar.edu/Applications/time_labels.shtml</a><br></div><div>and here:</div><div><a href="http://www.ncl.ucar.edu/Applications/tickmarks.shtml">http://www.ncl.ucar.edu/Applications/tickmarks.shtml</a><br></div><div><br></div><div>Hope that helps.</div><div>Adam</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 7, 2018 at 11:02 AM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@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 am plotting qvp diagrams.</div><div><br></div><div>To run this program, you need to use the *tar file and the ncl file.</div><div><br></div><div>The y or z axis is height and the x-axis should be time.</div><div><br></div><div>I have a couple of questions.</div><div><br></div><div>1) I see that the label 




<span></span>





<p class="m_1348384580901713217gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1348384580901713217gmail-s1" style="font-variant-ligatures:no-common-ligatures">opts_xy@tmYLLabels0.0</span></p>


is defined for all values from 0 to 5, but it does not appear on the y axis.</div><div><br></div><div>2) I am wondering how I can convert the times (from time_var) in the variable Times to something I could put on the x-axis, and how I would get these times to appear as well. </div><div><br></div><div>Thank you for help in solving these two problems.</div><div><br></div><div>Barry<br><div><div><br></div>-- <br><div class="m_1348384580901713217gmail_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 <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></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"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>