Error in ungrib.exe

Any issues with the actual running of the WRF.

Error in ungrib.exe

Postby petroui » Wed Mar 28, 2018 6:36 am

Dear everyone,

last days when i am trying to run ungrib.exe i get this error:
*** Starting program ungrib.exe ***
Start_date = 2018-03-18_00:00:00 , End_date = 2018-03-19_00:00:00
output format is WPS
Path to intermediate files is ./
ERROR: Grib2 file or date problem, stopping in edition_num.

I use this dataset https://rda.ucar.edu/datasets/ds083.2/

Any suggestions or any solution?
Thank you very much in advance
Petrou ilias
petroui
 
Posts: 11
Joined: Mon Mar 27, 2017 5:54 am

Re: Error in ungrib.exe

Postby dcvz » Wed Mar 28, 2018 6:57 pm

The most common cause of this problem is passing a directory to link_grib.csh rather than the files. (e.g. use link_grib.csh /data_directory/fnl* not link_grib.csh /data_directory). Check that GRIBFILE.AAA exists and is a file.

The next most common cause is if you link to a directory's contents like this, link_grib.csh /data_directory/*, and there are other files in that directory that aren't grib files.

The rarest cause is if the file got corrupted during transfer or if there are extra characters at the beginning of the grib file.
dcvz
 
Posts: 175
Joined: Tue Apr 15, 2008 12:02 am

Re: Error in ungrib.exe

Postby petroui » Fri Mar 30, 2018 6:52 am

Dear dcvz
Thank you very much for your prompt reply!!
I have checked your suggestions but unfortunately none of them has worked.
Is there any chance the data from this dataset has any problem?
To be more specific i have uploaded one of a grib file that i have used.
Thank you very much again!!!
petroui
 
Posts: 11
Joined: Mon Mar 27, 2017 5:54 am

Re: Error in ungrib.exe

Postby dcvz » Fri Mar 30, 2018 8:04 pm

I tested ungrib on the ds083.2 data files for the dates you posted and everything was fine. Do the files and directory have read permission? What happens if you run g2print.exe on a grib2 file? Have you been able to ungrib any other grib2 file with your ungrib.exe program? You can download a grib2 file from here: ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/

It's possible there is a problem with your ungrib installation. Check the build log for error messages. If the problem persists then send an email to wrfhelp.
dcvz
 
Posts: 175
Joined: Tue Apr 15, 2008 12:02 am

Re: Error in ungrib.exe

Postby petroui » Wed Apr 04, 2018 6:08 am

Dear dcvz,
Two months ago i was able to ungrib grib2 files with unbrib.exe, using data from the ds083.2 dataset and there was no problem.
But now ,when i am trying to so the same job i got the error above.
I also ran g2print.exe for several files from ds083.2 dataset (GRIB2 6 HOURLY FILES 2007.12.06 to current) and i got this error:
\n\tThere is a problem with the input file.
\tPerhaps it is not a Grib2 file?\n
STOP Grib2 file or date problem, stopping in edition_num.


It's clear to me that those files is not in GRIB format but in netCDF format so i have to convert them.
Is there any solution for this problem?
Thank you again for your help , i really appreciate that.
petroui
 
Posts: 11
Joined: Mon Mar 27, 2017 5:54 am


Return to Runtime Problems

Who is online

Users browsing this forum: No registered users and 12 guests