Skip to content
Toberumono edited this page Nov 28, 2017 · 3 revisions

Welcome to the WRF-Setup-Script wiki! This page contains a basic overview of the project. See the pages in the sidebar for more information.

What do these scripts do?

  • WRFSetup.sh
    • Installs the libraries that WRF requires (this requires sudo on Linux).
    • Sets the environment variables needed for WRF to configure correctly.
    • Calls the WPS and WRF configure and compile scripts in the order needed. All you need to do is enter 3 numbers and pick the version of WRF you want.
    • If it is run on an existing WRF and/or WPS installation, it backs up namelist files and restores them automatically.
  • WRFClean.sh
    • Cleans WRF and WPS installations.
    • Backs up namelist.input and namelist.wps files so that the WRFSetup.sh script can restore them.

What do these scripts not do?

  • Both
    • Do not run on Windows. They are Bash scripts, and therefore run on Linux and OSX only.
      Furthermore, they assume gcc/gfortran compilers.
      • If you want to use a different compiler, then you can change the compiler variable in the variables file; however, it has only been tested with gcc/gfortran.
  • WRFSetup.sh
    • Does not download the tarballs for WRF, WPS, or the GEOGRID data - that would require circumventing UCAR's login system.
    • Does not run WRF. My WRF Runner project handles that.
  • WRFClean.sh
    • Does not uninstall the libraries and support programs that were installed by WRFSetup.sh - that is far too risky because some of them are almost certainly used by other programs.

Why should I use this?

  • Manually setting up WRF and WPS requires setting a decent number of environment variables and executing commands that may not be familiar to an average user.
    • Both of these can be intimidating, and some of them require information that can be difficult for a user to look up, but trivial for a script to find.
  • Setting up WRF and WPS entails a decent amount of trial and error to figure out which configuration works best for you.
    • These scripts automatically back up the important configuration files so that you don't have to worry about it.

What level of experience do I need in order to use this script?

This guide does assume a basic level of comfort with a UNIX-based prompt. If you are new to working with Terminal, tutorial one at http://www.ee.surrey.ac.uk/Teaching/Unix/ will cover everything you need for this tutorial. (Its prompt likely looks a bit different, but those commands are effectively identical across UNIX shells)