<div dir="ltr">Mary:<div><br></div><div>Thank you for the suggestions yesterday. The histogram looks okay now.</div><div><br></div><div>I'd like to bring to your attention a couple of things.</div><div><br></div><div>1) I believe that the examples you have on the site do not necessarily (as is) plot histograms typically drawn in meteorological papers. For instance, when I originally tried to just plot the data in mod_x and obs_x using the standard examples it didn't work. For this reason, I created intervals of data whose index is the interval value and the number of times the index value appears is equal the value of the data (obs_x or obs_y) within. </div><div><br></div><div>For instance, if there is an interval with 10001 grids with dBZ values (radar reflectivity) within this interval then that index will have 10001 values, all equal to the value of the index.</div><div><br></div><div>2) I do this with this loop and am wondering if there is an more concise way to write it.</div><div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>i_num = 0</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>i_end = 0</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>i_beg = 0</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>do i_int = 0,dims_obs_x-1</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>i_end = i_beg + floattointeger(obs_x(i_int))</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>do x_int = i_beg,i_end-1</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>x_new(i_num) = i_int</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>i_num = i_num + 1</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>end do</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>if (i_beg.eq.i_end)then</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>x_new(i_num) = i_int</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>i_num = i_num + 1</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>end if</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>i_beg = i_end</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>end do</span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">3) If I take your program and substitute my data (num_x) at the top I get the strange figure attached (00002.png). We're I to put this data into a typical graphing program, the data would come out correctly as histo_mod.pdf. </span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Perhaps I've overlooked something?</span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Thanks,</span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Barry</span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 7:19 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</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"><div class="gmail_default" style="font-size:small">Barry,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You don't want to use discrete bin intervals, unless you are wanting to count the # of values *exactly equal* to a value.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For a range of values, use gsnHistogramBinIntervals.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please read over the histogram page carefully, because we have many examples on this page that talk about the different histogram options.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As I think I mentioned before, I updated example histo_2.ncl to show how to explicitly request an array of bin intervals.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Run the attached script, will hopefully illustrate the difference between gsnHistogramBinIntervals and gsnHistogramDiscreteBinValues.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Nov 20, 2017 at 8:54 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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello:<div><br></div><div>I found the coding lines that allows me to map the number of intervals, explicitly. I found the coding lines that allow me to specify how many of the labels I want to map.</div><div><br></div><div>That's here:</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/Scripts/histo_3.ncl" target="_blank">https://www.ncl.ucar.edu/Appli<wbr>cations/Scripts/histo_3.ncl</a><br></div><div><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"> res@tmXBLabelStride = 2 ; every other x-label
res@gsnHistogramDiscreteBinVal<wbr>ues = ispan(0,25,1)
</pre></div><div>However, I don't see how to change the number of labels to be different from their default number, which equals the number of tmXBValues.</div><div><br></div><div>I need to set the latter so that I can add more than 9 labels.</div><div><br></div><div>Thank you</div><div><br></div><div><br></div><div>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = -9</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(1)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 0</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(2)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 9</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(3)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 18</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(4)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 27</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(5)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 36</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(6)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 45</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(7)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 54</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(8)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 63</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.0555556</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(1)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.166667</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(2)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.277778</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(3)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.388889</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(4)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.5</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(5)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.611111</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(6)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.722222</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(7)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.833333</span></p>
<p class="m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(8)<span class="m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.944444</span></p><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 3:01 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>I can get the labels to display correctly if I use:</div><div><br></div><div>
<p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmXBLabels = int_radar(::3)</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font color="#000000">However, the histogram program is amalgamating the smaller bins into 10 sized default bins.</font></span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font color="#000000"><br></font></span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1"><font color="#000000"><font face="Courier New"><span style="font-variant-ligatures:no-common-ligatures">I would hope that there is a way to explicitly tell the histogram program to use all the interval data (23 intervals.</span></font></font></span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1"><font color="#000000"><font face="Courier New"><span style="font-variant-ligatures:no-common-ligatures"><br></span></font></font></span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1"><font color="#000000"><font face="Courier New"><span style="font-variant-ligatures:no-common-ligatures">I tried setting:</span></font></font></span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1"><font color="#000000"><font face="Courier New"><span style="font-variant-ligatures:no-common-ligatures"><br></span></font></font></span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1">
</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmXBMode<span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>= "</span><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">Manu</span><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures">al"</span><br></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)">and creating manual tick marks, but then my histogram labels go only from 0 to 1.</p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)">As below.</p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>rad_inc = 3./(int_radar(dimsizes(int_rad<wbr>ar)-1)+10)</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>print("rad_inc<span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>= " +rad_inc)</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>new_ticks = new(dimsizes(int_radar),float)</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>new_ticks(0)= 0</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>do inc = 1,dimsizes(int_radar)-1,1</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>new_ticks(inc) = new_ticks(inc-1)+rad_inc</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>end do</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>print("new_ticks = " + new_ticks)</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>res@tmXBValues := new_ticks</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)">
</p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>res@tmXBLabels := int_radar</span></p></div></div><div class="m_-4896509602852143628m_7322931159529804111gmail-HOEnZb"><div class="m_-4896509602852143628m_7322931159529804111gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 19, 2017 at 9:21 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>I am having trouble figuring out why my histo.ncl program won't plot data beyond value (x-axis) of 15. This is really dbz data, so the range is correct: -9 to 60. </div><div><br></div><div>I also checked that the labels are present in:</div><div><br></div><div>
<p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmXBLabels = int_radar</span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-s1" style="font-variant-ligatures:no-common-ligatures">and the data dimensions are correct (23 elements).</span></p></div><div><br></div><div>However, I don't see any data (and any labels 18-60) indicating that the data has all been displayed. </div><div><br></div><div>Thank you,</div><div><br></div><div>Barry<br clear="all"><div><br></div>-- <br><div class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail_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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail_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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-4896509602852143628m_7322931159529804111gmail_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></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</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>