[gradsusr] script to several files

Estefanía Jiménez estefaniajimenez.r at gmail.com
Tue Feb 5 12:33:33 EST 2013


this the script for only one file
*
*
*'reinit'*
*'open /data/climat_6190_2/media2_01.ctl'*
*'set display color white'*
*'c'*
*'enable print /data/climat_6190_2/Lluvia6190_01.gmf'*
*'set gxout shaded'*
*'set mpdset hires'*
*'set lat 7.5 11.5'*
*'set lon -86.5 -82.5'*
*'set cmin 1'*
*'d prec*1000*4'*
*'draw title Precipitaci`6p`0n media diaria 1961-1990 enero'*
*'run /opt/grads30d/scripts/cbarn.gs'*
*'print'*
*'disable print'*
*'!/opt/grads30d/scripts/gxgif -r -i /data/climat_6190_2/Lluvia6190_01.gmf
-o /data/climat_6190_2/Lluvia6190_01.gif'*
*'!rm /data/climat_6190_2/Lluvia6190_01.gmf'*
*'q pos'*
*'quit'*



2013/2/5 Estefanía Jiménez <estefaniajimenez.r at gmail.com>

> Hi all! How can I do to do a script that plots and saves the same image
> for several files? For example, I have 30 files that I need to get the rain
> in an image and save it... I have the script for one file but how can I
> change it to make it work for all the 30 files? So I don't have to run the
> script 30 times...
>
> Thanks!
>
> --
> *Estefanía Jiménez R.*
>
>


-- 
*Estefanía Jiménez R.*
Meteoróloga
Departamento de Climatología e Investigaciones Aplicadas
Instituto Meteorológico Nacional
MINAET
Tel: +506 2222 5616 ext 131
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/e0493925/attachment-0003.html 


More information about the gradsusr mailing list