Re: NCL interpolation Script problem

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 10 2014 - 15:38:32 MDT

It could also be a missing "end if", "end do", or "end" statement somewhere.

Try running this short script, with the "end" and/or "end if" commented out to see the results:

begin
   print("hello world")
   
   x = 5.5
    if(x.gt.5) then
       print("x > 5")
    end if
end

On Mar 6, 2014, at 9:29 PM, Dennis Shea <shea@ucar.edu> wrote:

> [a] The
> "fatal: error in statement"
> "fatal: syntax error: line -1 before or near"
>
> may be the error of interest. Based on experience,
> it is likely that there is an illegal or missing
> character in the 1st line of the script.
>
> [b] I would suggest interpolating the U and V components rather
> than wind speed and direction. Then calculate the wind speed
> and direction from the interpolated wind components.
>
> FYI:
> http://www.ncl.ucar.edu/Document/Functions/Contributed/wind_direction.shtml
>
> also
> http://www.ncl.ucar.edu/Document/Functions/Contributed/wind_component.shtml
>
> On 3/6/14, 8:43 PM, Victor Savatia Indasi wrote:
>> Dear NCL users,
>
>> I have written an NCL script to help me interpolate wind wind speed and wind direction to 45m above ground level from wrf output file. However, I get this error when I run this script ("synatax error:line 130 in file windspeed4.ncl" - this line contain the end statement).
>>
>> Please find the error screen print and the script attached.
>>
>> I hope to hear your suggestions on how to solve this. I hope to hear from you soon.
>>
>> Thank you.
>> Victor.
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 10 15:38:44 2014

This archive was generated by hypermail 2.1.8 : Fri Mar 14 2014 - 15:08:52 MDT