Professional Documents
Culture Documents
Installation of Weather Research and Forecasting (WRF) Model On Linux Operating System
Installation of Weather Research and Forecasting (WRF) Model On Linux Operating System
SHILPI KALRA
Department of Mathematics
School of Vocational Studies and Applied Sciences
Gautam Buddha University
Co-Supervisor: Supervisor:
Dr. Ashish Routray Dr. Sushil Kumar
Scientist-E Assistant Professor
NCMRWF SoVSAS
Ministry of Earth Sciences Deptt. of Mathematics
Govt. Of India Gautam Buddha University
1. Required Operating System- Linux (Centos-6 versions is good to install)
Firstly Install centos OS
4. Libraries Path-
It is very important to give path for libraries in .bashrc file of root.
open .bashrc file in root directory.
# vi .bashrc ( it will open the bashrcfile and edit accordingly and save it)
Give paths like this:
export NETCDF=/usr/local/netcdf-3.6.3
PATH=$NETCDF/bin:$NETCDF/lib:$PATH
export JASPERLIB=/usr/local/lib
export JASPERINC=/usr/local/include
export JASPERLIB="${JASPERLIB} -L/usr/local/lib -L/usr/local/lib"
export JASPERINC="${JASPERINC} -I/usr/local/include -I/usr/local/include"
5. Installing Libraries:
TO INSTALL:
# cd netcdf-3.6.3
#./configure
# make
# make install
(b) jasper-
#cd jasper-1.2.50
#./configure
#make
#make install
(c) zlib- Compression library which is used by the PNG library.
#cd zlib-1.2.7
#./configure
# make
# make install
(c) libpng-
#cd libpng-1.2.50
#./configure
#make check
# make install
6. Building WRFV3-
OUTPUT- configure.wrf
If real case is compiled then compilation will be successful if these executables is made in the
WRFV3/main directory.
# cd WRFV3/main/
# ls -lrt
OUTPUT-
7. Building WPS-
A successful compilation of WRF is required prior to WPS compilation!
Get the WPS zipped tar file WPSV3.TAR.gz from
http://www2.mmm.ucar.edu/wrf/users/download/get_source.html
Choose one of the configure options listed. [Choose ×86_64 Linux gfortran(serial)]
(with Grib-2 option) [Don't use no_ grib-2 option]
OUTPUT- configure.wps
Note- There is a line in configure.wps file that directs the WPS build system to the location
of the I/O libraries from the WRF model:
WRF_DIR = ../WRFV3
Above is the default setting. If the existing default setting is correct then there is no need to
change it. If it is not correct then, it must to modify the configure file and then save the
changes before compiling.
To compile-
# ./compile
OUTPUT- geogrid.exe
ungrib.exe
metgrid.exe
Verify that they are not zero-sized. To see file size - # ls -ls *.exe
geog_data_path='usr/local/geog_complete'
Run WPS and WRFV3
Running WPS-
Start by running WPS.
# cd WPS
# vi namelist.WPS
Make changes to the namelist.wps file, to reflect information for particular run. Also
set path of static geography data in namelist.wps
.[ geog_data_path='usr/local/geog_complete']
# ./geogrid.exe
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Successful completion of geogrid. !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# ls –lrt
geo_em.d01.nc
# ln -s ungrib/Variable_Tables/Vtable.GFS Vtable
# ./link_grib.csh /home/dir-name/FNL/fnl*
# ./ungrib.exe >&ungrib.output
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Successful completion of ungrib. !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# ls -lrt
GRIBFILE.AAA
# ./metgrid.exe
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Successful completion of metgrid. !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
OUTPUT- met_em.d01.2017-04-21_00:00:00.nc
met_em.d01.2017-04-21_06:00:00.nc
# mv met_em.d0* /home/WRFV3/test/em_real
Or
# mv met_em.d0* /home/WRFV3/run
Running WRFV3-
# cd WRFV3/test/em_real
Or
# cd WRFV3/run
vi namelist.input
Make changes to the namelist.input file, to reflect information for particular run.
To know the num_metgrid_levels and num_metgrid_soil_levels for namelist.input file
use command :
# ./real.exe
# ls -lrt
wrfinput_d01
wrfbdy_d01
# ./wrf.exe
# ls -lrt
wrfout_d01_2017-04-21_00:00:00