Installing wgrb2
note
You can follow the instructions from the LINK
Download wgrb2
Download wgrb2 from the link http://www.ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz
Execute instructions in the exact same sequence
Untar the compressed tarball
tar -xvf wgrib2.tarGo to the main directory (grib2)
cd grib2Define the C compiler that you will be using. Note icc and pgc have been found to be incompatible with the Jasper library and are not allowed.
sh/bash: export CC=gcc
csh/tcsh: setenv CC gccCompile the wgrib2 using gnu make
linux: make
MacOS: gmake
Unix: ??? ask system administrators
Installing gfortan
sudo apt-get install gfortran
Fix error
makefile:252: *** need fortran-95+TR-15581/fortran-2003 compiler, not f77. Stop.
# Run
export FC=gfortran