[gradsusr] Not to use 'write' command

植山秀紀 ueyama at affrc.go.jp
Tue Apr 10 01:26:59 EDT 2018


Hi, everyone,

I'd like to save GRADS output  as ascii text file.
I tried to run below script;

'open sample.ctl'
'set t 1 5'
'set z 4'
'set gxout print'
'd tk'
ret=write(test.txt, result)

Error description below was come out;

  Syntax Error : Invalid Operand
  'write' not a variable or function name
  Error occurred at column 1
DEFINE error : Invalid expression

I tried to use two version of GRADS: 1.9b4 and 2.1.1.b0 on CentOS6 linux.
I want to know a reason not to use 'write' command and how to save GRADS 
outputs as ascii text file.

Sincerely yours,

Hideki Ueyama
National Agriculture and Food Research Organization





More information about the gradsusr mailing list