[ncl-talk] problem with adding file

Dennis Shea shea at ucar.edu
Tue Aug 29 08:42:23 MDT 2017


By default, NCL always looks in the 'current directory'.
My guess is that the data file is not in the same directory as the NCL
script.

dirp = "/some/path/to/file/"
filp   = "precip.mon.total.v6.nc"

pthp = dirp + filp
f       = addfile(pthp, "r")

or

f = addfile(dirp + filp, "r")


On Tue, Aug 29, 2017 at 8:26 AM, Setareh Rahimi <setareh.rahimi at gmail.com>
wrote:

> Dear all,
>
> Once I put my NCL command line in NCL environment, it returns me an error.
>
>  Please have a look at the attached files, which contain a screenshot of
> the error and my script.
>
> Please help me as soon as possible.
>
> Best wishes,
> --
> S.Rahimi
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170829/c531ad37/attachment.html>


More information about the ncl-talk mailing list