[gradsusr] define a array time series of multiple files

Isilda Menezes isilda at uevora.pt
Thu Jan 5 17:36:37 EST 2017


Hello, I want created a ave in a gs script with multiple open files with
the same time=1.

I made a loop like this,

i=1
while (i<124)
'set dfile 'i
'define ll(t='i')=TMP2m'
i=i+1
endwhile
'd ave(ll,t=1,t=124)'

But a have this error:

DEFINE error:  Name too long; missing '='
Syntax Error:  Invalid Operand
  'll' not a variable or function name
Operation Error:  Error from ave function
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = ave(ll,t=1,t=124)
Error opening script file: cbarn.gs

I've been trying to do it in other ways but I always get errors. Can
someone give me some advice how to solve this problem.

Thanks,
Isilda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170105/225b7dcf/attachment.html 


More information about the gradsusr mailing list