<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><div><br></div><div>Barry</div></div><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 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 are trying to print the variables without reading them off the file first. You have:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default" style="font-size:small"> printVarSummary(elevation)<br></div><div class="gmail_default" style="font-size:small"> printVarSummary(rays_time)</div><div class="gmail_default" style="font-size:small"> printMinMax(<wbr>DigitalInstantaneousPrecipitat<wbr>ionRate_RAW,False)</div><div class="gmail_default" style="font-size:small"> printMinMax(<wbr>DigitalInstantaneousPrecipitat<wbr>ionRate,False)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" 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 class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default" style="font-size:small"> printVarSummary(f->elevation)<br></div><div class="gmail_default" style="font-size:small"> printVarSummary(f->rays_time)</div><div class="gmail_default" style="font-size:small"> printMinMax(f-><wbr>DigitalInstantaneousPrecipitat<wbr>ionRate_RAW,False)</div><div class="gmail_default" style="font-size:small"> printMinMax(f-><wbr>DigitalInstantaneousPrecipitat<wbr>ionRate,False)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">or:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default"> elevation = f->elevation</div><div class="gmail_default"> rays_time = f->rays_time</div><div class="gmail_default"> dipr_raw = f-><wbr>DigitalInstantaneousPrecipitat<wbr>ionRate_RAW</div><div class="gmail_default"> dipr = f-><wbr>DigitalInstantaneousPrecipitat<wbr>ionRate</div><div class="gmail_default"><br></div><div class="gmail_default"> printVarSummary(elevation)</div><div class="gmail_default"> printVarSummary(rays_time)</div><div class="gmail_default"> printMinMax(elevation,0)</div><div class="gmail_default"> printMinMax(rays_time,0)</div><div class="gmail_default"> printMinMax(dipr_raw,0)</div><div class="gmail_default"> printMinMax(dipr,0)</div><div class="gmail_default"><br></div><div class="gmail_default">You will note that dipr is all NaNs. You need to replace the NaNs with missing values:</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default">;---Replace NaNs with missing values </div><div class="gmail_default"> dipr@_FillValue = default_fillvalue(typeof(dipr)<wbr>)</div><div class="gmail_default"> replace_ieeenan (dipr,dipr@_FillValue,0)</div><div class="gmail_default"><br></div><div class="gmail_default">Finally,</div></div><div class="gmail_default"><br></div><div class="gmail_default">You need to fix the do loop to go from 0 to n_files-1:</div><div class="gmail_default">
<p class="m_4075892192357188861gmail-p1"><span class="m_4075892192357188861gmail-s1"> </span><span class="m_4075892192357188861gmail-s2">do</span><span class="m_4075892192357188861gmail-s1"> i_file = 0,n_files-1</span></p><p class="m_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_4075892192357188861gmail-p1">Good luck,</p><p class="m_4075892192357188861gmail-p1"><br></p><p class="m_4075892192357188861gmail-p1">--Mary</p></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">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="h5"><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_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_4075892192357188861m_8783418963100875406gmail-s1">(0)<span class="m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>elevation</span></p>
<p class="m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_4075892192357188861m_8783418963100875406gmail-s1">(1)<span class="m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>azimuth</span></p>
<p class="m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_4075892192357188861m_8783418963100875406gmail-s1">(2)<span class="m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>gate</span></p>
<p class="m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_4075892192357188861m_8783418963100875406gmail-s1">(3)<span class="m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>latitude</span></p>
<p class="m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_4075892192357188861m_8783418963100875406gmail-s1">(4)<span class="m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>longitude</span></p>
<p class="m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_4075892192357188861m_8783418963100875406gmail-s1">(5)<span class="m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>altitude</span></p>
<p class="m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_4075892192357188861m_8783418963100875406gmail-s1">(6)<span class="m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>rays_time</span></p>
<p class="m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_4075892192357188861m_8783418963100875406gmail-s1">(7)<span class="m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>DigitalInstantaneousPrecipitat<wbr>ionRate_RAW</span></p>
<p class="m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_4075892192357188861m_8783418963100875406gmail-s1">(8)<span class="m_4075892192357188861m_8783418963100875406gmail-Apple-tab-span"> </span>DigitalInstantaneousPrecipitat<wbr>ionRate</span></p>
<p class="m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_4075892192357188861m_8783418963100875406gmail-s1">fatal:Variable (elevation) is undefined</span></p>
<p class="m_4075892192357188861m_8783418963100875406gmail-p1"><span class="m_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_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="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>