Documente Academic
Documente Profesional
Documente Cultură
On Ubuntu
Compute System.
1. Objective.
To understand about WRF installation.
2. Scope.
Installation WRF Model On Ubuntu.
3. Definition.
Ubuntu is linux operating system.
WRF Model is Weather Research Forecast Model for predict wind direction.
REFERENCES (https://www.enviroware.com/installing-and-running-wrf-3-8-on-linux-ubuntu-lts-16-04-
with-intel-i7-8-core-cpu/) and (https://tool.qlsmc.xyz/blog/2018/11/29/wrf-installation/)
4. Device.
Linux Ubuntu version 18.04 have available space is 80G
5. Operating Procedures.
5.1. Open ssh client for connect Linux Ubuntu.
ssh ubuntu@192.168.150.195
Update repository.
$ sudo apt update
Uncompress ncarg.
$ tar -xvzf ncl_ncarg-6.5.0.tar.gz
$ cd ncl_ncarg-6.5.0
$ sudo ln -sf /usr/include/freetype2/ft2build.h /usr/include/
$ sudo ln -sf /usr/include/freetype2/freetype /usr/include/
Configuration ncarg.
$ ./Configure
Enter Return to continue, or q(quit) >
# options :
Build NCL (y)? y
Parent installation directory : /home/ubuntu/Build_WRF/LIBRARIES/ncl
System temp space directory : /tmp (default)
Build NetCDF4 feature support (optional)? (y) n
Build HDF4 support (optional) into NCL? (y) n
Also build HDF4 support (optional) into raster library? (y) n
Build Triangle support (optional) into NCL (n) n
If you are using NetCDF V4.x, did you enable NetCDF-4 support ? (y) n
Did you build NetCDF with OPeNDAP support ? (n) n
Build GDAL support (optional) into NCL? (y) n
Build EEMD support (optional) into NCL? (y) n
Build Udunits-2 support (optional) into NCL (n) n
Build Vis5d+ support (optional) into NCL (n) n
Build HDF-EOS2 support (optional) into NCL (n) n
Build HDF5 support (optional) into NCL (y) n
Build HDF-EOS5 support (optional) into NCL (n) n
Build GRIB2 support (optional) into NCL (n) n
Enter local library search path(s) : /usr/lib/x86_64-linux-gnu
Enter local include search path(s) : /usr/include/X11
Go back and make more changes or review? (n) n
Save current configuration ? (y) y
Build ncarg.
$ make Everything >& make-output &
Test ncl.
$ ncl -V
Show version 6.5.0 is good.
and nesting is 1.
Compile for nesting? (1=basic, 2=preset moves, 3=vortex following) [default 1]: 1
Define variable.
$ cd WPS
$ export JASPERLIB=$DIR/grib2/lib
$ export JASPERINC=$DIR/grib2/include
Configure WPS.
$ ./configure
edit configure.wps file. Change DM_FC to mpif90 and Append -lgomp in WRF_LIB.
$ vi configure.wps
COMPRESSION_LIBS = -L/home/ubuntu/Build_WRF/LIBRARIES/grib2/lib -ljasper -lpng -lz
COMPRESSION_INC = -I/home/ubuntu/Build_WRF/LIBRARIES/grib2/include
DM_FC = mpif90
WRF_LIB = -L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
-L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
-L$(WRF_DIR)/external/io_int -lwrfio_int \
-L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
-L$(NETCDF)/lib -lnetcdff -lnetcdf -lgomp
Complie WPS.
$ ./compile >& log.compile
Download Data.
$ wget http://hydro.haii.or.th/tmp/WRF/gfs.t00z.pgrb2.0p50.f000
$ wget http://hydro.haii.or.th/tmp/WRF/gfs.t00z.pgrb2.0p50.f006
Or update Real-time from web site ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/
Edit namelist.wps section max_dom, start_date, end_date same Real-time Data and set
geog_data_path to Geography Data.
$ vi namelist.wps
&share
wrf_core = 'ARW',
max_dom = 1,
start_date = '2017-05-17_00:00:00','2006-08-16_12:00:00',
end_date = '2017-05-17_06:00:00','2006-08-16_12:00:00',
interval_seconds = 10800
io_form_geogrid = 2,
/
geog_data_path = '../../Build_WRF/geog/'
link Vtable
$ ln -sf ungrib/Variable_Tables/Vtable.GFS Vtable
&domains
time_step = 150,
time_step_fract_num = 0,
time_step_fract_den = 1,
max_dom = 1,
e_we = 74, 112, 94,
e_sn = 61, 97, 91,
e_vert = 30, 30, 30,
p_top_requested = 5000,
num_metgrid_levels = 32,
Run WRF
$ mpirun -np 2 ./wrf.exe
Create PDF
$ ncl wrf_Precip.ncl
Output is plt_Precip.pdf, you can open pdf file from pdf viewer or download to your laptop.
5.12. Summary.