[ncl-talk] reading files hosted online

Jayant jayantkp2979 at gmail.com
Thu Jun 15 08:45:00 MDT 2023


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!

On Thu, Jun 15, 2023 at 11:37 AM Dave Allured - NOAA Affiliate <
dave.allured at noaa.gov> wrote:

> 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.
>
> First ensure that the remote is really an OPeNDAP server.  Then check your
> filename string outside of NCL, with *ncdump -h "filename"* on the linux
> command line.  Read more about remote file access in example 4 on the
> addfile function page, on the NCL website.
>
>
> On Thu, Jun 15, 2023 at 8:08 AM Jayant via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Hi!
>> Is it possible to read files hosted on an ftp server or website from
>> inside ncl script?
>> I get following error:
>> syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET
>> or SCAN_ERROR
>> 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>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20230615/030aafb1/attachment.htm>


More information about the ncl-talk mailing list