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] ungrib.exe Grib2 file or date problem, stopping in edition_num.

asyam

New member
Hi, I tried to do the tutorial on this website and using GFS from this website. I completed the ./geogrid.exe but facing error while running ./ungrib.exe. This was the error log:

*** Starting program ungrib.exe ***
Start_date = 2016-10-06_12:00:00 , End_date = 2016-10-08_00:00:00
output format is WPS
Path to intermediate files is ./
ERROR: Grib2 file or date problem, stopping in edition_num.
I have read this thread and website but still faced the same problem. Here I attached my files and logs. Thank you.
 

Attachments

  • namelist.wps
    712 bytes · Views: 6
  • ungrib.txt
    223 bytes · Views: 2
  • ls.txt
    3.4 KB · Views: 2
  • GRIBFILE.txt
    225 bytes · Views: 5
Note:
I installed WRF and its libraries using this script and set the environment using this bashrc:

source /opt/intel/oneapi/setvars.sh
export DIR=/home/asyam/WRF_Intel/Libs
export CC=icc
export CXX=icpc
export FC=ifort
export F77=ifort
export F90=ifort
export MPIFC=mpiifort
export MPIF77=mpiifort
export MPIF90=mpiifort
export MPICC=mpiicc
export MPICXX=mpiicpc
export CFLAGS="-fPIC -fPIE -O3 -diag-disable=10441 "
export FFLAGS="-m64"
export FCFLAGS="-m64"
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export PNETCDF=$DIR/grib2
export LDFLAGS=-L$DIR/grib2/lib
export CPPFLAGS=-I$DIR/grib2/include
export LD_LIBRARY_PATH=/home/asyam/WRF_Intel/Libs/NETCDF/lib:$LD_LIBRARY_PATH
export NETCDF=$DIR/NETCDF
export NETCDF_INC=$NETCDF/include
export NETCDF_LIB=$NETCDF/lib
export PATH=$NETCDF/bin:${PATH}
export ICTP_DATASITE=Index of /regcm4
export WRF=~/WRF_Intel
 
Fortunately I got it works now, but I did not know why it works now, here what I did:
I updated the .bashrc
# Start all Intel compiler
source /opt/intel/oneapi/setvars.sh

# Set the compiler
export CC=icc
export CXX=icpc
export FC=ifort
export F77=ifort
export F90=ifort
export MPIFC=mpiifort
export MPIF77=mpiifort
export MPIF90=mpiifort
export MPICC=mpiicc
export MPICXX=mpiicpc
export CFLAGS="-fPIC -fPIE -O3 -diag-disable=10441 "
export FFLAGS="-m64"
export FCFLAGS="-m64"

# Set library directory
export DIR=/home/asyam/WRF_Intel/Libs

# Set Flags library
export LDFLAGS=-L$DIR/grib2/lib
export CPPFLAGS=-I$DIR/grib2/include

# Set JASPER library
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export PNG_INC=$DIR/grib2/include

# Set Parallel-NETCDF
export PNETCDF=$DIR/grib2

# Set HDF5 Library
export HDF5=$DIR/grib2
export LD_LIBRARY_PATH=$DIR/grib2/lib:$LD_LIBRARY_PATH
export PATH=$HDF5/bin:$PATH
export PHDF5=$DIR/grib2

# Set Parallel-NETCDF
export PNETCDF=$DIR/grib2
export PNETCDF_LIB=$PNETCDF/lib
export PNETCDF_INC=$PNETCDF/include

# Set NETCDF-C
export CPPFLAGS=-I$DIR/grib2/include
export LDFLAGS=-L$DIR/grib2/lib
export LIBS="-lhdf5_hl -lhdf5 -lz -lcurl -lgfortran -lgcc -lm -ldl -lpnetcdf"
export PATH=$DIR/NETCDF/bin:$PATH
export NETCDF=$DIR/NETCDF

# Set NETCDF-Fortran
export LD_LIBRARY_PATH=$DIR/NETCDF/lib:$LD_LIBRARY_PATH
export CPPFLAGS="-I$DIR/NETCDF/include -I$DIR/grib2/include"
export LDFLAGS="-L$DIR/NETCDF/lib -L$DIR/grib2/lib"
export LIBS="-lnetcdf -lpnetcdf -lcurl -lhdf5_hl -lhdf5 -lz -lm -ldl -lgcc -lgfortran"
export NETCDF_INC=$NETCDF/include
export NETCDF_LIB=$NETCDF/lib

# Set NCEPLIB
export JASPER_INC=$DIR/grib2/include
export PNG_INC=$DIR/grib2/include
export NCEPLIBS_DIR=$DIR/nceplibs
and because I use GFS file with prefix fnl, the link_grib.csh command is:
./link_grib.csh /DIRECTORY/fnl*
 
Top