ctl templates

Hai-Ru Chang hrc at EAS.GATECH.EDU
Thu Sep 14 10:00:05 EDT 2006


You need re-run gribmap on your ctl file with template option to get
a new idx file (specify it with a regular name).


Hai-Ru
On Sep 14, 2006, at 3:40 AM, Davide Sacchetti wrote:

> for what I remember you should have several idx files only if you had
> several ctl: I mean the number of idx should be the same of ctl. If
> your
> template system is correct the overlap should work. This may cause
> some
> problem only with cumulated fields, as precipitation but this could be
> another topic ...
> Davide
>
> On Wed, 2006-09-13 at 13:21 -0300, Jose Augusto P.Veiga wrote:
>> I fixed index filename, eg.: fnl_0403.idx instead of
>> fnl_0403%d2_%h2_00.idx as suggested and I had no problem during
>> openning
>> the fnl_0403.ctl. However as I have sevaral file .idx
>> (fnl_040321_00_00.idx, fnl_040321_06_00.idx, and so on) the time
>> does not
>> overlap when I set (set t 1 last).
>> what should I do at this time?
>>
>>
>>                     Jose Augusto Paixao Veiga
>>        National Research for Space Studies - (CPTEC/INPE)
>>
>>
>>
>> On Wed, 13 Sep 2006, Davide Sacchetti wrote:
>>
>>> template options apply only to ctl files, not to idx ones
>>>
>>> => fix index filename, eg.: fnl_0403.idx
>>>
>>> it should work ...
>>>
>>> bye bye
>>>
>>> Davide
>>>
>>> On Wed, 2006-09-13 at 16:28 +0200, Jose Augusto Paixao Veiga wrote:
>>>> Dears,
>>>> I have been used grib2ctl.pl script to deal with grib data in
>>>> grads. I've
>>>> been  created several .idx and .ctl archieves from my grib data
>>>> files. Then,
>>>> I would like to deal with all those .ctl files using just
>>>> one .ctl file with
>>>> the options template inside it, however when I open the
>>>> template.ctl the
>>>> following message rises:
>>>>
>>>> ga-> open fnl_0403.ctl
>>>>  Scanning description file:  fnl_0403.ctl
>>>>  Open Error:  Can't open Station/Index map file fnl_0403%d2_%
>>>> h2_00.idx
>>>>   --> The invalid description file record is:
>>>>   --> index ^fnl_0403%d2_%h2_00.idx
>>>>
>>>>   The data file was not opened.
>>>>
>>>> my .ctl file with templates starts as
>>>>
>>>> dset ^fnl_0403%d2_%h2_00
>>>> index ^fnl_0403%d2_%h2_00.idx
>>>> undef 9.999E+20
>>>> options template
>>>> title fnl_040321_00_00
>>>> *  produced by grib2ctl v0.9.12.5p39a
>>>> dtype grib 3
>>>> options yrev
>>>> ydef 181 linear -90.000000 1
>>>> xdef 360 linear 0.000000 1.000000
>>>> tdef 36 linear 00Z21mar2004 06hr
>>>>
>>>> what must I change in this .ctl file?
>>>>
>>>> thanks in advance
>>> --
>>> Sacchetti Davide
>>> ARPAL UO3 Centro Meteo Idrologico Regione Liguria - Dir. Scientifica
>>> V.le Brigare Partigiane 2 16121 Genova (I)
>>> tel: +39 010 6437535
>>> mail: davide.sacchetti at arpal.org   web: www.meteoliguria.it
>>>
> --
> Sacchetti Davide
> ARPAL UO3 Centro Meteo Idrologico Regione Liguria - Dir. Scientifica
> V.le Brigare Partigiane 2 16121 Genova (I)
> tel: +39 010 6437535
> mail: davide.sacchetti at arpal.org   web: www.meteoliguria.it



More information about the gradsusr mailing list