Saturday, July 12, 2014

How to install WRF in CentOS 6.2 64bit





The Weather Research & Forecasting Model Installation Manual

By: M.e.Hafez


Introduction
The Weather Research and Forecasting (WRF) Model is a next-generation mesoscale numerical weather prediction system designed to serve both atmospheric research and operational forecasting needs. [1]


Installation Environment
In our case Fedora 13 64-bit has been chosen to install WRF system (Direct link in reference 2). The processor specification as the following.
model name : Intel(R) Xeon(R) CPU X3363 @ 2.83GHz (1 CPU, 2 cores)
Install Dependencies

NOTE: use root privilege to install all dependencies
< gfortran>
yum install gcc-gfortran
< netcdf – Network Common Data Form >
yum install netcdf netcdf-devel
< tsch – C shell >
yum install tcsh
< ncl – NCAR Common Language > : for graphics
yum install ncl ncl-devel
< jasper > : for compression
yum install jasper-devel jasper-libs
< png – Portable Networ Grohics > : for compression
yum install libpng libpng-devel
< redhat lsb graphics >
yum install redhat-lsb-graphics
< restart the machine to take effect >
reboot



< ncview >
yum install ncview
< m4 >
yum install m4
< gv >
yum install gv
< cloog-ppl >
yum install cloog-*
< restart the machine to take effect >
reboot
< make sure that the previous libraries are up to date >
yum update gcc-gfortran netcdf tcsh ncl ncl-devel jasper-devel jasper-libs libpng-devel libpng
< export NETCDF >
export NETCDF=/usr bash
if not working try this
export NETCDF=/usr
< msp library >
yum install msp430-gcc msp430-libc
< python-devel >
yum install python-devel
< c compiler maybe needed >
yum install gcc gcc-c++ gcc-gfortran
< make sure sed and mawk are installed >
yum install sed mawk
< grip >
yum install grip
< grib api >
yum install grib_api
< wgrip and wgrip2 in different command >
yum install wgrib
yum install wgrib2

< libXp >
yum install libXp libXp-devel
< java and Xtst >
yum install libXtst libXtst-devel java-1.6.0-openjdk-devel java-1.6.0-openjdk
< compat fortran library >
yum install compat-libgfortran-41
< java gcj >
yum install java-1.5.0-gcj java-1.5.0-gcj-devel
<perl-Time-HiRes>
yum install perl-Time-HiRes
< make sure the following libraries are exist at /usr >
find /usr -name libmawt.so
find /usr -name libXp.so.6
find /usr -name libgfortran.so.1

< restart the machine to take effect >
reboot

WRF installation
NOTE: log-in as “wrf” user
< export NETCDF >
export NETCDF=/usr
< download the installation script and extract it, then after that add +x permission >
wget http://www.meteoadriatic.net/pub/wrf/ems_install.pl.gz
gunzip ems_install.pl.gz
chmod +x ems_install.pl
<create the installation directory >
mkdir /home/wrf/wrfems
< execute the installation script and follow its questions >
cd /home/wrf
./ems_install.pl --install
< restart the machine to take effect >
reboot



Referances

[2] - ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/fedora/linux/releases/13/Fedora/x86_64/iso/
[3] - http://www.meteoadriatic.net/pub/wrf/ems_install.pl.gz




partitions configuration

swap: 8192MB
boot: 1024
/ : rest of the space



No comments:

Post a Comment