edit-icon download-icon

Weather Research and Forecasting Model (WRF)

Last Updated: Nov 08, 2018

Weather Research and Forecasting Model (WRF) is a new mesoscale forecasting model. This is the most commonly used open-source weather simulation software.

Click here to visit the official website.

WRF

Prerequisites

For the following example, you must install the WRF software package during the cluster creation.

Example

Click here to download.

Procedure

  1. Run the module avail to check whether WRF software has been installed.

    1. $ export MODULEPATH=/opt/ehpcmodulefiles/
    2. $ module avail
    3. ------------------------------ /opt/ehpcmodulefiles -------------------------------------
    4. wrf-mpich/3.8.1 wrf-openmpi/3.8.1 mpich/3.2.2 openmpi/1.10.7
  2. Run the module load to load WRF:

    1. $ module load wrf-mpich/3.8.1 mpich
    2. $ echo $WPSHOME $WRFHOME
    3. /opt/WRF_WPS-mpich-3.8.1/WPS /opt/WRF_WPS-mpich-3.8.1/WRFV3
  3. Copy the installed WPS and WRF software to the work directory and copy the example to the corresponding location directory.

    1. $ cp r $WPSHOME $WPSCOPYHOME
    2. $ cp r $WRFHOME $WRFCOPYHOME
  4. Go to the WPSCOPYHOME software directory and run:

    1. $ srun --mpi=pmi2 n 1 ./geogrid.exe
    2. $ ./link_grib.csh Download weather data
    3. $ ln sf ungrib/Variable_Tables/Vtable.GFS Vtable # Select the relevant weather data Vtable, such as GFS
    4. $ srun --mpi=pmi2 n 1 ./ungrib.exe
    5. $ srun --mpi=pmi2 n 1 ./metgrid.exe
  5. Go to the WPSCOPYHOME software run directory and run:

    1. $ ln sf $WPSCOPYHOME/met_em* . # Connect to the WPS processing results
    2. $ srun --mpi=pmi2 n 1 ./real.exe
    3. $ srun --mpi=pmi2 n 4 ./wrf.exe
Thank you! We've received your feedback.