[gradsusr] Write a vector to vary in time

Isilda Menezes isilda at uevora.pt
Wed May 10 09:56:33 EDT 2017


Hello, I would like to create a new vector to vary in time depending on the
variation of the temperature field that I open in several files:

I would

'set z 1'
nfiles=124
i=1
while (i<=nfiles)
    'temp(t='i')=tmp2m.'i'(t=1)-273.15'
  i=i+1
endwhile

But I have difficulties because grads does not accept this way, nor this:

'set z 1'
nfiles=124
i=1
while (i<=nfiles)
    'temp.'i'(t=1)=tmp2m.'i'(t=1)-273.15'
  i=i+1
endwhile

or this:

set z 1'
nfiles=124
i=1
while (i<=nfiles)
    'temp.'i'=tmp2m.'i'(t=1)-273.15'
  i=i+1
endwhile

You can help me to solve this question?

Best regards,
Isilda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170510/7a3a3bd2/attachment.html 


More information about the gradsusr mailing list