<div dir="ltr"><div><div>Hi,<br><br></div>Are you getting the &quot;Either file doesn&#39;t exist, or NCL does not have OPeNDAP capabilities on this system&quot;  message, or some other error -- I&#39;m getting a SEGV out of the isfilepresent() function call.   Ncl is optionally built with OpenDAP, and it may be that your version was built without it?<br><br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 1, 2016 at 1:03 PM, Ugo Merlini <span dir="ltr">&lt;<a href="mailto:umerlini@enet.it" target="_blank">umerlini@enet.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m trying to to retrieve form ncep opendap server asubset of data<br>
limiting the usage of the internet band speed up all the script.  In<br>
Grads and in NCO is possibile (but this last give me many reading error)<br>
is there a way to it in NCL?<br>
<br>
Regards<br>
Ugo<br>
<br>
here my script<br>
<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/contrib/calendar_decode2.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/contrib/ut_string.ncl&quot;<br>
<br>
begin<br>
   data_sistema =systemfunc(&quot;date -d &#39;-1 day&#39; +&#39;%Y%m%d&#39;&quot;)<br>
<br>
   http1 = &quot;<a href="http://nomads.ncep.noaa.gov:9090/dods/gfs_0p25/gfs" rel="noreferrer" target="_blank">http://nomads.ncep.noaa.gov:9090/dods/gfs_0p25/gfs</a>&quot;<br>
   http2 = systemfunc(&quot;date -d &#39;-1 day&#39; +&#39;%Y%m%d&#39;&quot;)<br>
   http3 = &quot;gfs_0p25&quot;<br>
<br>
<br>
       filename = http1 + http2 + &quot;/&quot; + http3 + &quot;_00z&quot;<br>
       data_run_temp = data_sistema + &quot; 0000&quot;<br>
       data_run = systemfunc( &quot;date -u -d &#39;&quot;+ data_run_temp +&quot;&#39; &#39;+%s&#39;&quot; )<br>
       run = &quot;gfs_0p25_00&quot;<br>
       print(filename)<br>
<br>
<br>
<br>
     exists = isfilepresent(filename)<br>
     if(.not.exists) then<br>
       print(&quot;OPeNDAP isfilepresent test unsuccessful.&quot;)<br>
       print(&quot;Either file doesn&#39;t exist, or NCL does not have OPeNDAP<br>
capabilities on this system&quot;)<br>
     else<br>
       print(&quot;OPeNDAP isfilepresent test successful.&quot;)<br>
       gfs = addfile(filename,&quot;r&quot;)<br>
       vars = getfilevarnames(gfs)<br>
     end if<br>
<br>
end<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>
</blockquote></div><br></div>