[gradsusr] Gribmap question

Wesley Ebisuzaki Wesley.Ebisuzaki at noaa.gov
Thu Jul 15 13:21:39 EDT 2010


Bernd,

I think that if you can change the tdef in the ctl file to

        tdef  4 linear 1jul2010 1mo

and use gribmap -b.  Of course you have to do this by hand as grib2ctl
doesn't support the -b option.

           Wesley


Becker, Bernd wrote:
> Wesley,
>
> the -b option indeed switches the end of the average period with 
> the start of the average period, 
> but the mapping to .ctl would only work if the latter is also the
> initial date of the data.
>  
> ----- Time out of bounds:     1      15852   0  255     1    0  167 105
> 0 79   0 btim: 1998062200:00 tau:     8 dtim: 1998070100:00
>
> I need to switch btim to be the start of the averaging period,
> not the initial data time stored in the grib header. 
>
> Seems a tough one.
>
> Cheers,
> Bernd.
>
> -----Original Message-----
> From: gradsusr-bounces at gradsusr.org
> [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Wesley Ebisuzaki
> Sent: 15 July 2010 16:07
> To: GrADS Users Forum
> Subject: Re: [gradsusr] Gribmap question
>
> Bernd,
>
>           You need the -b option in gribmap
>
>                  -b   -> use the start of the averaging period.
>
> Status of -b
>
>       grib1:
>         gribmap supports -b
>         grib2ctl does not support -b
>
>      grib2:
>          gribmap supports -b   (v2.0a8)
>          g2ctl supports -b
>
>
>         Wesley Ebisuzaki
>
>
> Becker, Bernd wrote:
>   
>> Hi,
>>
>> how can I write a .ctl file for grib data, describing an average over 
>> a period of days starting at a certain distance from the initial data 
>> time?
>>
>> The Grib file contains 3 pieces of date information:
>> time, the forecast run was initialized start time end time of 
>> averaging period
>>
>> for each grib field in the file. The file contains 4 monthly means:
>>
>> initial time: 20100622
>> start time  : 20100701
>> end   time  : 30 days later (20100731)
>>
>> initial time: 20100622
>> start time  : 20100801
>> end   time  : 30 days later (20100831)
>>
>> initial time: 20100622
>> start time  : 20100901
>> end   time  : 29 days later (20100930)
>>
>> initial time: 20100622
>> start time  : 20101001
>> end   time  : 30 days later (20101031)
>>
>> tdef in ctl file :
>> tdef 4  linear 00Z01Jul2010 1mo
>>
>> This does not work.
>>
>> I tried gribmap with:
>> -t0
>> -fnnn
>> to no avail
>> and need some input from you. 
>>
>> Many thanks!
>> Bernd.
>>
>> --
>> Bernd Becker   Climate Impacts Product Development
>> Met Office Hadley Centre    FitzRoy Road  Exeter   Devon EX1 3PB
>>     
> United
>   
>> Kingdom
>> Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050 
>> E-mail:bernd.becker at metoffice.gov.uk -  http://www.metoffice.gov.uk
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>   
>>     
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>   




More information about the gradsusr mailing list