creating CTL inside a GS script

Juan Matias Mendez Perez matias at TROPOSFERA.ATMOSFCU.UNAM.MX
Thu Jan 27 05:03:00 EST 2005


Hi Jose

Try with this:

....

ofile = '\home\veiga\CTLs\prec_control.ctl'

write (ofile,'dset ^CTRL_PREC.bin')
write (ofile,'undef  0.100000E+26')
write (ofile,'title  Controle CCM3 model 1961-1990')
write (ofile,'xdef  289 LINEAR   0.000000  1.250000')
write (ofile,'ydef  181 LINEAR -90.000000  1.000000')
write (ofile,'zdef  1 levels  1000      ')
write (ofile,'tdef  360 linear 12Z01JAN1961 1mo')
write (ofile,'vars  1')
write (ofile,'prec  1 99  Convective+Large-scale precipitation rate
[mm/day] ')
write (ofile,'endvars')


Good luck

Greetings from Mexico
Matias


Jose Augusto Paixao Veiga wrote:

>Dears
>
>I am creating inside my grads script a CTL archive, however I would like to
>put it in an other sub-directory where I am having no success to do this,
>how could I do this correctely?
>
>the following example creates my ctl in the current directory where I am
>running the script, however I would like to put it in an other subdiretory,
>for example.....\home\veiga\CTLs\, how can I do this?
>
>
>reinit
>...
>...
>...
>**********************************************************
>write (prec_control.ctl,'dset ^CTRL_PREC.bin')
>write (prec_control.ctl,'undef  0.100000E+26')
>write (prec_control.ctl,'title  Controle CCM3 model 1961-1990')
>write (prec_control.ctl,'xdef  289 LINEAR   0.000000  1.250000')
>write (prec_control.ctl,'ydef  181 LINEAR -90.000000  1.000000')
>write (prec_control.ctl,'zdef  1 levels  1000      ')
>write (prec_control.ctl,'tdef  360 linear 12Z01JAN1961 1mo')
>write (prec_control.ctl,'vars  1')
>write (prec_control.ctl,'prec  1 99  Convective+Large-scale precipitation
>rate [mm/day] ')
>write (prec_control.ctl,'endvars')
>**********************************************************
>...
>...
>...
>
>thanks
>Veiga
>
>
>

--
                         ''~``
                        ( o o )
+------------------.oooO--(_)--Oooo.------------------+
|                                                     |
|           M.C. Juan Matías Méndez Pérez             |
|           Dpto. de Meteorología Tropical            |
|           Centro de Ciencias de la Atmósfera        |
|           Universidad Nacional Autónoma de México   |
|           Tel. (55) 56224079                        |
|           e-mail:  matias at atmosfera.unam.mx |
|                    jmatias76 at hotmail.com |
|                                                     |
|                    .oooO                            |
|                    ( j )   Oooo.                    |
+---------------------\ (----( M )--------------------+
                       \_)    ) /
                             (_/



More information about the gradsusr mailing list