Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Error when ungrib.exe the ECMWF IFS 0p25 dataset #257

Erenw

New member
Dear Team,

I hope this message finds you well.

I am currently attempting to execute the WRF model using the dataset provided in the link: ECMWF Data Store (ECPDS). However, I have encountered an error during the ungrib process with the following message:

“getdrstemplate: DRS Template 42 not defined.
ERROR extracting field gf_getfld = 12
Additionally, the g2print.exe utility is unable to read the GRIB2 file associated with the dataset.”

I would greatly appreciate any guidance or solutions you could offer to resolve these issues. Your expertise and assistance are invaluable to me.
 
WPSV4.6 updates to the Vtable for ECMWF data. But it does not work. I was wondering if you have come across this problem or if you might have any advice on how to address it.
 
if g2print cannot process this dataset, it implies that the ECPDS data cannot be recognized by WPS. You will have to explore this data, create Vtable for it, and I guess it may be necessary to modify codes like ungrib.F and rd_grib2.F, etc.
Due to limited human power in NCAR, I am sorry that NCAR staff cannot get involved in processing specific dataset like ECPDS.
 
The first issue with that data is that it is compressed using CCSDS algorithm. To uncompress, use:

Bash:
grib_set -r -w packingType=grid_ccsds -s packingType=grid_simple input.grib2 output.grib2

Do it for every file you download. You need to install ECCODES for that command.

That part is easy. Not the hard part. If you now try wgrib2 or g2print.exe on those uncompressed files, you will see that soil temperature and soil moisture fields are not recognized, that is you get errors, "unknown" variable names and so on which is not good. I have no idea how to proceed further. If you just fire up ungrib on those files you guess - no soil data in intermediate files and consenquently, in metgrid files too.

Also the Vtable from v4.6 does not contain all information to process some other requred fields (empty stuff in GRIB2 section of the Vtable) but that is solveable easy with g2print.exe I believe.

If someone has proceeded further, please let us know.
 
我也遇到了同样的问题,明明下载的数据包含土壤温度和土壤湿度,但最后生成的 met 文件没有土壤层数,你有解吗?
 
I agree that the ECPDS data may have unique GRIB structure that WPS/ungrib cannot recognize.
Please keep me updated if you find a solution to this issue. Thanks in advance.
 
ECMWF grib2 is now using c3 compressioin. You can decomprss the file with wgrib2 like this:
wgrib2 <input grib2 file> -set_grib_type c3 -grib_out <output grib2 file>

Im using grads to plot the data and this works fine.
 
ECMWF grib2 is now using c3 compressioin. You can decomprss the file with wgrib2 like this:
wgrib2 <input grib2 file> -set_grib_type c3 -grib_out <output grib2 file>

Im using grads to plot the data and this works fine.
Which version of wgrib2 are you using? Thanks
 
Top