WRF

Z MetaCentrum
Přejít na: navigace, hledání


Description

The Weather Research and Forecasting (WRF) Model is a next-generation mesoscale numerical weather prediction system designed to serve both operational forecasting and atmospheric research needs. You can find more info on external pages.

Availability

Currently there are two versions available on MetaCentrum machines: 3.3.1 and 3.4.1.

Licence

Public domain – freely available for all.

Use

Initialize module with command:

module add wrf-3.4.1

After initialization are available all necessary system variables:

$NETCDF, $COMPRESSION_LIBS, $WRFIO_NCD_LARGE_FILE_SUPPORT
$JASPERINC, $JASPERLIB, $NCARG_ROOT, $LD_LIBRARY_PATH, $PATH

The program needs working files (files with data and compute setup) in it's installation dir. The module overcomes this behavior by linking all the program files to the actual working directory.

Usage examples

Assuming that in /scratch/$USER/wrf_test directory is initialized the wrf-3.4.1 module and that the computing data are copied into /scratch/$USER/wrf_test/WRF-data.

mkdir /scratch/$USER/wrf_test
mkdir /scratch/$USER/wrf_test/WRF-data
cp path_to_prepared_data /scratch/$USER/wrf_test/WRF-data

Computing script shoud contain at the beginning defined variables and system variables:

WPSDIR="/scratch/$USER/wrf_test/WPS"
WRFDIR="/scratch/$USER/wrf_test/WRFV3"
WRFDATA_UNGRIB="/scratch/$USER/wrf_test/WRF-data/metgrid/ds335.0/GFS_Global_0p5deg_2009010[1-2]*_anl.grib2"
NAMELIST_WPS_FILE="/scratch/$USER/wrf_test/WRF-data/namelist.wps"
NAMELIST_INPUT_FILE="$WRFDIR/test/em_real/namelist.input"
export OMP_NUM_THREADS=$PBS_NUM_PPN

Computation can be run the serial or parallel way:

serial usecase

# prepare and run the geogrid
cd $WPSDIR
ln -sf ungrib/Variable_Tables/Vtable.GFS Vtable
[ ! $NAMELIST_WPS_FILE -ef namelist.wps ] && cp $NAMELIST_WPS_FILE .
./geogrid.exe 2>&1 | tee geogrid_log
# prepare and run the ungrib
./link_grib.csh $WRFDATA_UNGRIB
./ungrib.exe 2>&1 | tee ungrib_log
# run the metgrid
./metgrid.exe 2>&1 | tee metgrid_log
# prepare and run the wrf
cd $WRFDIR/test/em_real
[ ! $NAMELIST_INPUT_FILE -ef namelist.input ] && cp $NAMELIST_INPUT_FILE .
ln -sf $WPSDIR/met_em* .
./real.exe 2>&1 | tee real_log
./wrf.exe 2>&1 | tee wrf_log

parallel usecase

# prepare and run the geogrid
cd $WPSDIR
ln -sf ungrib/Variable_Tables/Vtable.GFS Vtable
[ ! $NAMELIST_WPS_FILE -ef namelist.wps ] && cp $NAMELIST_WPS_FILE .
mpirun ./geogrid.exe 2>&1 | tee geogrid_log
# prepare and run the ungrib
./link_grib.csh $WRFDATA_UNGRIB
./ungrib.exe 2>&1 | tee ungrib_log
#mpirun ./ungrib.exe 2>&1 | tee ungrib_log  # the serial version performs slightly better :-/
# run the metgrid
mpirun ./metgrid.exe 2>&1 | tee metgrid_log
# prepare and run the wrf
cd $WRFDIR/test/em_real
[ ! $NAMELIST_INPUT_FILE -ef namelist.input ] && cp $NAMELIST_INPUT_FILE .
ln -sf $WPSDIR/met_em* .
mpirun ./real.exe 2>&1 | tee real_log
mpirun ./wrf.exe 2>&1 | tee wrf_log

Documentation

http://www.mmm.ucar.edu/wrf/users/docs/user_guide/contents.html

Program Manager

meta@cesnet.cz

Homepage

http://wrf-model.org/index.php