[gradsusr] (no subject)

Jeff Duda jeffduda319 at gmail.com
Sat May 8 14:06:24 EDT 2021

1a) How is 'i' set?
1b) I don't think the grads scripting language supports math in a command
line command like that. You'd have to do something like
i = 1
i2 = i-1
'd a(t='i') - a(t='i2')'

2) This command is equivalent and does not require a script variable
(provided your dimension environment is set appropriately): 'd a - a(t-1)'

Jeff Duda

On Sat, May 8, 2021 at 12:01 PM Evgeny Gavrilov <eugen420 at gmail.com> wrote:

> why this method does not working?
> 'set gxout shaded'
> 'define a=tmp2m'
> 'd a(t='i') - a(t='i-1')'
> report: constant field. value = 0
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

Jeff Duda, Research Scientist
University of Colorado Boulder
Cooperative Institute for Research in Environmental Sciences
NOAA/OAR/ESRL/Global Systems Laboratory
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20210508/05471723/attachment.html>

More information about the gradsusr mailing list