Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Weather Research and Forecasting (WRF) model is a common well-known atmospheric modeling system developed by NCAR. It is suitable for both meteorological research and operational weather prediction.

Official website: https://www2.mmm.ucar.edu/wrf/users/

Updated: May June 2023

...

Table of Contents

Available version

...

minLevel1
maxLevel6
include
outlinefalse
indent
excludeModules,
typelist
class
printablefalse

...

Modules

Module name

Description

Note

WRF/4.4.2-DMSM-cpeCray-23.03

Standard WRF model

Aggressive optimization

WRFchem/4.

4.2

5-

DMSM

DM-

cpeCray

cpeIntel-23.03

Aggressive

WRF model with chemistry,
including WRF-Chem tools

Standard optimization

WPS

Version

Module name

Optimization

/4.4-DM-cpeCray-23.03

WRF pre-processing system

for WRF 4.4.X

WPS/4.

4

5-DM-

cpeCray

cpeIntel-23.03

Aggressive optimization

WRF pre-processing system

for WRF 4.5.X

1. Input file

1.1 To run the WRF model, time-dependent meteorological data (global model output/background state) is required. It can be downloaded from, for example, WRF - Free Data and NCEP GFS / GDAS.

1.2 To configure the domain and simulation time, the namelist.wps is needed. A brief description of it can be found here. It is recommended to use the WRF Domain Wizard or the GIS4WRF plug-in for QGIS to define WRF domains.

Info

Users can utilize static geographical data open source datasets, such as geog, Global_emissions_v3 and EDGAR, already available on LANTA by specifying
, for example, geo_data_path = '/project/common/WPS_Static/geog'

...

Info

Additional information about ThaiSC custom support commands for the WPS and WRF modules can be accessed by using commands such as link_wps --help, man link_emreal or module help WRF.

Note

Some options do not support hybrid run . To determine if (such as running WRF-Chem). If this is the case, do the following:

  • use #SBATCH --cpus-per-task=1 and export OMP_NUM_THREADS=1,

  • increase the total number of tasks, for example, #SBATCH --ntasks=64

  • specify the number of tasks for each executable explicitly; for instance, use
    srun -n16 ./real.exe
    srun -n64 -c1 ./wrf.exe

...

To submit jobs to the SLURM queuing system on LANTA, execute

Code Block
languagebash
sbatch submitWRF.sh

...

Info

If WPS and WRF jobs need be submitted separately, users could use the --dependency option of sbatch command to ensure that WRF starts running only after WPS is completed.

...

Two complete examples are available at /project/common/WRF/Example1. To run it within a directory, use cp /project/common/WRF/Example1/* ., edit the account details by using vi submitWRF.sh and then issue the command sbatch submitWRF.sh or cp /project/common/WRF/Example2/* . and follow the instructions in the README file.

4. Post-processing

Several tools for processing NetCDF files are available in Conda environments such as netcdf-py39. To use NCL, for instance, add

Code Block
languagebash
module load Miniconda3/22.11.1-1
conda activate netcdf-py39

# For NCL only
export NCARG_ROOT=${CONDA_PREFIX}
export NCARG_RANGS=/project/common/WPS_Static/rangs
export NCARG_SHAPEFILE=/project/common/WPS_Static/shapefile  # (If used)

# Commands such as 'srun -n1 ncl xxx' or 'srun -n1 python xxx' for serial run

Other main packages installed in netcdf-py39 are NCO, CDO, netcdf4-python, wrf-python, pyngl, pynio and cartopy.

...

Contact Us
ThaiSC support service : thaisc-support@nstda.or.th