descriptionA coupled weather-fire forecasting model built on top of Weather Research and Forecasting (WRF).
homepage URL
last changeSat, 8 Dec 2018 17:53:09 +0000 (8 10:53 -0700)
content tags
This is the coupled WRF-Fire model, combining WRF and the SFIRE codes.

For terms and conditions see the file license.txt

Documentation is in progress. Current drafts of the technical documentation and
user's guide can be found at

If you find this code useful please acknowledge our work by citing the paper
[1].  Yes this is a strange reference for an atmospheric scientist but it  
is the only one we have at the moment. Please see the sections
"Fireline propagation model", "Coupling fire and weather models", and
"Level-set-based wildland fire model".  The fire model is based on [2] 
but not all features from [2] are implemented here yet.

We hope you find the code useful. Please let us know if we can help. But
do us a favor and before you ask a question (such as, what is git?) 
please google first. You may need to find a local guru for Linux questions.
Thank you!

Janice Coen - physics
Jan Mandel - the fire code
Jonathan Beezley - WRF infrastructure and WPS

[1] Jan Mandel, Jonathan D. Beezley, Janice L. Coen, Minjeong Kim, Data 
Assimilation for Wildland Fires: Ensemble Kalman filters in coupled 
atmosphere-surface models, IEEE Control Systems Magazine, 2009, 
29, Issue 3, June 2009, 47-65.
Preprint available from

[2] J. L. Coen, “Simulation of the Big Elk Fire using using coupled 
atmosphere-fire modeling,” International Journal of Wildland Fire, vol. 14,
no. 1, pp. 49–59, 2005



For support please subscribe to the wrf-fire mailing list at NCAR at
or see

You can also ask directly

Answers to any questions may be copied or summarized to the wrf-fire list
and/or the wiki.


Tested on linux/ifort/gcc, linux/pgi, linux/g95 (all x86-64), and mac/g95. 
Mac will not run optimized or real data, though. ifort for Linux can be 
downloaded from Intel free for non-commercial use. gfortran is not included 
because gfortran currently cannot compile wrf.


We strongly recommend using git not a tar file to download the code
so that you can get updates easily and also keep your changes. 
You will probably need to install git.  A current version (now 1.6) 
recommended. You may need to install git from sources.

Download NETCDF and install. The curent version is 4.0 Some hints: 
Set the environment variables CC FC and F90 to your compilers. 
Set the install location by something like 
./configure --prefix=/opt/netcdf 
(Of course, use your own location)
Set the environment variable to the top level netcdf directory like:
setenv NETCDF /opt/netcdf
(Of course, replace the path by your location of NETCDF above)

Local developers can source env.csh with setup for some local machines where
NETCDF is already installed.


The code can be downloaded from by

 	 git clone git://

You can see current activities, branches, and download the code also from

Developers with write access get the code and submit changes by 

         git clone ssh://

where "user" is your username at


Use the code from the master branch as it is the only stable one. Use other
branches only if instructed by the developers. We recommend to set up your own
branch for your changes and merge master into it when it is updated.
See doc/README_git.txt


cd wrfv2_fire
./configure # select an option for your computer architecture/compilers
	    # If you are trying to get this working on different
	    # compilers, try copying a section close to your case
            # in arch/configure_new.defaults to the end of that file
            # and modifying to suit your needs... good luck.
./compile em_fire >& compile.log

This will take a while.  Make sure that compile.log contains 
no errors.  ("grep Error compile.log" shouldn't return anything).


cd test/em_fire/small 
./ideal.exe >& ideal.log (this creates file wrfinput_d01, needs to be done only
when input_sounding changes)

This runs an "idealized" problem. 


With ifort:

cd phys
./ifmake clean
./ifmake model_test

Without the clean between different kind of builds nothing will work.
There is g95make for g95.
With other compilers, try someting like 

    make -f testmakefile FC=your fortran compiler

See wrfv2_fire/phys/README_jm.txt for more info.

NOTE: maintaining the standalone model is low priority and it may not work.


README.txt                  this file, how to compile and run WRF/SFIRE on ideal data
README_git.txt              how to use the versioning system
README_mac.txt              how to run on a Mac
README_matlab_netcdf.txt    how to read WRF input and output directly in Matlab
README_vis.txt              matlab visualization using files written every timestep
README_visualization.txt    convert WRF input and output to Matlab
README_wps.txt              how use real data including fuel from Landfire
2018-12-08 Jan MandelMerge branch 'master' into develmasterrcz/master
2018-11-29 moodymjmAdd files via upload
2018-07-05 Jan Mandelfigdevelgith/develrcz/devel
2018-07-03 Jan Mandelylabelgith/master
2018-07-03 Jan Mandelprobability of detection with geolocation error
2018-07-03 Jan Mandelplot_like_new.m
2018-07-01 Jan Mandeltaking dt from namelist.input instead of
2018-07-01 Jan Mandelred.end_datenum=datenum(char(w.times(:))');
2018-06-30 Jan Mandeladding XTIME
2018-06-30 Jan Mandelturning off read check
2018-06-30 Jan Mandeladding read/write scalars
2018-06-30 Jan MandelMerge branch 'devel'
2018-05-24 jhaleyfixed spurious error message inconsistent tign lfn...
2018-05-05 Jan Mandeladding GEOGRID.TBL.FIRE.colibri GEOGRID.TBL.FIRE.kingspeak
2018-04-01 Jan Mandelprints
2018-04-01 Jan Mandelmatlab
2 years ago detect-v0.5 other/Matlab/detect/detect-fit...
6 years ago wrf-3.4
7 years ago wrfv3.3.1_svn
7 years ago wps-3.3
7 years ago wrfv3.3_svn
8 years ago wps-3.2.1
8 years ago wrfv3.2
10 years ago wrfv3.1_pre wrf version 3.1 prerelease, identic...
10 years ago wrfsubgrid modified WRF with subgrid support
10 years ago wrfsvn Unmodified svn version of wrf prior...
11 years ago initial
2 months ago balbi
3 months ago master
8 months ago devel
8 months ago jhaley
8 months ago mod_standalone
11 months ago tmgiannaros/WRFV3.9.1.1
13 months ago chem
14 months ago angel/levelset
15 months ago wrftrack
15 months ago WRFV3.9.1.1
16 months ago jm2/devel
16 months ago angel/local_min
16 months ago angel/base
16 months ago angel/tign_in
16 months ago angel/old/dev.min
16 months ago angel/old/dev