NetCDF to grib conversion: Undefined parameter table...
Added by Akio Hansen over 9 years ago
Hi everyone,
at first thank you all for the very powerful and amazing cdo's! Yes, they really simplify our day to day work a lot!!!
I'm actually trying to convert the DWD RADOLAN composite radar reflectivity files from a binary format to a standarised grib file to work with the files in some program, which only supports GRIB1. So far, I've sucessfully converted the binary file to a NetCDF file and now try it to convert it to grib, which is also working more or less. But my problem is, if I look at the grib output file with e.g. wgrib or IDV I get always the following error message:
"wgrib -s raa00-pc_10015-1508101500-dwd---bin.grb
Undefined parameter table (center 0-0 table 212), using NCEP-opn
1:0:d=70010100:MSLMA:sfc:anl:NAve=0"
If everything would be fine, the variable should be 129.212, so the "Maximum/Composite Radar Reflectivity [dbZ]", as it is written in the GRIB table: http://grepcode.com/file/repo1.maven.org/maven2/edu.ucar/grib/4.5.5/resources/grib1/ncep/ncepGrib1-129.xml?av=f
I convert the netcdf file with the following command: "cdo -f grb -setparam,129.212 nc_file grb_file".
Therefore my question is, how could I set the parameter table for the conversion? I've also tested the cdo option "-setpartab", but this is only locally, or isn't it? Or what options do I also have to set?
Thank you very much for all your help!
Best regards from Hamburg,
Akio
PS. I've attached you the NetCDF file, which I will try to convert.
raa00-pc_10015-1508101500-dwd---bin.nc (831 KB) raa00-pc_10015-1508101500-dwd---bin.nc | DWD RADOLAN converted NetCDF file |
Replies (1)
RE: NetCDF to grib conversion: Undefined parameter table... - Added by Akio Hansen over 9 years ago
Hey together,
after another day of googeling and reading through the very valuable forum here, I found a solution using the "grib_set" command. Thus my script is now as follows:
@# Call cdo's for file conversion
cdo -f grb -setparam,129.212 nc_file grb_file_1
- Set correct GRIB parameters for GRIB table
grib_set -s table2Version=129 grb_file_1 grb_file_2
grib_set -s centre=7 grb_file_2 grb_file_3
grib_set -s indicatorOfParameter=212 grb_file_3 grb_file@
Thanks a lot for the impressive cdo tools!
Akio