<html><head></head><body><div class="ydp3e35a86byahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
<div dir="ltr" data-setdir="false">Hello Rick,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank you Rick. I did print the variables and they return as you pointed out, so i corrected the urls to <span>NASA_URL1 = "https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.01/". But still i got this error:</span></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><div>syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR.</div><div dir="ltr" data-setdir="false"><span>The specific error message associated with your request was:</p> <blockquote> <p><strong>Failed to locate resource: /MOPITT/MOP03JM.008/2013.04.01/MOP03JM-201304-L3V95.6.3.he5.dds </strong></p> </blockquote> <p align="left"> If you think that the server is broken (that the URL you submitted should have worked), then please contact the OPeNDAP user support coordinator at: <a href="mailto:support@......</span><br></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false">Could it be permission issue?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank you</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Najib</div><div><br></div></div><br></div>
</div><div id="yahoo_quoted_2814774605" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Thursday, October 15, 2020, 05:15:57 PM GMT+1, Rick Brownrigg <brownrig@ucar.edu> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv6128088015"><div><div dir="ltr"><div>Hi,</div><div><br clear="none"></div><div>I don't know for certain the issue, but in building up your list of files to be read, you use variables constructed like this:</div><div><br clear="none"></div><div>f_1 = NASA_URL1 + NASA_FILP1</div><div><br clear="none"></div><div>both the URL part and the FILP part contain the filename, so that F_1 would appear to be incorrectly constructed. Try printing these variables to see what's happening.</div><div><br clear="none"></div><div>Hope that helps...</div><div>Rick</div><div><br clear="none"></div></div><br clear="none"><div class="yiv6128088015gmail_quote"><div class="yiv6128088015yqt6834685576" id="yiv6128088015yqt83268"><div class="yiv6128088015gmail_attr" dir="ltr">On Thu, Oct 15, 2020 at 7:40 AM Najib Yusuf via ncl-talk <<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@mailman.ucar.edu" target="_blank" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br clear="none"></div><blockquote class="yiv6128088015gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div dir="ltr"><div><div id="yiv6128088015gmail-m_5437738115339868534ydp81bd4cb9yiv9474064069" style="font-family:Helvetica, Arial, sans-serif;"><div><div dir="ltr"><font size="2">Dear NCL experts,</font></div><div dir="ltr" style="font-size:16px;"><br clear="none"></div><div dir="ltr"><font size="2">Using an example in ncl web page (see below) I was able to read a file from the OPeNDAP server, i tried to read multiple files (12) using similar approach by separating the files with comma like (/"<span style="color:rgb(0,0,0);font-family:Helvetica, Arial, sans-serif;"><a rel="nofollow" shape="rect" target="_blank" href="https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.01/MOP03JM-201301-L3V95.6.3.he5">https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.01/MOP03JM-201301-L3V95.6.3.he5</a></span>","<span style="color:rgb(0,0,0);font-family:Helvetica, Arial, sans-serif;"><a rel="nofollow" shape="rect" target="_blank" href="https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.02/MOP03JM-201302-L3V95.6.3.he5">https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.02/MOP03JM-201302-L3V95.6.3.he5</a></span>","<span style="color:rgb(0,0,0);font-family:Helvetica, Arial, sans-serif;"><a rel="nofollow" shape="rect" target="_blank" href="https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.03/MOP03JM-201303-L3V95.6.3.he5">https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.03/MOP03JM-201303-L3V95.6.3.he5</a></span>"/) but it didnt work for me though when i test run the files one after the other it reads well. Also, I tried "systemfunc" and "wildcards * but is like both doesn't work for OPeNDAP. Kindly guide me how to read multiple files from OPeNDAP server. I also tried another approach (see attach file) but still didnt work. Thank you</font></div><div dir="ltr" style="font-size:16px;"><br clear="none"></div><div dir="ltr" style="font-size:16px;"><br clear="none"></div><div dir="ltr"><div><div><font size="2"> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</font></div><div><font size="2"> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</font></div><div><font size="2"> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" ; BRH</font></div><div><font size="2"><br clear="none"></font></div><div><font size="2"> begin</font></div><div><font size="2"><br clear="none"></font></div><div><font size="2">;--- Using the data files from url</font></div><div><font size="2"> NASA_URL = "<a rel="nofollow" shape="rect" target="_blank" href="https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.12.01/MOP03JM-201312-L3V95.6.3.he5">https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.12.01/MOP03JM-201312-L3V95.6.3.he5</a>"</font></div><div><font size="2"> </font></div><div><font size="2">; f = addfile(NASA_URL,"r")</font></div><div><font size="2"> exists = isfilepresent(NASA_URL)</font></div><div><font size="2"> if(.not.exists) then</font></div><div><font size="2"> print("OPeNDAP test unsuccessful.")</font></div><div><font size="2"> print("Either the file doesn't exist, or NCL does")</font></div><div><font size="2"> print("not have OPeNDAP cabilities on this system.")</font></div><div><font size="2"> else</font></div><div><font size="2"> f = addfile(NASA_URL,"r")</font></div><div><font size="2"> vnames = getfilevarnames(f)</font></div><div><font size="2"> print(vnames)</font></div><div><font size="2"> end if</font></div><div><font size="2">end</font></div></div><br clear="none"></div><div dir="ltr"><font size="2">Thank you for you help.</font></div><div dir="ltr"><font size="2"><br clear="none"></font></div><div dir="ltr"><font size="2">Najib Yusuf Galadanci</font></div><div dir="ltr"><font size="2">CAR-NASRDA. Nigeria</font></div><div dir="ltr"><font size="2">234 80 3871 4158</font></div></div></div><span style="font-family:Helvetica, Arial, sans-serif;">________________________</span></div><br clear="none"></div></div></div>_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@mailman.ucar.edu" target="_blank" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div></div></div></div></div>
</div>
</div></body></html>