[gradsusr] Unknown source of errors
Jennifer Adams
jma at cola.iges.org
Fri Nov 1 18:16:43 EDT 2013
On Oct 31, 2013, at 9:27 PM, juan pablo sierra perez wrote:
> Hello everyone
>
> I have found differences in the results in this two ways to proceed:
>
> First one:
> n2=14
> 'define s=ave('var', t='n2'-11, t='n2'-9)'
The expression needs to look like this (note I just moved some of the ' in your t= expressions)
s = ave('var',t='n2-11',t='n2-9')
GrADS will not perform mathematical operations within the args to ave. Those need to be resolved inside your script instead.
--Jennifer
>
> Second one:
> 'define s=ave('var', t=3, t=5)'
>
> How can I use the "average" command with a math expression used to define the times values avoiding the errors?
> Why is this error produced?
>
> Thanks in advance!
>
> Regrets
>
> Juan
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer M. Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
111 Research Hall, Mail Stop 2B3
George Mason University
4400 University Drive
Fairfax, VA 22030
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20131101/dd3148b7/attachment.html
More information about the gradsusr
mailing list