<div dir="ltr">Dear Najib:<div><br></div><div><br></div><div>I get this error when I forget to index the arrays being compared.</div><div>e.g.,</div><div>check = ismissing(x(j,i))</div><div>if (check.eq.False)then</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 16, 2020 at 12:22 PM 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></div>
<div><br></div><div dir="ltr">Hello Rick,</div><div dir="ltr">Oh yes..Thank you again. After effecting the corrections, the errors narrowed down to this:</div><div dir="ltr"><br></div><div dir="ltr"><div><div>fatal:Conditional statements (if and do while) require SCALAR logical values, see all and any functions.</div><div><br></div><div dir="ltr">With this I try changing " If " statement with " where" function but i am missing something and still not executing properly.</div></div><div dir="ltr"><br></div><div dir="ltr"><span>fatal:syntax error: where is a function not a procedure; return value must be referenced.</span><br></div><div dir="ltr"><span><br></span></div><div dir="ltr">Kindly help.</div><div dir="ltr"><br></div><div dir="ltr">Thank you</div><div dir="ltr"><br></div><div dir="ltr">Najib</div><br></div><div dir="ltr"><br></div>
</div><div id="gmail-m_-3789005561461207809yahoo_quoted_2883724355">
<div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
<div>
On Thursday, October 15, 2020, 06:30:54 PM GMT+1, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="gmail-m_-3789005561461207809yiv2837156826"><div><div dir="ltr"><div>Hi Najib,</div><div><br clear="none"></div><div>You can explore the opendap site with a browser:<br clear="none"></div><div><br clear="none"></div><div><a rel="nofollow" shape="rect" href="https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/contents.html" target="_blank">https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/contents.html</a></div><div><br clear="none"></div><div>You'll see that for 2013-04, the day is (oddly) 07 instead of 01. Indeed the pattern seems to be day 01, but there are occasionally other days in the mix.</div><div><br clear="none"></div><div>Rick</div><div><br clear="none"></div><div><br clear="none"></div></div><br clear="none"><div id="gmail-m_-3789005561461207809yiv2837156826yqt35548"><div><div dir="ltr">On Thu, Oct 15, 2020 at 11:05 AM Najib Yusuf <<a rel="nofollow" shape="rect" href="mailto:najibgal@yahoo.com" target="_blank">najibgal@yahoo.com</a>> wrote:<br clear="none"></div><blockquote 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></div>
<div dir="ltr">Hello Rick,</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Thank you Rick. I did print the variables and they return as you pointed out, so i corrected the urls to <span>NASA_URL1 = "<a rel="nofollow" shape="rect" href="https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.01/" target="_blank">https://opendap.larc.nasa.gov/opendap/MOPITT/MOP03JM.008/2013.01.01/</a>". But still i got this error:</span></div><div dir="ltr"><br clear="none"></div><div dir="ltr"><div><div>syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR.</div><div dir="ltr"><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:<a rel="nofollow" shape="rect" href="mailto:support@" target="_blank">support@</a>......</span><br clear="none"></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr">Could it be permission issue?</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Thank you</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Najib</div><div><br clear="none"></div></div><br clear="none"></div>
</div><div id="gmail-m_-3789005561461207809yiv2837156826gmail-m_-3404481670872314721yahoo_quoted_2814774605">
<div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
<div>
On Thursday, October 15, 2020, 05:15:57 PM GMT+1, Rick Brownrigg <<a rel="nofollow" shape="rect" href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:
</div>
<div><br clear="none"></div>
<div><br clear="none"></div>
<div><div id="gmail-m_-3789005561461207809yiv2837156826gmail-m_-3404481670872314721yiv6128088015"><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><div id="gmail-m_-3789005561461207809yiv2837156826gmail-m_-3404481670872314721yiv6128088015yqt83268"><div dir="ltr">On Thu, Oct 15, 2020 at 7:40 AM Najib Yusuf via ncl-talk <<a rel="nofollow" shape="rect" href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br clear="none"></div><blockquote 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_-3789005561461207809yiv2837156826gmail-m_-3404481670872314721yiv6128088015gmail-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" 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,Arial,sans-serif"><a rel="nofollow" shape="rect" 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,Arial,sans-serif"><a rel="nofollow" shape="rect" 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 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" 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 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" href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div></div></div></div></div>
</div>
</div></div></blockquote></div></div></div></div></div>
</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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>