Skip to main content

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

  1. Untar the compressed tarball tar -xvf wgrib2.tar

  2. Go to the main directory (grib2) cd grib2

  3. Define 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 gcc
  4. Compile 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