<div dir="ltr"><div>Hi,</div><div><br></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></div><div>f_1 = NASA_URL1 + NASA_FILP1</div><div><br></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></div><div>Hope that helps...</div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 15, 2020 at 7:40 AM Najib Yusuf via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_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="gmail-m_5437738115339868534ydp81bd4cb9yiv9474064069" style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif"><div><div dir="ltr"><font size="2">Dear NCL experts,</font></div><div dir="ltr" style="font-size:16px"><br></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 Neue",Helvetica,Arial,sans-serif"><a href="https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.01/MOP03JM-201301-L3V95.6.3.he5" target="_blank">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 Neue",Helvetica,Arial,sans-serif"><a href="https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.02/MOP03JM-201302-L3V95.6.3.he5" target="_blank">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 Neue",Helvetica,Arial,sans-serif"><a href="https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.03/MOP03JM-201303-L3V95.6.3.he5" target="_blank">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></div><div dir="ltr" style="font-size:16px"><br></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></font></div><div><font size="2"> begin</font></div><div><font size="2"><br></font></div><div><font size="2">;--- Using the data files from url</font></div><div><font size="2"> NASA_URL  = "<a href="https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.12.01/MOP03JM-201312-L3V95.6.3.he5" target="_blank">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></div><div dir="ltr"><font size="2">Thank you for you help.</font></div><div dir="ltr"><font size="2"><br></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 Neue",Helvetica,Arial,sans-serif">________________________</span></div><br></div></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>