<div dir="ltr">Thanks Dave, I've checked and found that's not the case. The only ways appears to download locally for analysis. I wonder it would be the same with using python!<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 15, 2023 at 11:37 AM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</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 dir="ltr"><div>Jayant, yes, you can open a remote file with the addfile function, but only if the file is served by an OPeNDAP server.  Your current error message specifically means "file not found", which could mean either a mistake in your filename string, or the remote host is not an OPeNDAP server.  Ignore the part about a SCAN error.  That is merely some internal diagnostics about the remote file error.<br><br>First ensure that the remote is really an OPeNDAP server.  Then check your filename string outside of NCL, with <b>ncdump -h "filename"</b> on the linux command line.  Read more about remote file access in example 4 on the addfile function page, on the NCL website.<br></div><div><br></div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 15, 2023 at 8:08 AM Jayant via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">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 dir="ltr"><div>Hi!</div><div>Is it possible to read files hosted on an ftp server or website from inside ncl script?</div><div>I get following error:</div><div><span style="font-family:monospace">syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR<br>context: <!DOCTYPE^ HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p></body></html></span></div></div>
</blockquote></div></div>
</blockquote></div>