[gradsusr] How to define the diretory in grads script?

LI Qi liqi123sh at qq.com
Tue Apr 12 07:18:17 EDT 2016


Thank you very much!
It works perfect!


Best,
Qi


Message: 8
Date: Tue, 12 Apr 2016 13:03:23 +0200
From: Davide Sacchetti <davide.sacchetti at arpal.gov.it>
Subject: Re: [gradsusr] How to define the diretory in grads script?
To: gradsusr at gradsusr.org
Message-ID: <1460459003.20354.67.camel at arpal.gov.it>
Content-Type: text/plain; charset="UTF-8"

very easy:
dir = 'E:\data\merge_pcp\2010\jun\'
'open 'dir'a.ctl'
bye bye
Davide

On Tue, 2016-04-12 at 18:17 +0800, LI Qi wrote:
> e.g., the .ctl file, data, and output figs are all in the same
> directory
> 
> 
> how do I define the dir in the .gs script like
> 
> 
> dir = 'E:\data\merge_pcp\2010\jun\'
> 
> 
> 'open 'dir+'a.ctl'
> ...
> 'gxprint 'dir+'\rain24h.png' 
> 
> 
> so I can just modify the "dir"
> 
> 
> Any hint will be appreciated!
> _______________________________________________
> 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/20160412/e8102eb5/attachment.html 


More information about the gradsusr mailing list