[ncl-talk] fatal:syntax error

Barry Lynn barry.h.lynn at gmail.com
Fri May 5 07:35:38 MDT 2017


Hi:

I stil think it is the decimal point causing the problem, but one the NCL
folk (or someone else) will have to clarify how to read a variable like
this.

Are you able to test reading a different variable that does not have
decimal points?

On Fri, May 5, 2017 at 4:19 PM, Debasish Hazra <debasish.hazra5 at gmail.com>
wrote:

> Thanks Barry. I put
>
> rmse1 =  a1->series_cnt_RMSE_fcstgt0.05_and_obsgt0.05(:,:)
> but still getting the syntax error at the end. I attached screen shot oft
> he error I got. Any help
>
> Debasish
>
> On Thu, May 4, 2017 at 11:09 PM, Barry Lynn <barry.h.lynn at gmail.com>
> wrote:
>
>> Hi:
>>
>> Assuming you copied the variable name correctly, perhaps the decimal
>> point is causing the problem.  I am not sure how to work around this, but
>> you might try add (:,:) at the end of your read so that NCL might possibly
>> know that the variable name continues.
>>
>> Barry
>>
>> On Fri, May 5, 2017 at 5:30 AM, Debasish Hazra <debasish.hazra5 at gmail.com
>> > wrote:
>>
>>> Hi,
>>>
>>> I am trying to read bunch of variable in a netcdf file, which shows the
>>> following if I do ncl_filedump :
>>>
>>> float series_cnt_RMSE_fcstgt0.05_and_obsgt0.05 ( lat, lon )
>>>          _FillValue :   -9999
>>>          name : RMSE
>>>          long_name :    Root mean squared error
>>>
>>> But, when I am trying to read as :
>>>
>>>  rmse1 =  a1->series_cnt_RMSE_fcstgt0.05_and_obsgt0.05
>>>
>>> fatal:syntax error: line 24 in file series_plot.ncl before or near .05
>>>         rmse1 =  a1->series_cnt_RMSE_fcstgt0.05
>>> ---------------------------------------------------------------^
>>>
>>> Any help on this.Thanks
>>>
>>> Debasish
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>>
>> --
>> Barry H. Lynn, Ph.D
>> Senior Lecturer,
>> The Institute of the Earth Science,
>> The Hebrew University of Jerusalem,
>> Givat Ram, Jerusalem 91904, Israel
>> Tel: 972 547 231 170
>> Fax: (972)-25662581
>>
>> C.E.O, Weather It Is, LTD
>> Weather and Climate Focus
>> http://weather-it-is.com
>> Jerusalem, Israel
>> Local: 02 930 9525
>> Cell: 054 7 231 170
>> Int-IS: x972 2 930 9525
>> US 914 432 3108 <(914)%20432-3108>
>>
>
>


-- 
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170505/fb62474d/attachment.html 


More information about the ncl-talk mailing list