Difference between revisions of "Running WRF-SFIRE with real data in the WRFx system"

From openwfm
Jump to navigation Jump to search
Line 26: Line 26:
  
 
===Installation===
 
===Installation===
'''Clone github repository'''
+
====Clone github repository====
 
  git clone https://github.com/openwfm/wrf-fire
 
  git clone https://github.com/openwfm/wrf-fire
  
'''Configure WRF-SFIRE'''
+
====Configure WRF-SFIRE====
 
  cd wrf-fire/wrfv2_fire
 
  cd wrf-fire/wrfv2_fire
 
  ./configure
 
  ./configure
Line 35: Line 35:
 
Options 7 (intel dmpar) and 1 (simple nesting) if available
 
Options 7 (intel dmpar) and 1 (simple nesting) if available
  
'''Compile WRF-SFIRE'''
+
====Compile WRF-SFIRE====
  
 
Compile em_real
 
Compile em_real
Line 50: Line 50:
 
Add -nostdinc in CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.
 
Add -nostdinc in CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.
  
'''Configure WPS'''
+
====Configure WPS====
 
  cd ../WPS
 
  cd ../WPS
 
  ./configure
 
  ./configure
Line 56: Line 56:
 
Option 2 (serial) if available
 
Option 2 (serial) if available
  
'''Compile WPS'''
+
====Compile WPS====
 
  ./compile >& compile_wps.log &
 
  ./compile >& compile_wps.log &
 
  ls -l *.exe
 
  ls -l *.exe
Line 65: Line 65:
 
Add -nostdinc in CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.
 
Add -nostdinc in CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.
  
'''Get static data'''
+
====Get static data====
 
   cd ../..
 
   cd ../..
 
   wget http://math.ucdenver.edu/~jmandel/tmp/WPS-GEOG.tbz
 
   wget http://math.ucdenver.edu/~jmandel/tmp/WPS-GEOG.tbz

Revision as of 19:03, 16 March 2020

wrf-fire

Requirements and environment

Install requiered libraries

  • General requirements:
    • C-shell
    • Traditional UNIX utilities: zip, tar, make, etc.
  • WRF-SFIRE requirements:
    • Fortran and C compilers (Intel recomended)
    • MPI libraries (same compiler)
    • NetCDF libraries (same compiler)
  • WPS requirements:
    • zlib compression library (zlib)
    • PNG reference library (libpng)
    • JasPer compression library

See also https://www2.mmm.ucar.edu/wrf/users/prepare_for_compilation.html.

Set environtment

setenv NETCDF /where-netcdf-is
setenv JASPERLIB /where-jasper-lib-is
setenv JASPERINC /where-jasper-include-is
setenv WRFIO_NCD_LARGE_FILE_SUPPORT 1

Installation

Clone github repository

git clone https://github.com/openwfm/wrf-fire

Configure WRF-SFIRE

cd wrf-fire/wrfv2_fire
./configure

Options 7 (intel dmpar) and 1 (simple nesting) if available

Compile WRF-SFIRE

Compile em_real

./compile em_real >& compile_em_real.log & 
grep Error compile_em_real.log

If any compilation error, compile em_fire

./compile em_fire >& compile_em_fire.log & 
grep Error compile_em_fire.log

If any of the previous step fails:

./clean -a
./configure

Add -nostdinc in CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.

Configure WPS

cd ../WPS
./configure

Option 2 (serial) if available

Compile WPS

./compile >& compile_wps.log &
ls -l *.exe

It should contain geogrid.exe, metgrid.exe, and ungrib.exe. If not

./clean -a
./configure

Add -nostdinc in CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.

Get static data

 cd ../..
 wget http://math.ucdenver.edu/~jmandel/tmp/WPS-GEOG.tbz
 tar xvfj WPS-GEOG.tbz

wrfxpy

Requirements and environment

Install Anaconda distribution

Download and install the Python 3 Anaconda Python distribution for your platform. We recommend an installation into the users' home directory.

wget https://repo.continuum.io/archive/Anaconda3-2019.10-Linux-x86_64.sh
chmod +x Anaconda3-2019.10-Linux-x86_64.sh
./Anaconda3-2019.10-Linux-x86_64.sh

Install necessary packages

We recommend the creation of an environment. Install pre-requisites:

conda create -n wrfxpy python=3 netcdf4 pyproj paramiko dill scikit-learn scikit-image h5py psutil proj4
conda activate wrfxpy
conda install -c conda-forge simplekml pygrib f90nml pyhdf xmltodict basemap
pip install MesoPy
pip install python-cmr

Note that conda and pip are package managers available in the Anaconda Python distribution.

Set environment

setenv PROJ_LIB "$HOME/anaconda3/share/proj"

Installation

Clone github repository

git clone https://github.com/openwfm/wrfxpy

Configuration And finally, an etc/conf.json file must be created with the keys discussed below. A template file etc/conf.json.initial is provided as a starting point.

wrfxweb

Requirements and environment

Installation

wrfxctrl

Requirements and environment

Installation