[gradsusr] (no subject)

Evgeny Gavrilov eugen420 at gmail.com
Sat May 8 14:42:03 EDT 2021


"i" from while.

maps = 20
  i = 1
  while ( i<maps )
'set t ' i

2) a-a(t=1) also has a report about constant field (value=0)

'reinit'

'sdfopen https://nomads.ncep.noaa.gov/dods/gfs_0p25/gfs20210508/gfs_0p25_12z
'

'set mpdset hires'
'set lon 10 30'
'set lat 40 50'

'set display color white'

'set gxout shaded'
'define a = tmp2m'
'd a-a(t-1)'
'cbarm'

'printim C:\Users\for\temp.png x800 y600'

'clear'

return

On Sat, May 8, 2021 at 10:11 PM Jeff Duda <jeffduda319 at gmail.com> wrote:

> 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
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20210508/38c5b777/attachment.html>


More information about the gradsusr mailing list