Hello,
I am following a YouTube video and got stuck for a day and that's why I am writing my question here and would appreciate if someone could help me.
The problem is
./ungrib.exe
*** Starting program ungrib.exe ***
Start_date = 2020-12-02_00:00:00 , End_date = 2020-12-02_06:00:00
output format is WPS
Path to intermediate files is ./
ERROR: Grib2 file or date problem, stopping in edition_num.
I use a script to read three files from the following directory (gfs.t00z.pgrb2.0p50.f000, gfs.t00z.pgrb2.0p50.f003, gfs.t00z.pgrb2.0p50.f006)
https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.20201202/00/
Here is the script (download_gfs.sh) that I have
---------------------------------------------------------------------------------------------------------
#!/bin/bash
inputdir=/home/hooman/Desktop/Build_WRF/GFS
rm -rf $inputdir
mkdir $inputdir
year=2020
month=12
day=02
cycle=00
for ((i=000; i<=006; i+=3))
do
ftime=`printf "%03d\n" "${i}"`
server=https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod
directory=gfs.${year}${month}${day}/${cycle}
file=gfs.t${cycle}z.pgrb2.0p50.f${ftime}
url=${server}/${directory}/${file}
echo $url
wget -o ${inputdir}/${file} ${url}
done
-----------------------------------------------------------------------
I have a directory/folder called /local/Desktop/Build_WRF and then have several sub-directory/folders like WRF, WPS, GFS, scripts, WPS_GEOG and LIBRARIES in Build_WRF folder. I saved the above script in the "scripts" folder and when I type "./download_gfs.sh", in terminal, it adds three files in the "scripts" folder and "GPS" folder. Is it ok that I have files in both folders? ...note that scripts and GFS folders are separated.
Assuming that it is ok, I face the issue when I ./ungrib.exe in terminal
( *** Starting program ungrib.exe ***
Start_date = 2020-12-02_00:00:00 , End_date = 2020-12-02_06:00:00
output format is WPS
Path to intermediate files is ./
ERROR: Grib2 file or date problem, stopping in edition_num.
)
I have attached the log compile, ungrib.log and namelist.wps for your review.
I use Ubuntu 20 and NetCDF 4.1.2, Jasper 1.900.1, mpich 3.3.2, libpng 1.6.37, Zlib 1.2.11, WRF 4.1.5 and WPS 4.1
I tried to add ec_rec_len = 26214508 under &ungrib in namelist.wps...it did not work or at least II could not manage to use it.
I also read this webpage :http://sergioibarra.blogspot.com/2018/04/error-grib2-file-or-date-problem.html does not help me.
I would appreciate your thoughts on this issue.
Thank You!
I am following a YouTube video and got stuck for a day and that's why I am writing my question here and would appreciate if someone could help me.
The problem is
./ungrib.exe
*** Starting program ungrib.exe ***
Start_date = 2020-12-02_00:00:00 , End_date = 2020-12-02_06:00:00
output format is WPS
Path to intermediate files is ./
ERROR: Grib2 file or date problem, stopping in edition_num.
I use a script to read three files from the following directory (gfs.t00z.pgrb2.0p50.f000, gfs.t00z.pgrb2.0p50.f003, gfs.t00z.pgrb2.0p50.f006)
https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.20201202/00/
Here is the script (download_gfs.sh) that I have
---------------------------------------------------------------------------------------------------------
#!/bin/bash
inputdir=/home/hooman/Desktop/Build_WRF/GFS
rm -rf $inputdir
mkdir $inputdir
year=2020
month=12
day=02
cycle=00
for ((i=000; i<=006; i+=3))
do
ftime=`printf "%03d\n" "${i}"`
server=https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod
directory=gfs.${year}${month}${day}/${cycle}
file=gfs.t${cycle}z.pgrb2.0p50.f${ftime}
url=${server}/${directory}/${file}
echo $url
wget -o ${inputdir}/${file} ${url}
done
-----------------------------------------------------------------------
I have a directory/folder called /local/Desktop/Build_WRF and then have several sub-directory/folders like WRF, WPS, GFS, scripts, WPS_GEOG and LIBRARIES in Build_WRF folder. I saved the above script in the "scripts" folder and when I type "./download_gfs.sh", in terminal, it adds three files in the "scripts" folder and "GPS" folder. Is it ok that I have files in both folders? ...note that scripts and GFS folders are separated.
Assuming that it is ok, I face the issue when I ./ungrib.exe in terminal
( *** Starting program ungrib.exe ***
Start_date = 2020-12-02_00:00:00 , End_date = 2020-12-02_06:00:00
output format is WPS
Path to intermediate files is ./
ERROR: Grib2 file or date problem, stopping in edition_num.
)
I have attached the log compile, ungrib.log and namelist.wps for your review.
I use Ubuntu 20 and NetCDF 4.1.2, Jasper 1.900.1, mpich 3.3.2, libpng 1.6.37, Zlib 1.2.11, WRF 4.1.5 and WPS 4.1
I tried to add ec_rec_len = 26214508 under &ungrib in namelist.wps...it did not work or at least II could not manage to use it.
I also read this webpage :http://sergioibarra.blogspot.com/2018/04/error-grib2-file-or-date-problem.html does not help me.
I would appreciate your thoughts on this issue.
Thank You!