<div dir="ltr">Hi Ruben, <div><br></div><div>You may need to list the files first:</div><div><br></div><div>fils = systemfunc(&quot;ls PATHTOFILES/*<a href="http://radar.nc">radar.nc</a>&quot;)</div><div>ra = addfiles(fils,&quot;r&quot;)</div><div><br></div><div>To read off the variable, you would then need the following:</div><div><br></div><div>accum = ra[:]-&gt;ACCUM_Z_ZDR</div><div><br></div><div>See Example 1:</div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml</a><br></div><div><br></div><div>Liz.</div><div><br></div><div><br></div><div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Message: 5<br>
Date: Tue, 21 Jul 2015 16:19:09 -0600<br>
From: Ruben Santos &lt;<a href="mailto:jorge.ruben.santos@gmail.com">jorge.ruben.santos@gmail.com</a>&gt;<br>
Subject: [ncl-talk] Reading NETCDF files OK with NCVIEW but Not<br>
        Working in      NCL<br>
To: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
Message-ID:<br>
        &lt;CAK2+unCVN+FkF=3vbAExV_iou46hw=<a href="mailto:SU5bBF3zySzV-rGAeQXw@mail.gmail.com">SU5bBF3zySzV-rGAeQXw@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Hello,<br>
<br>
 I am having problems reading a netcdf file with addfile command, whereas<br>
the same file can be read  with no inconvenient by using ncview commad.<br>
<br>
<br>
*The following ncl code:*<br>
<br>
 ra=addfiles(&quot;*<a href="http://radar.nc" rel="noreferrer" target="_blank">radar.nc</a> &lt;<a href="http://radar.nc" rel="noreferrer" target="_blank">http://radar.nc</a>&gt;*&quot;,&quot;r&quot;)<br>
<br>
printVarSummary(ra)<br>
<br>
accum=ra-&gt;ACCUM_Z_ZDR<br>
<br>
 *Produces the following error message:*<br>
<br>
<br>
Variable: ra<br>
Type: list &lt;concat | fifo&gt;<br>
Total items: 1<br>
<br>
fatal:(ra) not reference to a valid file<br>
fatal:[&quot;Execute.c&quot;:8575]:Execute: Error occurred at or near line 124 in<br>
file readgsmap.ncl<br>
<br>
<br>
 I attach the file *<a href="http://radar.nc" rel="noreferrer" target="_blank">radar.nc</a> &lt;<a href="http://radar.nc" rel="noreferrer" target="_blank">http://radar.nc</a>&gt; *and the ncview_radar.png to<br>
show the variable list.<br>
<br>
 Help is really appreciated!!!<br>
<br>
Thanks<br>
<br>
Ruben<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/ca2bda16/attachment.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/ca2bda16/attachment.html</a><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: <a href="http://radar.nc" rel="noreferrer" target="_blank">radar.nc</a><br>
Type: application/x-netcdf<br>
Size: 947818 bytes<br>
Desc: not available<br>
Url : <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/ca2bda16/attachment.nc" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/ca2bda16/attachment.nc</a><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: ncview_radar.png<br>
Type: image/png<br>
Size: 18883 bytes<br>
Desc: not available<br>
Url : <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/ca2bda16/attachment.png" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/ca2bda16/attachment.png</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
End of ncl-talk Digest, Vol 140, Issue 34<br>
*****************************************<br>
</blockquote></div><br></div></div></div>