Re: do loop errors

From: Scott Capps <scapps_at_nyahnyahspammersnyahnyah>
Date: Tue, 22 Jan 2008 12:45:08 -0800

Probably due to the syntax. Try removing the spaces:

do level = 0,nlevels-1

Should be:

do level=0,nlevels-1

end do

Erik Noble wrote:
> Dear wonderful NCL users:
>
> I am getting errors at the end of my do loops and at the end of
> script. I have 2 do loops in my program.
> Could i have some help? IS there some obvious syntax error that I am
> overlooking?
>
> Thank you for your help ahead of time.
> Sincerely,
> Erik
>
> Erik_at_noble:/Volumes/Data_and_Models/ncl_scripts:ncl NCL_ascii_WRF_UandV.ncl
> Copyright (C) 1995-2007 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 5.0.0
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> fatal:syntax error: line 88 in file NCL_ascii_WRF_UandV.ncl before or near do
> end do
> ---------^
>
> fatal:error in statement
> fatal:syntax error: line 91 in file NCL_ascii_WRF_UandV.ncl before or near do
> end do
> -------^
>
> fatal:error in statement
> fatal:syntax error: line 93 in file NCL_ascii_WRF_UandV.ncl before or near \n
> end
> ---^
>
> fatal:error in statement
> fatal:syntax error: line -1 before or near
>
> ^
>
> fatal:error in statement
> Erik_at_noble:/Volumes/Data_and_Models/ncl_scripts:
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

-- 
Scott Capps
University of California, Irvine
Department of Earth System Science
Croul Hall
Irvine, CA 92617

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jan 22 2008 - 13:45:08 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 23 2008 - 14:19:33 MST