[ncl-talk] bug v6.4.0 ?
Kevin Hallock
hallock at ucar.edu
Fri Dec 8 09:33:28 MST 2017
Hi Bertrand,
I just successfully ran this basic script using NCL 6.4.0 on my Mac using the commands you provided:
> toto=(1 2 3)
> ncl titi="\"${toto[*]}\"" script.ncl
Which operating system are you using? Which installation method did you use to install NCL? Does this new NCL v6.4.0 binary work with other scripts?
Also, is it possible that the array of filenames that is being passed to NCL includes files that do not exist?
Kevin
> On Dec 8, 2017, at 1:59 AM, DECHARME Bertrand <bertrand.decharme at meteo.fr> wrote:
>
> Dear
>
> I change my version from v6.3.0 to v6.4.0. I generally use this kind of shell commands (bellow) where I put a character array in argument to my ncl script. Nevertheless, it does not work with v6.4.0
>
> toto=(1 2 3)
> ncl titi="\"${toto[*]}\"" script.ncl
>
> The ncl script (script.ncl) is:
> --------------------------------------------------------------------------------------------------------------------
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
>
> begin
> print(titi)
> gg = str_split(titi," ")
> print(gg)
> end
> -------------------------------------------------------------------------------------------------------------------------
>
> The message error is:
> Copyright (C) 1995-2017 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.4.0
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> fatal: can't find file "2"
>
> So space in argument even between " seems to be not seen by the ncl launch procedure in v6.4.0.
>
> This scripting run in v6.3.0. Have you an issue ?
>
> Many thanks
> Bertrand Decharme
>
> _______________________________________________
> 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/20171208/bfce02ec/attachment.html>
More information about the ncl-talk
mailing list