[gradsusr] gribmap not working with grib2 ice

Wesley Ebisuzaki Wesley.Ebisuzaki at noaa.gov
Wed Jun 22 12:52:43 EDT 2011


Antonio,

  If the product defintion template (PDT) isn't supported, you can use 
wgrib2
to change the PDT.  However, when you change the PDT, you'll lose all or 
most
of the metadata.  Try,

   wgrib2 IN.grb -set_pdt +0 -grib OUT.grb

   +  means keep the variable name
    0   means set the PDT to type 0 and initialize to undefined

    Wesley





Jennifer Adams wrote:
>
> On Jun 22, 2011, at 11:48 AM, Wesley Ebisuzaki wrote:
>
>> Antonio,
>>
>>    Your message occurs when the product/grid templates are unknown to the
>> grib library (g2clib).  The grib library was updated to handle this 
>> template
>> last December.
>>
>>> // 2009-12-15  Vuong     Added Product Definition Template 4.31
>>> //                       Added Product Definition Template 4.15
>>
>> If you recompile grads/gribmap with the updated library, you should 
>> be ok.
>
> No, gribmap will issue an error message: "Product Definition Template 
> 15 not handled". 
> --Jennifer
>
>>
>>
>> Wesley Ebisuzaki
>>
>>
>>
>> antonio dias wrote:
>>> Hi people.
>>>
>>> I'm woking with grib2 file /ICE//TURB/CB
>>>
>>> I'm trying to generate idx file e getting the below error.
>>>
>>> exemplos_grib2/gelo$ g2ctl 20110621_0000f12.grib2 > n2.ctl
>>> exemplos_grib2/gelo$ gribmap -i n2.ctl
>>>
>>> grib2map: scanning GRIB2 file: 20110621_0000f12.grib2
>>> getpdstemplate: PDS Template 4.15 not defined.
>>> grib2map error: g2_getfld failed: ierr=11
>>>
>>>
>>>
>>> The .ctl file is ok, but the .idx is not generated.
>>>
>>> I'm using grads 2.0.9 on ubuntu 10.04.
>>>
>>> What should I do to solve this?
>>>
>>> Thank you.
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
>> http://gradsusr.org/mailman/listinfo/gradsusr
>
> --
> Jennifer M. Adams
> IGES/COLA
> 4041 Powder Mill Road, Suite 302
> Calverton, MD 20705
> jma at cola.iges.org <mailto:jma at cola.iges.org>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>   




More information about the gradsusr mailing list