WRF Preprocessing System (WPS)

The next step for real data cases is to compile WPS.
You should not be here if you have not already SUCCESSFULLY compiled WRF


Examine the WPS Source Code

Move into the WPS directory that you created:

cd WPS
Note: If you are still in the WRF/ directory, this should be one directory up from where you are (i.e., cd ../WPS).

Inside this directory, you will find a number of files and directories. Below are desciptions of some of the files:

– The README files contain useful information about the code and how to set up and run the model.

– Source code directories:

geogrid/ Directory containing code to create the static data
metgrid/ Directory containing code to create input to WRF
ungrib/ Directory containing code to unpack GRIB data
util/ Directory containing utilities

– Scripts:

clean Script to clean created files and executables
compile Script for compiling WPS code
configure Script to create the configure.wps'file, to configure the environment, and prepare for compiling
link_grib.csh Script to link GRIB files to the WPS directory

– Others:

arch Directory where compile options are gathered
namelist.wps WPS namelist that will be used for running 'geogrid.exe,' 'ungrib.exe,' and 'metgrid.exe'
namelist.wps-all_options A reference that contains all additional options you can use in your namelist.wps file

Environment Variable - netCDF

This has likely already been set prior to compiling WRF; however, you can check by issuing (e.g., with csh):

echo $NETCDF

If it is not set, issue the following command (typically the netCDF libraries are located in /usr/local/netcdf, but this may vary between systems - check to make sure):

setenv NETCDF /usr/local/netcdf




Add this environment variable to your .cshrc, .login, or .profile file. This will ensure that it is always set correctly, and that you do not have to reset it each time that you log in.



LINUX-environment Users

Ensure that your netCDF libraries were compiled with the same compiler that you are going to use to compile WRF (e.g., if you are compiling WRF with a PGI compiler, your netCDF libraries must also be compiled with PGI).

NCAR – Cheyenne Users

On NCAR's Cheyenne system, netCDF is installed in:

/glade/u/apps/ch/opt/netcdf/version/compiler/version_of_compiler

above, 'version' is the version of netcdf you currently have loaded, the 'compiler' is the compiler you currently have loaded, and the 'version of compiler' is the version of the currently loaded compiler (ex. /4.4.1.1/intel/17.0.1).





Configure WPS