Lecture 11: Compiling WPS on gordon

Compiling the WRF Preprocessing System (WPS) on gordon is similar to compiling the WRF model.  Make sure that you have a WRFV3 install (named exactly that) in the same directory as your newly minted WPS directory.

Obtain the source code from the NCAR users page, or grab from me:

cp /oasis/scratch/snesbitt/temp_project/WPSV3.7.1.tar.gz
tar xvf WPSV3.7.1.tar.gz
cd WPS

One dependency that you have to install if you want to read grib2 files (compressed grib files) is jasper.  This is not required, but many operational datastreams are in grib2 format these days.  For members of the class, just link to my jasper installation (although it’s not difficult to compile):

export JASPERLIB=/home/snesbitt/software/lib
export JASPERINC=/home/snesbitt/software/include

Then just set up your netCDF lbrary

module load netcdf
export NETCDF=$NETCDFHOME

Then configure (select option 19 on gordon, and keeling), and compile.  If successful, you will have ungrib.exe, metgrid.exe, and geogrid.exe in your WPS folder.  You should be ready to rock now!