-
Notifications
You must be signed in to change notification settings - Fork 7
Usage
Toberumono edited this page Nov 28, 2017
·
2 revisions
- This script must be run in the same directory as the downloaded WRF, WPS, WRF-Chem, and GEOGRID tarballs.
- The path to the downloaded files cannot contain any spaces - WRF will not compile if the path has spaces.
- This script uses Homebrew on Macs and either Apt or Linuxbrew on Linux.
- On Mac, install Homebrew.
- If your system does not have Git (run
which git
in Terminal, if a path shows up, your system has Git), run:
- Debian Linux (e.g. Ubuntu):
sudo apt-get install git
- Mac OSX
brew install git
- Create an empty directory.
- In Terminal, cd into that directory and run:
wget -O - https://github.com/Toberumono/WRF-Setup-Script/archive/$(git ls-remote --tags https://github.com/Toberumono/WRF-Setup-Script.git | grep -oE '([0-9]+\.)*[0-9]+$' | sort -g | tail -1).tar.gz | tar -xz --strip-components 1 -C .
- This command grabs the latest tagged version of the scripts from GitHub and downloads them into the newly-created directory.
- Download the tarballs (tar files) for WRF-ARW, WPS, WRF-Chem and the WPS GEOGRID data (Available from the UCAR website, http://www2.mmm.ucar.edu/wrf/users/download/get_source.html).
- Move the downloaded tar files into the directory containing the scripts.
- As of this writing, WRF Version 3.7.1 is the latest stable release. You may need to change the version numbers in the variables file to match the version that you downloaded.
- In terminal, cd into the directory into which you downloaded the script and tarballs.
- Run
sudo ./WRFSetup.sh
if you have sudo privileges and are not certain that all of the required support software and libraries have been installed and you are not using Homebrew.
- Depending on how many libraries need to be installed, this could take a long time.
- If you have not already installed gcc/gfortran on your system, this can take a very long time and will likely look like it is hanging. Give it time (sometimes over an hour), and it will complete.
- There may be multiple warnings about things already being tapped or installed. This is normal - it just means that 'brew has detected that some of the requirements were already installed.
- In subsequent runs, the script can be run without sudo regardless of operating system.