[ncl-talk] Error in ncl script
Dave Allured - NOAA Affiliate
dave.allured at noaa.gov
Wed Aug 21 05:13:09 MDT 2024
Roopashree, thanks for posting the complete error message. That message
contains an important clue. There are several invisible unicode characters
that should not be there on line 18, in file *ex10.ncl*.
Try deleting the unicode characters U+2060 (non-break zero space). Or
else, delete line 18, and replace it with the same line, copied directly
from example 1 on the *ndtooned* documentation page. When I copied the 3
lines directly from that website, that short example worked perfectly for
me.
The file *ex10.ncl* looks like an NCL prepared example script. Where
exactly did you get that file?
On Tue, Aug 20, 2024 at 11:15 PM R Shrivastava via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:
> Dear Sir,
> Thanks very much fir your reply. Following your suggestion, the exact
> error message is posted.
>
> Copyright (C) 1995-2019 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.6.2
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> warning:unicode character encountered ()
> fatal:syntax error: line 18 in file ex10.ncl before or near (/
> a = (/ (/
> ------------^
>
> warning:unicode character encountered ()
> warning:unicode character encountered ()
> warning:unicode character encountered ()
> warning:unicode character encountered ()
> warning:unicode character encountered ()
> warning:unicode character encountered ()
> warning:unicode character encountered ()
> fatal:Syntax Error in block, block not executed
> fatal:error at line 25 in file ex10.ncl
>
> Thanks again
> Warm Regards
> Roopashree
>
>
> On Tue, 20 Aug 2024 at 16:22, Jonathan Buzan <jbuzan at purdue.edu> wrote:
>
>> Hello Roopashree,
>>
>> Thanks for posting your script.
>> It is better to post the specific line and error message that is blowing
>> up the script. Most of the issues are resolved quickly this way.
>> Usually, posting the whole script is only done when another person
>> helping you requests to see the whole code block.
>>
>> Here are helpful guidelines:
>> https://www.ncl.ucar.edu/Support/posting_guidelines.shtml
>>
>> Cheers,
>> -Jonathan
>>
>> On Aug 20, 2024, at 09:40, R Shrivastava via ncl-talk <
>> ncl-talk at mailman.ucar.edu> wrote:
>>
>> Respected Sir/Madam,
>>
>> While executing Example 1 on
>> https://www.ncl.ucar.edu/Document/Functions/Built-in/ndtooned.shtml
>> syntax error is encountered.
>>
>> Script is attached. Please help to resolve it.
>>
>> Thanks
>> Warm Regards
>> Roopashree
>>
>> <ex10.ncl>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240821/24f1f258/attachment.htm>
More information about the ncl-talk
mailing list