<div dir="ltr"><div><div><div>A few comments.<br><br></div>(a) Nice plots<br></div>(b) The plots have, as the main title:<br> pnlres@txString = "Instantaneous Precipitation (in/h)"<br><br></div>(c) Why do you want the following redundant info on each figure?<br><div> dbres@gsnLeftString = "Instantaneous Precipitation"<br> dbres@gsnRightString = "in/h"<br></div><div> I suggest removing them.<br><br></div><div> If the 'dbz_sub' has a 'long_name' or 'description' or 'units' atributes, delete then<br></div><div> delete( [/ dbz_sub@long_name, dbz_sub@units/] ) ; if present<br></div><div><br></div><div>(d) Most (?all?) journals want minimal unused space on figures, I'd minimize the blank space.<br><br></div><div>(e) The individual file names for each plot are necessary. The script uses:<br> dbres@tiMainString = filename<br></div><div> Maybe, not using the tiMainString resource but rather<br></div><div> dpres@gsnCenterString = filename <br><br></div><div> (f) Finally, 'for fun', See the figure associated with <br> <a href="http://www.ncl.ucar.edu/Applications/indices.shtml">http://www.ncl.ucar.edu/Applications/indices.shtml</a><br> <a href="http://www.ncl.ucar.edu/Applications/Scripts/index_amo_1.ncl">index_amo_1.ncl</a><br><br></div><div> This example uses:<br> ...@gsnAttachPlotsXAxis = True<br><br></div><div> Your figures could possibly use;<br> @gsnAttachPlotsYAxis = True</div><div> <br></div><div>Just sayin' :-)<br><br></div><div>D <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 30, 2017 at 11:59 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">Hi:<div><br></div><div>I have attached the program that Mary nudged along.</div><div><br></div><div>It was necessary to "grab" (->) the variables from within the file before using the commands such as PrintVarSummary (this is pretty basic, but somehow I had overlooked this), and to rid the "dipr" variable of NaNs before accessing the file.</div><div><br></div><div>It now makes images of instantaneous precipitation with the radar location as the origin (example attached).</div><div><br></div><div>Barry</div><div>P.S: It also sets cmap to output white as the first "color" in the color bar.</div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 29, 2017 at 5:33 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, thanks for reminding me!<div><br></div><div>I took a program that worked and tried to read a different file and variables, which I will panel later.</div><div><br></div><div>The clocks changed here...</div><span class="m_7256147459702861454HOEnZb"><font color="#888888"><div><br></div><div>Barry</div></font></span></div><div class="m_7256147459702861454HOEnZb"><div class="m_7256147459702861454h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 29, 2017 at 5:25 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 style="font-size:small">Barry,</div><div style="font-size:small"><br></div><div style="font-size:small">You are trying to print the variables without reading them off the file first. You have:</div><div style="font-size:small"><br></div><div><div style="font-size:small"> printVarSummary(elevation)<br></div><div style="font-size:small"> printVarSummary(rays_time)</div><div style="font-size:small"> printMinMax(DigitalInstantaneo<wbr>usPrecipitationRate_RAW,False)</div><div style="font-size:small"> printMinMax(DigitalInstantaneo<wbr>usPrecipitationRate,False)</div><div style="font-size:small"><br></div><div style="font-size:small">These are indeed all variables on the file, but you need to read them off the file before you can do a printVarSummary on them:</div><div style="font-size:small"><br></div><div><div style="font-size:small"> printVarSummary(f->elevation)<br></div><div style="font-size:small"> printVarSummary(f->rays_time)</div><div style="font-size:small"> printMinMax(f->DigitalInstanta<wbr>neousPrecipitationRate_RAW,Fal<wbr>se)</div><div style="font-size:small"> printMinMax(f->DigitalInstanta<wbr>neousPrecipitationRate,False)</div><div style="font-size:small"><br></div><div style="font-size:small">or:</div><div style="font-size:small"><br></div><div><div> elevation = f->elevation</div><div> rays_time = f->rays_time</div><div> dipr_raw = f->DigitalInstantaneousPrecipi<wbr>tationRate_RAW</div><div> dipr = f->DigitalInstantaneousPrecipi<wbr>tationRate</div><div><br></div><div> printVarSummary(elevation)</div><div> printVarSummary(rays_time)</div><div> printMinMax(elevation,0)</div><div> printMinMax(rays_time,0)</div><div> printMinMax(dipr_raw,0)</div><div> printMinMax(dipr,0)</div><div><br></div><div>You will note that dipr is all NaNs. You need to replace the NaNs with missing values:</div><div><br></div><div><div>;---Replace NaNs with missing values </div><div> dipr@_FillValue = default_fillvalue(typeof(dipr)<wbr>)</div><div> replace_ieeenan (dipr,dipr@_FillValue,0)</div><div><br></div><div>Finally,</div></div><div><br></div><div>You need to fix the do loop to go from 0 to n_files-1:</div><div>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861gmail-s1"> </span><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861gmail-s2">do</span><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861gmail-s1"> i_file = 0,n_files-1</span></p><p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861gmail-p1">Also, none of the paneling works because none of the plots have been created. I assume this is a work in progress.</p><p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861gmail-p1">Good luck,</p><p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861gmail-p1"><br></p><p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861gmail-p1">--Mary</p></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_7256147459702861454m_-1305524624727491018h5">On Sun, Oct 29, 2017 at 9:00 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="m_7256147459702861454m_-1305524624727491018h5"><div dir="ltr">Hi:<div><br></div><div>I am trying to access the variables in this file. I have printed them out and copied them to the ncl printVarSummary/printMinMax commands, but I get an error. </div><div><br></div><div>Since the variables (and others) are present, I don't see a way around this. Thank you for your help,</div><div><br></div><div>Barry</div><div><br></div><div>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">(0)<span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>elevation</span></p>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">(1)<span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>azimuth</span></p>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">(2)<span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>gate</span></p>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">(3)<span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>latitude</span></p>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">(4)<span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>longitude</span></p>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">(5)<span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>altitude</span></p>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">(6)<span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>rays_time</span></p>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">(7)<span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>DigitalInstantaneousPrecipitat<wbr>ionRate_RAW</span></p>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">(8)<span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>DigitalInstantaneousPrecipitat<wbr>ionRate</span></p>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">fatal:Variable (elevation) is undefined</span></p>
<p class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail-s1">fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 18 in file ./read_nc_file.ncl</span></p><div><div><br></div>-- <br><div class="m_7256147459702861454m_-1305524624727491018m_4075892192357188861m_8783418963100875406gmail_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="m_7256147459702861454m_-1305524624727491018gmail_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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_7256147459702861454gmail_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></div>