<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Is the only thing you are trying in your code &quot;print(f)&quot;??
<div>I'm not sure that will work. Try adding something like this:</div>
<div><br>
</div>
<div>getfilevarnames(f)</div>
<div><br>
</div>
<div>or something else from the listed functions at <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml" target="_blank" style="font-size: 10pt;">
https://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml</a></div>
<div><br>
</div>
<div>It may be reading your file after all, but the print statement isn't the way to access information in the file.</div>
<div><br>
</div>
<div>Best</div>
<div>Kacie</div>
<div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF540839" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> xinzhou.sys@gmail.com [xinzhou.sys@gmail.com] on behalf of Xin Zhou [xin.zhou.1@stonybrook.edu]<br>
<b>Sent:</b> Tuesday, October 25, 2016 3:04 PM<br>
<b>To:</b> Kacie Shourd<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] Error reading grib file<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr"><span style="font-size:12.8px">Hi&nbsp;</span><span style="color:rgb(0,0,0); font-family:tahoma; font-size:13.3333px">Kacie,</span>
<div style="font-size:12.8px"><span style="color:rgb(0,0,0); font-family:tahoma; font-size:13.3333px"><br>
</span></div>
<div style="font-size:12.8px"><span style="color:rgb(0,0,0); font-family:tahoma; font-size:13.3333px">Thank you! I tried adding adding different file extensions (.grib, .grib1 etc.), but none of them worked. For some unknown reason, the file still cannot be
 opened by addfile.</span></div>
<div style="font-size:12.8px"><span style="color:rgb(0,0,0); font-family:tahoma; font-size:13.3333px"><br>
</span></div>
<div style="font-size:12.8px"><span style="color:rgb(0,0,0); font-family:tahoma; font-size:13.3333px">Best,</span></div>
<div style="font-size:12.8px"><span style="color:rgb(0,0,0); font-family:tahoma; font-size:13.3333px">Xin</span></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Oct 25, 2016 at 5:26 PM, Kacie Shourd <span dir="ltr">
&lt;<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi, Xin!
<div><br>
</div>
<div>Try adding the file extension, like this:</div>
<div><br>
</div>
<div><span style="font-family:&quot;Times New Roman&quot;; font-size:16px">f = addfile(&quot;./gage.hrly.prcp.<wbr>20020101<b><i>.grib1</i></b>&quot;,&quot;r&quot;)</span></div>
<div><font face="Times New Roman"><span style="font-size:16px"><br>
</span></font></div>
<div>
<div style="font-size:13.3333px">Best,</div>
<div style="font-size:13.3333px">Kacie</div>
<div style="font-size:13.3333px"><br>
</div>
<div style="font-size:13.3333px">---</div>
<div style="font-size:13.3333px"><span style="font-family:monospace; font-size:16px">Kacie N. Shourd</span><br style="font-family:monospace; font-size:16px">
<span style="font-family:monospace; font-size:16px">µå¸²</span><br style="font-family:monospace; font-size:16px">
<br style="font-family:monospace; font-size:16px">
<span style="font-family:monospace; font-size:16px">Graduate Research Assistant</span><br style="font-family:monospace; font-size:16px">
<span style="font-family:monospace; font-size:16px">Desert Research Institute</span><br style="font-family:monospace; font-size:16px">
<span style="font-family:monospace; font-size:16px"><a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a></span><br style="font-family:monospace; font-size:16px">
<span style="font-family:monospace; font-size:16px">Work: <a href="tel:%28775%29%20674-7049" value="&#43;17756747049" target="_blank">
(775) 674-7049</a></span><br style="font-family:monospace; font-size:16px">
</div>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr>
<div id="m_-7762840216148991479divRpF130364" style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b>
<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> [<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>] on behalf of Xin Zhou [<a href="mailto:xin.zhou.1@stonybrook.edu" target="_blank">xin.zhou.1@stonybrook.edu</a>]<br>
<b>Sent:</b> Tuesday, October 25, 2016 2:03 PM<br>
<b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> [ncl-talk] Error reading grib file<br>
</font><br>
</div>
<div>
<div class="h5">
<div></div>
<div>
<div dir="ltr">Dear All,
<div><br>
</div>
<div>I'm looking at the 4km resolution hourly precipitation from NCEP/CPC (<a href="http://rda.ucar.edu/datasets/ds507.5/" target="_blank">http://rda.ucar.edu/datasets/<wbr>ds507.5/</a>). The documented data format is GRIB1, but when using &quot;addfile&quot; no variables
 were printed. &nbsp;</div>
<div><br>
</div>
<div>
<div>ncl 0&gt; f = addfile(&quot;./gage.hrly.prcp.<wbr>20020101&quot;,&quot;r&quot;)</div>
</div>
<div>ncl 1&gt; print(f)<br>
</div>
<div><br>
</div>
<div>
<div>Variable: f</div>
<div>Type: file</div>
<div>(0) File Missing Value : -1</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Does anyone have a clue how to access the data?</div>
<div>Thank you all!</div>
<div><br>
</div>
<div>Best,</div>
<div>Xin</div>
<div><br>
</div>
<div><br>
<div class="m_-7762840216148991479gmail-m_-7794817485997092723gmail_signature">
<div dir="ltr">
<div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<font face="Arial" size="2">PUBLIC RECORDS NOTICE: In accordance with NRS Chapter 239, this email and responses, unless otherwise made confidential by law, may be subject to the Nevada Public Records laws and may be disclosed to the public upon request.</font>
</div>
</blockquote>
</div>
<div><br>
</div>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div><span style="color:rgb(31,73,125); font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; font-size:11pt"><font color="#000000" size="3"></font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>