<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openwfm.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Adamko</id>
	<title>openwfm - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openwfm.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Adamko"/>
	<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/wiki/Special:Contributions/Adamko"/>
	<updated>2026-04-22T16:07:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=Vertical_wind_interpolation&amp;diff=8368</id>
		<title>Vertical wind interpolation</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=Vertical_wind_interpolation&amp;diff=8368"/>
		<updated>2025-09-11T00:31:32Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
==Vertical log interpolation and wind reduction factors==&lt;br /&gt;
The wind speed that enters the spread rate formula is found by vertical interpolation to a specified height &#039;&#039;&#039;fwh&#039;&#039;&#039;, sometimes called &#039;&#039;midflame height&#039;&#039;, using the ideal logarithmic wind profile: the wind speed at height &#039;&#039;&#039;z&#039;&#039;&#039; is assumed to be proportional to log &#039;&#039;&#039;z/z&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&#039;&#039;&#039;,  where &#039;&#039;&#039;z&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&#039;&#039;&#039; is the &#039;&#039;roughness height&#039;&#039; (clearly, this is the height where the wind speed is zero). The special logarithmic interpolation we use preserves such functions just like linear interpolation preserves linear functions. The numbers  &#039;&#039;&#039;fwh&#039;&#039;&#039; and &#039;&#039;&#039;z&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&#039;&#039;&#039; need to be known at every point of the fire mesh.&lt;br /&gt;
&lt;br /&gt;
In [[BEHAVE]], the wind is measured at 20ft (6.096m) and log interpolated to the midflame height. The interpolation is the same as multiplying the wind speed by a given &#039;&#039;wind reduction factor&#039;&#039; ([http://www.firemodels.org/downloads/behaveplus/publications/Baughman_and_Albini_1980_6thConFireForMet_EstMidflamWind.pdf Baughman and Albini, 1980]), which we denote by  &#039;&#039;&#039;windrf&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
See [http://www.geosci-model-dev.net/4/591/2011/gmd-4-591-2011.html Mandel et al. 2011] Sec. 5.2 for more details.&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
&lt;br /&gt;
In the code, we thus have two choices:&lt;br /&gt;
# [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/wrfv2_fire/phys/module_fr_sfire_atm.F#L184 Interpolate]  to 6.096m and [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/wrfv2_fire/phys/module_fr_sfire_atm.F#L622 apply] the wind reduction factors. This is much simpler and faster.&lt;br /&gt;
# Interpolate the wind at each point of the fire mesh to the midflame height at that point [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/wrfv2_fire/phys/module_fr_sfire_atm.F#L874 separately]. This is more complicated. &lt;br /&gt;
&lt;br /&gt;
The vertical interpolation is somewhat complicated because of the way how WRF represents [[How_to_interpret_WRF-Fire_variables#Wind|the wind speed]] and [[How_to_interpret_WRF-Fire_variables#Location|the vertical coordinate]]. In particular, because the altitude of nodes in WRF changes during the run, the number of vertical levels needed for the interpolation is not known in advance.&lt;br /&gt;
&lt;br /&gt;
==Data input==&lt;br /&gt;
&lt;br /&gt;
In WRF, the roughness height &#039;&#039;&#039;z0&#039;&#039;&#039; is specified by the surface model in land use. This is typically taken from file [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/wrfv2_fire/run/LANDUSE.TBL LANDUSE.TBL]. The values of the midflame height &#039;&#039;&#039;fwh&#039;&#039;&#039;, the fuel roughness height &#039;&#039;&#039;fz0&#039;&#039;&#039;, the wind reduction factors &#039;&#039;&#039;windrf&#039;&#039;&#039; for each fuel category, and the BEHAVE height &#039;&#039;&#039;fire_wind_height&#039;&#039;&#039;, are specified in the file [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/wrfv2_fire/test/em_fire/small/namelist.fire &#039;&#039;&#039;namelist.fire&#039;&#039;&#039;] as a part of the fuel properties. If these values are not given in the file, the [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/wrfv2_fire/phys/module_fr_sfire_phys.F#L93 defaults] in the code apply.&lt;br /&gt;
&lt;br /&gt;
Note that the roughness height &#039;&#039;&#039;z0&#039;&#039;&#039; from land use and &#039;&#039;&#039;fz0&#039;&#039;&#039; will be generally different, and besides they are given on different meshes.&lt;br /&gt;
&lt;br /&gt;
==Options==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The interpolation mode is controlled by the values of the variables &#039;&#039;&#039;fire_wind_log_interp&#039;&#039;&#039; and &#039;&#039;&#039;fire_use_windrf&#039;&#039;&#039; in the file [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/wrfv2_fire/test/em_fire/small/namelist.input#L180 &#039;&#039;&#039;namelist.input&#039;&#039;&#039;]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 fire_wind_log_interp = 1,      ! 1 = from fuel categories, 2= roughness piecewise constant from atm, 3=bilinear from atm, 4=on atmosphere mesh &lt;br /&gt;
 fire_use_windrf=2,             ! if fire_wind_log_interp.ne.4: 0=ignore wind reduction factors, 1=multiply, 2=use to set fwh, 3=adjust fwh for z0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Supported combinations of the options are listed below. In particular, do not use &#039;&#039;&#039;fire_use_windrf&#039;&#039;&#039;=1, which is for experiments only.&lt;br /&gt;
&lt;br /&gt;
===Interpolation to common height and wind reduction factors===&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;fire_wind_log_interp&#039;&#039;&#039;=4, &#039;&#039;&#039;fire_use_windrf&#039;&#039;&#039; is not used: vertical log interpolation on the atmospheric mesh to &#039;&#039;&#039;fire_wind_height&#039;&#039;&#039; with &#039;&#039;&#039;z0&#039;&#039;&#039; from land use, the interpolated wind speed is then multiplied by &#039;&#039;&#039;windrf&#039;&#039;&#039; at every fire mesh node. The values of &#039;&#039;&#039;fwh&#039;&#039;&#039; and &#039;&#039;&#039;fz0&#039;&#039;&#039; are ignored. &lt;br /&gt;
&lt;br /&gt;
===Interpolation to different heights on the fire mesh===&lt;br /&gt;
&lt;br /&gt;
The  following group of combinations of options controls the interpolation by the wind reduction factor &#039;&#039;&#039;windrf&#039;&#039;&#039;; &#039;&#039;&#039;fwh&#039;&#039;&#039; is not used. &lt;br /&gt;
 &lt;br /&gt;
*  &#039;&#039;&#039;fire_wind_log_interp&#039;&#039;&#039;=1, &#039;&#039;&#039;fire_use_windrf&#039;&#039;&#039;=2: use the roughness height &#039;&#039;&#039;fz0&#039;&#039;&#039; from fuel categories,  ignore &#039;&#039;&#039;fwh&#039;&#039;&#039; and [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/wrfv2_fire/phys/module_fr_sfire_atm.F#L786 set it automatically] to the height that corresponds to the given &#039;&#039;&#039;windrf&#039;&#039;&#039;.&lt;br /&gt;
*  &#039;&#039;&#039;fire_wind_log_interp&#039;&#039;&#039;=2, &#039;&#039;&#039;fire_use_windrf&#039;&#039;&#039;=2: the same, but using roughness height &#039;&#039;&#039;z0&#039;&#039;&#039; interpolated from land use as piecewise constant, ignore &#039;&#039;&#039;fz0&#039;&#039;&#039;.&lt;br /&gt;
*  &#039;&#039;&#039;fire_wind_log_interp&#039;&#039;&#039;=3, &#039;&#039;&#039;fire_use_windrf&#039;&#039;&#039;=2: the same, but using roughness height &#039;&#039;&#039;z0&#039;&#039;&#039; interpolated from land use as piecewise bilinear, ignore &#039;&#039;&#039;fz0&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The above options will produce similar results as the interpolation to common height and using wind reduction factors; the only difference is from the wind not obeying the log profile exactly. In particular, if the first WRF level is above the &#039;&#039;&#039;fire_wind_height&#039;&#039;&#039; (of 6.096m, which is usually the case), these three option will give &#039;&#039;the same result as the interpolation on the atmospheric mesh and multiplication by the wind reduction factors&#039;&#039;, except for slight differences caused by a different technique used for the interpolation of the atmospheric  variables, and by rounding errors.&lt;br /&gt;
&lt;br /&gt;
The combinations of options below control the interpolation by the midflame height &#039;&#039;&#039;fwh&#039;&#039;&#039;, and all three will again produce similar results; &#039;&#039;&#039;windrf&#039;&#039;&#039; is not used.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;fire_wind_log_interp&#039;&#039;&#039;=1, &#039;&#039;&#039;fire_use_windrf&#039;&#039;&#039;=0: Use the values of &#039;&#039;&#039;fwh&#039;&#039;&#039; and &#039;&#039;&#039;fz0&#039;&#039;&#039; as given. &lt;br /&gt;
* &#039;&#039;&#039;fire_wind_log_interp&#039;&#039;&#039;=2, &#039;&#039;&#039;fire_use_windrf&#039;&#039;&#039;=3: Interpolate &#039;&#039;&#039;z0&#039;&#039;&#039; as piecewise constant and adjust &#039;&#039;&#039;fwh&#039;&#039;&#039; for a similar result as with &#039;&#039;&#039;fz0&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039;fire_wind_log_interp&#039;&#039;&#039;=3, &#039;&#039;&#039;fire_use_windrf&#039;&#039;&#039;=3: Interpolate &#039;&#039;&#039;z0&#039;&#039;&#039; as piecewise bilinear and adjust &#039;&#039;&#039;fwh&#039;&#039;&#039; for a similar result as with &#039;&#039;&#039;fz0&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The adjustment of &#039;&#039;&#039;fwh&#039;&#039;&#039; is done by first [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/wrfv2_fire/phys/module_fr_sfire_atm.F#L809 computing] the wind reduction factor when going from &#039;&#039;&#039;fire_wind_height&#039;&#039;&#039; to the given height &#039;&#039;&#039;fwh&#039;&#039;&#039; with the given roughness &#039;&#039;&#039;fz0&#039;&#039;&#039;, then [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/wrfv2_fire/phys/module_fr_sfire_atm.F#L809 changing] &#039;&#039;&#039;fwh&#039;&#039;&#039; to the value that corresponds to the same wind reduction factor but with the interpolated &#039;&#039;&#039;z0&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Diagnostics==&lt;br /&gt;
&lt;br /&gt;
You can use function [https://github.com/jbeezley/wrf-fire/blob/e062dbf62b7591e71a486a7c512efd75e48ed9a1/other/Matlab/vis3d/vprofile.m &#039;&#039;&#039;vprofile&#039;&#039;&#039;] in [[Matlab]] (&#039;&#039;&#039;cd em_fire&#039;&#039;&#039;, &#039;&#039;&#039;matlab&#039;&#039;&#039;, help &#039;&#039;&#039;vprofile&#039;&#039;&#039;) to view the resulting wind profiles and the computed value of &#039;&#039;&#039;fwh&#039;&#039;&#039;. See [[How to visualize vertical profiles from WRF in Matlab]] for details.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
#Robert G. Baughman and Frank A. Albini, Estimating Midflame Windspeeds, Sixth Conference on Fire and Forest Meteorology, Seattle, WA April 22-24, 1980, pp. 88-92 [http://www.firemodels.org/downloads/behaveplus/publications/Baughman_and_Albini_1980_6thConFireForMet_EstMidflamWind.pdf pdf]&lt;br /&gt;
#Jan Mandel, Jonathan D. Beezley, and Adam K. Kochanski, [http://www.geosci-model-dev.net/4/591/2011/gmd-4-591-2011.html &#039;&#039;&#039;Coupled atmosphere-wildland fire modeling with WRF 3.3 and SFIRE 2011&#039;&#039;&#039;], [http://www.geoscientific-model-development.net Geoscientific Model Development (GMD)] 4, 591-610, 2011. {{doi|10.5194/gmd-4-591-2011}}&lt;br /&gt;
&lt;br /&gt;
==Works with==&lt;br /&gt;
* {{WRF-Fire-commit|e062dbf62b7591e71a48|SFIRE July 31, 2011}}. In particular, note that these options are not present in WRF-Fire in WRF 3.3 release; the interpolation to different heights on the fire mesh was not implemented yet, and the wind factors were [[Changes in WRF-Fire 3.3 release|removed from the release]].&lt;br /&gt;
* Matlab 2011a&lt;br /&gt;
[[Category:WRF-Fire]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=FireFlux_Dataset&amp;diff=4462</id>
		<title>FireFlux Dataset</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=FireFlux_Dataset&amp;diff=4462"/>
		<updated>2022-06-10T17:09:03Z</updated>

		<summary type="html">&lt;p&gt;Adamko: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Clements, C. B., S. Zhong, S. Goodrick, J. Li, X. Bian, B.E. Potter, W. E. Heilman, J.J. Charney, R. Perna, M. Jang, D. Lee, M.Patel,S. Street and G. Aumann, 2007: &amp;quot;[http://ams.allenpress.com/perlserv/?request=get-abstract&amp;amp;doi=10.1175/BAMS-88-9-1369&amp;amp;ct=1 Observing the Dynamics of Wildland Grass Fires: FireFlux- A Field Validation Experiment.]&amp;quot; Bulletin of the American Meteorological Society , 88(9),1369-1382.&lt;br /&gt;
&lt;br /&gt;
[[http://demo.openwfm.org/web/wiki/FireFlux_data.zip Fire Flux Dataset]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_convert_data_for_Geogrid&amp;diff=4333</id>
		<title>How to convert data for Geogrid</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_convert_data_for_Geogrid&amp;diff=4333"/>
		<updated>2021-02-17T01:59:28Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Install environment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
&lt;br /&gt;
This wiki page explains how to transform geotiff files to geogrid using convert_geotiff script in [https://github.com/openwfm/wrfxpy.git wrfxpy].&lt;br /&gt;
&lt;br /&gt;
== Get Anaconda3 distribution ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Python 3 [https://www.anaconda.com/products/individual Anaconda Python] distribution for your platform. We recommend an installation into the user&#039;s home directory.&lt;br /&gt;
&lt;br /&gt;
== Install environment ==&lt;br /&gt;
&lt;br /&gt;
Create the python environment:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 conda update -n base -c defaults conda&lt;br /&gt;
 conda create -n wrfx python=3 gdal netcdf4 pyproj paramiko dill h5py psutil proj4 pytz flask pandas&lt;br /&gt;
 conda activate wrfx&lt;br /&gt;
 conda install -c conda-forge simplekml pygrib f90nml pyhdf xmltodict basemap rasterio scipy&lt;br /&gt;
 pip install MesoPy python-cmr&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that &amp;lt;tt&amp;gt;conda&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;pip&amp;lt;/tt&amp;gt; are package managers available in the Anaconda Python distribution.&lt;br /&gt;
&lt;br /&gt;
== Get wrfxpy repository ==&lt;br /&gt;
&lt;br /&gt;
Get repository wrfxpy and checkout to convert_geotiff branch. Shortly, it is going to be available in the master branch.&lt;br /&gt;
 git clone https://github.com/openwfm/wrfxpy&lt;br /&gt;
 cd wrfxpy&lt;br /&gt;
 git checkout convert_geotiff&lt;br /&gt;
&lt;br /&gt;
== Run convert_geotiff.sh ==&lt;br /&gt;
&lt;br /&gt;
Run the code to generate geogrid from geotiff files. Run the following line for each variable to process.&lt;br /&gt;
 ./convert_geotiff.sh geotiff_file geo_data_path wrf_variable_name [bbox]&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;geotiff_file&amp;lt;/tt&amp;gt; - path to a geotiff file to be converted to geogrid&lt;br /&gt;
* &amp;lt;tt&amp;gt;geo_data_path&amp;lt;/tt&amp;gt; - any path where to save all the variables&lt;br /&gt;
* &amp;lt;tt&amp;gt;wrf_variable&amp;lt;/tt&amp;gt; - WRF variable created on src/geo/var_wisdom.py&lt;br /&gt;
* &amp;lt;tt&amp;gt;bbox&amp;lt;/tt&amp;gt; - optional, bounding box to sample the original geotiff file from, using WGS84 coordinates. Format: min_lon,max_lon,min_lat,max_lat&lt;br /&gt;
&lt;br /&gt;
If you want to know more information and the existing options for wrf_variable, run ./convert_geotiff.sh without inputs&lt;br /&gt;
 ./convert_geotiff.sh&lt;br /&gt;
&lt;br /&gt;
Some examples:&lt;br /&gt;
 ./convert_geotiff.sh elevation.tif geo_data ZSF&lt;br /&gt;
 ./convert_geotiff.sh fuel.tif geo_data NFUEL_CAT&lt;br /&gt;
 ./convert_geotiff.sh fuel.tif geo_data NFUEL_CAT -112.8115,-112.1661,39.4820,39.9750&lt;br /&gt;
&lt;br /&gt;
== Results from convert_geotiff.sh ==&lt;br /&gt;
&lt;br /&gt;
The convert_geotiff.sh script will generate a folder specified by the user by &amp;lt;tt&amp;gt;geo_data_path&amp;lt;/tt&amp;gt; with&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Variable folders:&#039;&#039;&#039; A folder for each variable previously run (ZSF and NFUEL_CAT folders) containing: &lt;br /&gt;
** a geogrid file of the variable.&lt;br /&gt;
** an index file of the variable.&lt;br /&gt;
* &#039;&#039;&#039;geogrid_tbl.json:&#039;&#039;&#039; A JSON file with all the geogrid information for each variable.&lt;br /&gt;
* &#039;&#039;&#039;GEOGRID.TBL:&#039;&#039;&#039; A text file with the information to add to GEOGRID.TBL (depends on src/geo/var_wisdom.py, so only copy what you need).&lt;br /&gt;
* &#039;&#039;&#039;index.json:&#039;&#039;&#039; A JSON file with index information for each variable.&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Howtos|Convert data for Geogrid]]&lt;br /&gt;
[[Category:Data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_convert_data_for_Geogrid&amp;diff=4332</id>
		<title>How to convert data for Geogrid</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_convert_data_for_Geogrid&amp;diff=4332"/>
		<updated>2021-02-13T19:31:36Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Get wrfxpy repository */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
&lt;br /&gt;
This wiki page explains how to transform geotiff files to geogrid using convert_geotiff script in [https://github.com/openwfm/wrfxpy.git wrfxpy].&lt;br /&gt;
&lt;br /&gt;
== Get Anaconda3 distribution ==&lt;br /&gt;
&lt;br /&gt;
Download and install the Python 3 [https://www.anaconda.com/products/individual Anaconda Python] distribution for your platform. We recommend an installation into the user&#039;s home directory.&lt;br /&gt;
&lt;br /&gt;
== Install environment ==&lt;br /&gt;
&lt;br /&gt;
Create the python environment:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 conda update -n base -c defaults conda&lt;br /&gt;
 conda create -n wrfx python=3 gdal netcdf4 pyproj paramiko dill h5py psutil proj4 pytz flask pandas&lt;br /&gt;
 conda activate wrfx&lt;br /&gt;
 conda install -c conda-forge simplekml pygrib f90nml pyhdf xmltodict basemap rasterio&lt;br /&gt;
 pip install MesoPy python-cmr&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that &amp;lt;tt&amp;gt;conda&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;pip&amp;lt;/tt&amp;gt; are package managers available in the Anaconda Python distribution.&lt;br /&gt;
&lt;br /&gt;
== Get wrfxpy repository ==&lt;br /&gt;
&lt;br /&gt;
Get repository wrfxpy and checkout to convert_geotiff branch. Shortly, it is going to be available in the master branch.&lt;br /&gt;
 git clone https://github.com/openwfm/wrfxpy&lt;br /&gt;
 cd wrfxpy&lt;br /&gt;
 git checkout convert_geotiff&lt;br /&gt;
&lt;br /&gt;
== Run convert_geotiff.sh ==&lt;br /&gt;
&lt;br /&gt;
Run the code to generate geogrid from geotiff files. Run the following line for each variable to process.&lt;br /&gt;
 ./convert_geotiff.sh geotiff_file geo_data_path wrf_variable_name [bbox]&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;geotiff_file&amp;lt;/tt&amp;gt; - path to a geotiff file to be converted to geogrid&lt;br /&gt;
* &amp;lt;tt&amp;gt;geo_data_path&amp;lt;/tt&amp;gt; - any path where to save all the variables&lt;br /&gt;
* &amp;lt;tt&amp;gt;wrf_variable&amp;lt;/tt&amp;gt; - WRF variable created on src/geo/var_wisdom.py&lt;br /&gt;
* &amp;lt;tt&amp;gt;bbox&amp;lt;/tt&amp;gt; - optional, bounding box to sample the original geotiff file from, using WGS84 coordinates. Format: min_lon,max_lon,min_lat,max_lat&lt;br /&gt;
&lt;br /&gt;
If you want to know more information and the existing options for wrf_variable, run ./convert_geotiff.sh without inputs&lt;br /&gt;
 ./convert_geotiff.sh&lt;br /&gt;
&lt;br /&gt;
Some examples:&lt;br /&gt;
 ./convert_geotiff.sh elevation.tif geo_data ZSF&lt;br /&gt;
 ./convert_geotiff.sh fuel.tif geo_data NFUEL_CAT&lt;br /&gt;
 ./convert_geotiff.sh fuel.tif geo_data NFUEL_CAT -112.8115,-112.1661,39.4820,39.9750&lt;br /&gt;
&lt;br /&gt;
== Results from convert_geotiff.sh ==&lt;br /&gt;
&lt;br /&gt;
The convert_geotiff.sh script will generate a folder specified by the user by &amp;lt;tt&amp;gt;geo_data_path&amp;lt;/tt&amp;gt; with&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Variable folders:&#039;&#039;&#039; A folder for each variable previously run (ZSF and NFUEL_CAT folders) containing: &lt;br /&gt;
** a geogrid file of the variable.&lt;br /&gt;
** an index file of the variable.&lt;br /&gt;
* &#039;&#039;&#039;geogrid_tbl.json:&#039;&#039;&#039; A JSON file with all the geogrid information for each variable.&lt;br /&gt;
* &#039;&#039;&#039;GEOGRID.TBL:&#039;&#039;&#039; A text file with the information to add to GEOGRID.TBL (depends on src/geo/var_wisdom.py, so only copy what you need).&lt;br /&gt;
* &#039;&#039;&#039;index.json:&#039;&#039;&#039; A JSON file with index information for each variable.&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Howtos|Convert data for Geogrid]]&lt;br /&gt;
[[Category:Data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=Running_WRF-SFIRE_with_real_data_in_the_WRFx_system&amp;diff=4320</id>
		<title>Running WRF-SFIRE with real data in the WRFx system</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=Running_WRF-SFIRE_with_real_data_in_the_WRFx_system&amp;diff=4320"/>
		<updated>2020-08-24T15:15:28Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Get static data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Instructions to set up the whole WRFx system right now using the last version of all the components with a couple of working examples. WRFx consists of a Fortran coupled atmosphere-fire model [https://github.com/openwfm/wrf-fire WRF-SFIRE], a python automatic HPC system [https://github.com/openwfm/wrfxpy wrfxpy], a visualization web interface [https://github.com/openwfm/wrfxweb wrfxweb], and a simulation web interface [https://github.com/openwfm/wrfxctrl wrfxctrl].&lt;br /&gt;
&lt;br /&gt;
=WRF-SFIRE model=&lt;br /&gt;
&lt;br /&gt;
A coupled weather-fire forecasting model built on top of Weather Research and Forecasting (WRF).&lt;br /&gt;
&lt;br /&gt;
==WRF-SFIRE: Requirements and environment==&lt;br /&gt;
&lt;br /&gt;
===Install required libraries===&lt;br /&gt;
* General requirements:&lt;br /&gt;
** C-shell&lt;br /&gt;
** Traditional UNIX utilities: zip, tar, make, etc.&lt;br /&gt;
* WRF-SFIRE requirements:&lt;br /&gt;
** Fortran and C compilers (Intel recomended)&lt;br /&gt;
** MPI (compiled using the same compiler, usually comes with the system)&lt;br /&gt;
** NetCDF libraries (compiled using the same compiler)&lt;br /&gt;
* WPS requirements:&lt;br /&gt;
** zlib compression library (zlib)&lt;br /&gt;
** PNG reference library (libpng)&lt;br /&gt;
** JasPer compression library&lt;br /&gt;
** libtiff and geotiff libraries	&lt;br /&gt;
&lt;br /&gt;
See https://www2.mmm.ucar.edu/wrf/users/prepare_for_compilation.html for the required versions of the libraries.&lt;br /&gt;
&lt;br /&gt;
===Set environment===&lt;br /&gt;
Set specific libraries installed &lt;br /&gt;
 setenv NETCDF /path/to/netcdf&lt;br /&gt;
 setenv JASPERLIB /path/to/jasper/lib&lt;br /&gt;
 setenv JASPERINC /path/to/jasper/include&lt;br /&gt;
 setenv LIBTIFF /path/to/libtiff&lt;br /&gt;
 setenv GEOTIFF /path/to/libtiff&lt;br /&gt;
 setenv WRFIO_NCD_LARGE_FILE_SUPPORT 1&lt;br /&gt;
Should your executables fail on unresolved libraries, also add all the library folders into your LD_LIBRARY_PATH:&lt;br /&gt;
 setenv LD_LIBRARY_PATH /path/to/netcdf/lib:/path/to/jasper/lib:/path/to/libtiff/lib:/path/to/geotiff/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
==WRF-SFIRE: Installation==&lt;br /&gt;
===Clone github repositories===&lt;br /&gt;
Clone WRF-SFIRE and WPS github repositories&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/WRF-SFIRE&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/WPS&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configure WRF-SFIRE===&lt;br /&gt;
 cd WRF-SFIRE&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
Options 15 (INTEL ifort/icc dmpar) and 1 (simple nesting) if available&lt;br /&gt;
&lt;br /&gt;
===Compile WRF-SFIRE===&lt;br /&gt;
Compile em_real&lt;br /&gt;
 ./compile em_real &amp;gt;&amp;amp; compile_em_real.log &amp;amp; &lt;br /&gt;
 grep Error compile_em_real.log&lt;br /&gt;
&lt;br /&gt;
If any compilation error, compile em_fire&lt;br /&gt;
 ./compile em_fire &amp;gt;&amp;amp; compile_em_fire.log &amp;amp; &lt;br /&gt;
 grep Error compile_em_fire.log&lt;br /&gt;
&lt;br /&gt;
If any of the previous step fails: &lt;br /&gt;
 ./clean -a&lt;br /&gt;
 ./configure&lt;br /&gt;
Add to configure.wrf -nostdinc at the end of the CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.&lt;br /&gt;
&lt;br /&gt;
===Configure WPS===&lt;br /&gt;
 cd ../WPS&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
Option 17 (Intel compiler (serial)) if available&lt;br /&gt;
&lt;br /&gt;
===Compile WPS===&lt;br /&gt;
 ./compile &amp;gt;&amp;amp; compile_wps.log &amp;amp;&lt;br /&gt;
 grep Error compile_wps.log&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
 ls -l *.exe&lt;br /&gt;
&lt;br /&gt;
should contain geogrid.exe, metgrid.exe, and ungrib.exe. If not&lt;br /&gt;
 ./clean -a&lt;br /&gt;
 ./configure&lt;br /&gt;
Add to configure.wps -nostdinc at the end of CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.&lt;br /&gt;
&lt;br /&gt;
===Get static data===&lt;br /&gt;
Get tar file with the static data and untar it. Keep in mind that this is the file that contains landuse, elevation, soiltype data, etc for WRF (geogrid.exe to be psecific).&lt;br /&gt;
  cd ..&lt;br /&gt;
  wget &amp;lt;nowiki&amp;gt;http://math.ucdenver.edu/~farguella/tmp/WPS_GEOG.tbz&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  tar xvfj WPS_GEOG.tbz&lt;br /&gt;
&lt;br /&gt;
=WRFx system=&lt;br /&gt;
&lt;br /&gt;
==WRFx: Requirements and environment==&lt;br /&gt;
&lt;br /&gt;
===Install Anaconda distribution===&lt;br /&gt;
Download and install the Python 3 [https://repo.continuum.io/archive Anaconda Python] distribution for your platform. We recommend an installation into the users&#039; home directory.&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;https://repo.continuum.io/archive/Anaconda3-2020.02-Linux-x86_64.sh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 chmod +x Anaconda3-2020.02-Linux-x86_64.sh&lt;br /&gt;
 ./Anaconda3-2020.02-Linux-x86_64.sh&lt;br /&gt;
&lt;br /&gt;
===Install necessary packages===&lt;br /&gt;
We recommend the creation of an environment. Install pre-requisites:&lt;br /&gt;
 conda update -n base -c defaults conda&lt;br /&gt;
 conda create -n wrfx python=3 gdal netcdf4 pyproj paramiko dill h5py psutil proj4 pytz scipy matplotlib flask&lt;br /&gt;
 conda activate wrfx&lt;br /&gt;
 conda install -c conda-forge simplekml pygrib f90nml pyhdf xmltodict basemap rasterio&lt;br /&gt;
 pip install MesoPy python-cmr&lt;br /&gt;
&lt;br /&gt;
Note that conda and pip are package managers available in the Anaconda Python distribution.&lt;br /&gt;
&lt;br /&gt;
===Set environment===&lt;br /&gt;
If you created the wrfx environment as shown above, check that PROJ_LIB path is pointing to&lt;br /&gt;
 $HOME/anaconda3/envs/wrfx/share/proj&lt;br /&gt;
If not, you can try setting it to&lt;br /&gt;
 setenv PROJ_LIB &amp;quot;$HOME/anaconda3/share/proj&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==WRFx: wrfxpy==&lt;br /&gt;
&lt;br /&gt;
WRF-SFIRE forecasting and data assimilation in python using an HPC environment.&lt;br /&gt;
&lt;br /&gt;
===wrfxpy: Installation===&lt;br /&gt;
====Clone github repository====&lt;br /&gt;
Clone wrfxpy repository&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrfxpy&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Change to the directory where the wrfxpy repository has been created&lt;br /&gt;
 cd wrfxpy&lt;br /&gt;
and in wrxpy folder&lt;br /&gt;
 git checkout angel&lt;br /&gt;
&lt;br /&gt;
====General configuration====&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
 cd wrfxpy&lt;br /&gt;
 cp etc/conf.json.initial etc/conf.json&lt;br /&gt;
&lt;br /&gt;
Configure the queuing system, system directories, WPS/WRF-SFIRE locations, and workspace locations by editing the following keys in etc/conf.json:&lt;br /&gt;
 &amp;quot;qsys&amp;quot;: &amp;quot;key from clusters.json&amp;quot;,&lt;br /&gt;
 &amp;quot;wps_install_path&amp;quot;: &amp;quot;/path/to/WPS&amp;quot;,&lt;br /&gt;
 &amp;quot;wrf_install_path&amp;quot;: &amp;quot;/path/to/WRF&amp;quot;,&lt;br /&gt;
 &amp;quot;sys_install_path&amp;quot;: &amp;quot;/path/to/wrfxpy&amp;quot;&lt;br /&gt;
 &amp;quot;wps_geog_path&amp;quot; : &amp;quot;/path/to/WPS_GEOG&amp;quot;,&lt;br /&gt;
 &amp;quot;wget&amp;quot; : /path/to/wget&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that all these paths are created from previous steps of this wiki except the wget path, which needs to be specified to use a preferred version. To find the default wget,&lt;br /&gt;
 which wget&lt;br /&gt;
&lt;br /&gt;
====Cluster configuration====&lt;br /&gt;
&lt;br /&gt;
Next, wrfxpy needs to know how jobs are submitted on your cluster. Create an entry for your cluster in etc/clusters.json, here we use speedy as an example:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;speedy&amp;quot; : {&lt;br /&gt;
     &amp;quot;qsub_cmd&amp;quot; : &amp;quot;qsub&amp;quot;,&lt;br /&gt;
     &amp;quot;qdel_cmd&amp;quot; : &amp;quot;qdel&amp;quot;,&lt;br /&gt;
     &amp;quot;qstat_cmd&amp;quot; : &amp;quot;qstat&amp;quot;,&lt;br /&gt;
     &amp;quot;qstat_arg&amp;quot; : &amp;quot;&amp;quot;,&lt;br /&gt;
     &amp;quot;qsub_delimiter&amp;quot; : &amp;quot;.&amp;quot;,&lt;br /&gt;
     &amp;quot;qsub_job_num_index&amp;quot; : 0,&lt;br /&gt;
     &amp;quot;qsub_script&amp;quot; : &amp;quot;etc/qsub/speedy.sub&amp;quot;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
And then the file etc/qsub/speedy.sub should contain a submission script template, that makes use of the following variables supplied by wrfxpy based on job configuration:&lt;br /&gt;
&lt;br /&gt;
 %(nodes)d the number of nodes requested&lt;br /&gt;
 %(ppn)d the number of processors per node requested&lt;br /&gt;
 %(wall_time_hrs)d the number of hours requested&lt;br /&gt;
 %(exec_path)d the path to the wrf.exe that should be executed&lt;br /&gt;
 %(cwd)d the job working directory&lt;br /&gt;
 %(task_id)d a task id that can be used to identify the job&lt;br /&gt;
 %(np)d the total number of processes requested, equals nodes x ppn&lt;br /&gt;
&lt;br /&gt;
Note that not all keys need to be used, as shown in the speedy example:&lt;br /&gt;
&lt;br /&gt;
 #$ -S /bin/bash&lt;br /&gt;
 #$ -N %(task_id)s&lt;br /&gt;
 #$ -wd %(cwd)s&lt;br /&gt;
 #$ -l h_rt=%(wall_time_hrs)d:00:00&lt;br /&gt;
 #$ -pe mpich %(np)d&lt;br /&gt;
 mpirun_rsh -np %(np)d -hostfile $TMPDIR/machines %(exec_path)s&lt;br /&gt;
&lt;br /&gt;
The script template should be derived from a working submission script.&lt;br /&gt;
&lt;br /&gt;
Note: wrfxpy has already configuration for colibri, gross, kingspeak, and cheyenne.&lt;br /&gt;
&lt;br /&gt;
====Tokens configuration====&lt;br /&gt;
&lt;br /&gt;
When running wrfxpy, sometimes the data needs to be accessed and downloaded using a specific token created for the user. For instance, in the case of running the Fuel Moisture Model, one needs a token from a valid [https://simplekml.readthedocs.org/en/latest MesoWest] user to download data automatically. Also, when downloading satellite data, one needs a token from an [https://earthdata.nasa.gov/ Earthdata] user. All of these can be specified with the creation of the file etc/tokens.json from the template etc/tokens.json.initial containing:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;mesowest&amp;quot; : &amp;quot;token-from-mesowest&amp;quot;,&lt;br /&gt;
   &amp;quot;appkey&amp;quot; : &amp;quot;token-from-earthdata&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
So, if any of the previous capabilities are required, create a token from the specific page, do&lt;br /&gt;
&lt;br /&gt;
 cp etc/tokens.json.initial etc/tokens.json&lt;br /&gt;
&lt;br /&gt;
and edit the file to include your previously created token.&lt;br /&gt;
&lt;br /&gt;
For running fuel moisture model, a new MesoWest user can be created in [https://mesowest.utah.edu/cgi-bin/droman/my_join.cgi?came_from=http://mesowest.utah.edu MesoWest New User]. Then, the token can be acquired and replaced in the etc/tokens.json file.&lt;br /&gt;
&lt;br /&gt;
For acquiring satellite data, a new Earthdata user can be created in [https://urs.earthdata.nasa.gov/users/new Earthdata New User]. Then, the token can be acquired and replaced in the etc/tokens.json file. There are some data centers that need to be accessed using the $HOME/.netrc file. Therefore, creating the $HOME/.netrc file is recommended as follows&lt;br /&gt;
&lt;br /&gt;
 machine urs.earthdata.nasa.gov&lt;br /&gt;
 login your_earthdata_id&lt;br /&gt;
 password your_earthdata_password&lt;br /&gt;
&lt;br /&gt;
====Get static data====&lt;br /&gt;
&lt;br /&gt;
When running WRF-SFIRE simulations, one needs to use high-resolution elevation and fuel category data. If you have a GeoTIFF file for elevation and fuel, you can specify the location of these files using etc/vtables/geo_vars.json. So, you can do&lt;br /&gt;
&lt;br /&gt;
 cp etc/vtables/geo_vars.json.initial etc/vtables/geo_vars.json&lt;br /&gt;
&lt;br /&gt;
and add the absolute path to your GeoTIFF files. The routine is going to automatically process these files and convert them into geogrid files to fit WPS. If you need to map the categories from the GeoTIFF files to the 13 Rothermel categories, you can modify the dictionary _var_wisdom on file src/geo/var_wisdom.py to specify the mapping. By default, the categories form the LANDFIRE dataset are going to be mapped according to 13 Rothermel categories. You can also specify what categories you want to interpolate using nearest neighbors. Therefore, the ones that you cannot map to 13 Rothermel categories. Finally, you can specify what categories should be no burnable using category 14.&lt;br /&gt;
&lt;br /&gt;
To get GeoTIFF files from CONUS, you can use the LANDFIRE dataset following the steps on [[How_to_run_WRF-SFIRE_with_real_data#Obtaining_data_for_geogrid]]. Or you can just use the GeoTIFF files included in the static dataset WPS_GEOG/fuel_cat_fire and WPS_GEOG/topo_fire specifying in etc/vtables/geo_vars.json&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;NFUEL_CAT&amp;quot;: &amp;quot;/path/to/WPS_GEOG/fuel_cat_fire/lf_data.tif&amp;quot;,&lt;br /&gt;
  &amp;quot;ZSF&amp;quot;: &amp;quot;/path/to/WPS_GEOG/topo_fire/ned_data.tif&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
For running fuel moisture model, terrain static data is needed. &#039;&#039;&#039;This is a separate file from the static data downloaded for WRF.&#039;&#039;&#039; To get the static data for the fuel moisture model, go to wrfxpy and do:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://math.ucdenver.edu/~farguella/tmp/static.tbz&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar xvfj static.tbz&lt;br /&gt;
this will untar a static folder with the static terrain on it.&lt;br /&gt;
&lt;br /&gt;
This dataset is needed for the fuel moisture data assimilation system. The fuel moisture model run as a part of WRF-SFIRE doesn&#039;t need this dataset and uses data processed by WPS.&lt;br /&gt;
&lt;br /&gt;
===wrxpy: Testing===&lt;br /&gt;
====Simple forecast====&lt;br /&gt;
At this point, one should be able to run wrfxpy with a simple example:&lt;br /&gt;
 conda activate wrfxpy&lt;br /&gt;
 ./simple_forecast.sh&lt;br /&gt;
Press enter at all the steps to set everything to the default values until the queuing system, then we select the cluster we configure (speedy in the example).&lt;br /&gt;
&lt;br /&gt;
This will generate a job under jobs/experiment.json (or the name of the experiment that we chose).&lt;br /&gt;
&lt;br /&gt;
Then, we can run our first forecast by&lt;br /&gt;
 ./forecast.sh jobs/experiment.json &amp;gt;&amp;amp; logs/experiment.log &amp;amp;&lt;br /&gt;
&lt;br /&gt;
Show generate the experiment in the path specified in the etc/conf.json file and under a folder using the experiment name. The file logs/experiment.log should show the whole process step by step without any error.&lt;br /&gt;
&lt;br /&gt;
====Fuel moisture model====&lt;br /&gt;
If tokens.json is set, &amp;quot;mesowest&amp;quot; token is provided, and static data is gotten, you can run&lt;br /&gt;
 ./rtma_cycler.sh anything &amp;gt;&amp;amp; logs/rtma_cycler.log &amp;amp;&lt;br /&gt;
which will download all the necessary weather stations and estimate the fuel moisture model in the whole continental US.&lt;br /&gt;
&lt;br /&gt;
===wrfxpy: Possible errors===&lt;br /&gt;
====real.exe fails====&lt;br /&gt;
&lt;br /&gt;
Depending on the cluster, wrfxpy could fail when tries to execute ./real.exe. This happens on systems that do not allow executing MPI binary from the command line. We do not run real.exe by mpirun because mpirun on head node may not be allowed. Then, one needs to provide an installation of WRF-SFIRE in serial mode in order to run real.exe in serial. In that case, we want to repeat the [[Setting_up_current_WRFx_system#Installation|previous steps]] but using the serial version of WRF-SFIRE&lt;br /&gt;
 cd ..&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrf-fire wrf-fire-serial&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 cd wrf-fire-serial/wrfv2_fire&lt;br /&gt;
 ./configure&lt;br /&gt;
Options 13 (INTEL ifort/icc serial) and 0 (no nesting)&lt;br /&gt;
&lt;br /&gt;
 ./compile em_real &amp;gt;&amp;amp; compile_em_real.log &amp;amp; &lt;br /&gt;
 grep Error compile_em_real.log&lt;br /&gt;
Again, if any of the previous step fails: &lt;br /&gt;
 ./clean -a&lt;br /&gt;
 ./configure&lt;br /&gt;
Add -nostdinc in CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.&lt;br /&gt;
&lt;br /&gt;
Note: This time, we only need to compile em_real because we only need real.exe. However, if you want to test serial vs parallel for any reason, you can proceed to compile em_fire the same way.&lt;br /&gt;
&lt;br /&gt;
Then, we need to add this path in etc/conf.json file in wrfxpy, so&lt;br /&gt;
 cd ../wrfxpy&lt;br /&gt;
and add to etc/conf.json file key&lt;br /&gt;
 &amp;quot;wrf_serial_install_path&amp;quot;: &amp;quot;/path/to/WRF/serial&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This should solve the problem, if not check log files from previous compilations.&lt;br /&gt;
&lt;br /&gt;
==WRFx: wrfxweb==&lt;br /&gt;
&lt;br /&gt;
Web-based visualization system for imagery generated by wrfxpy.&lt;br /&gt;
&lt;br /&gt;
===wrfxweb: Account creation===&lt;br /&gt;
&lt;br /&gt;
Create ~/.ssh directory (if you have not one)&lt;br /&gt;
 mkdir ~/.ssh&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
&lt;br /&gt;
Create an id_rsa key (if you have not one) doing&lt;br /&gt;
 ssh-keygen&lt;br /&gt;
and following all the steps (you can select defaults, so always press enter). &lt;br /&gt;
&lt;br /&gt;
Send an email to Jan Mandel (jan.mandel@gmail.com) asking for the creation of an account in demo server providing: &lt;br /&gt;
* Purpose of your request (including information about you)&lt;br /&gt;
* User id you would like (user_id)&lt;br /&gt;
* Short user id you would like (short_user_id)&lt;br /&gt;
* Public key (~/.ssh/id_rsa.pub file previously created)&lt;br /&gt;
&lt;br /&gt;
After that, you will receive an answer from Jan and you will be able to ssh the demo server without any password (only the passcode from the id_rsa key if you set one).&lt;br /&gt;
&lt;br /&gt;
===wrfxweb: Installation===&lt;br /&gt;
&lt;br /&gt;
====Clone github repository====&lt;br /&gt;
Clone wrfxweb repository in the demo server&lt;br /&gt;
 ssh user_id@demo.openwfm.org&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrfxweb.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuration====&lt;br /&gt;
&lt;br /&gt;
Change directory and copy template to create new etc/conf.json&lt;br /&gt;
 cd wrfxweb&lt;br /&gt;
 cp etc/conf.json.template etc/conf.json&lt;br /&gt;
&lt;br /&gt;
Configure the following key in etc/conf.json:&lt;br /&gt;
 &amp;quot;url_root&amp;quot;: &amp;quot;&amp;lt;nowiki&amp;gt;http://demo.openwfm.org/short_user_id&amp;lt;/nowiki&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The next steps are going to be set in a desired installation of wrfxpy (generated in the previous section). &lt;br /&gt;
&lt;br /&gt;
Configure the following keys in etc/conf.json in any wrfxpy installation&lt;br /&gt;
 &amp;quot;shuttle_ssh_key&amp;quot;: &amp;quot;/path/to/id_rsa&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_remote_user&amp;quot;: &amp;quot;user_id&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_remote_host&amp;quot;: &amp;quot;demo.openwfm.org&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_remote_root&amp;quot;: &amp;quot;/path/to/remote/storage/directory&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_lock_path&amp;quot;: &amp;quot;/tmp/short_user_id&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;shuttle_remote_root&amp;quot; key is usually defined as &amp;quot;/home/user_id/wrfxweb/fdds/simulations&amp;quot;. So, everything should be ready to send post-processing simulations into the visualization server.&lt;br /&gt;
&lt;br /&gt;
===wrfxweb: Testing===&lt;br /&gt;
====Simple forecast====&lt;br /&gt;
Finally, one can repeat the previous [[Setting_up_current_WRFx_system#Simple_forecast|simple forecast test]] but when simple forecast asks&lt;br /&gt;
 Send variables to visualization server? [default=no]&lt;br /&gt;
you will answer yes.&lt;br /&gt;
&lt;br /&gt;
Then, you should see your simulation post-processed time steps appearing in real-time on http://demo.openwfm.org under your short_user_id.&lt;br /&gt;
&lt;br /&gt;
====Fuel moisture model====&lt;br /&gt;
The [[Setting_up_current_WRFx_system#Fuel_moisture_model|fuel moisture model test]] can be also run and a special visualization will appear on http://demo.openwfm.org under your short_user_id.&lt;br /&gt;
&lt;br /&gt;
==WRFx: wrfxctrl==&lt;br /&gt;
&lt;br /&gt;
A website that enables users to submit jobs to the wrfxpy framework for fire simulation.&lt;br /&gt;
&lt;br /&gt;
===wrfxctrl: Installation===&lt;br /&gt;
&lt;br /&gt;
====Clone github repository====&lt;br /&gt;
Clone wrfxctrl repository in your cluster&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrfxctrl.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuration====&lt;br /&gt;
&lt;br /&gt;
Change directory and copy template to create new etc/conf.json&lt;br /&gt;
 cd wrfxctrl&lt;br /&gt;
 cp etc/conf-template.json etc/conf.json&lt;br /&gt;
&lt;br /&gt;
Configure following keys in etc/conf.json&lt;br /&gt;
 &amp;quot;host&amp;quot; : &amp;quot;127.1.2.3&amp;quot;,&lt;br /&gt;
 &amp;quot;port&amp;quot; : &amp;quot;5050&amp;quot;,&lt;br /&gt;
 &amp;quot;root&amp;quot; : &amp;quot;/short_user_id/&amp;quot;,&lt;br /&gt;
 &amp;quot;wrfxweb_url&amp;quot; : &amp;quot;&amp;lt;nowiki&amp;gt;http://demo.openwfm.org/short_user_id/&amp;lt;/nowiki&amp;gt;&amp;quot;,&lt;br /&gt;
 &amp;quot;wrfxpy_path&amp;quot; : &amp;quot;/path/to/wrfxpy&amp;quot;,&lt;br /&gt;
 &amp;quot;jobs_path&amp;quot; : &amp;quot;/path/to/jobs&amp;quot;,&lt;br /&gt;
 &amp;quot;logs_path&amp;quot; : &amp;quot;/path/to/logs&amp;quot;,&lt;br /&gt;
 &amp;quot;sims_path&amp;quot; : &amp;quot;/path/to/sims&amp;quot;&lt;br /&gt;
Notes: &lt;br /&gt;
* Entries &amp;quot;host&amp;quot;, &amp;quot;port&amp;quot;, &amp;quot;root&amp;quot; are only examples but, for security reasons, you should choose different ones of your own and as random as possible. &lt;br /&gt;
* Entries &amp;quot;jobs_path&amp;quot;, &amp;quot;logs_path&amp;quot;, and &amp;quot;sims_path&amp;quot; are recommended to be removed. By default they are defined to be in wrfxctrl directories wrfxctrl/jobs, wrfxctrl/logs, and wrfxctrl/simulations.&lt;br /&gt;
&lt;br /&gt;
===wrfxctrl: Testing===&lt;br /&gt;
&lt;br /&gt;
====Running wrfxctrl====&lt;br /&gt;
&lt;br /&gt;
Activate conda environment and run wrfxctrl.py doing&lt;br /&gt;
&lt;br /&gt;
 conda activate wrfx&lt;br /&gt;
 python wrfxctrl.py &lt;br /&gt;
&lt;br /&gt;
This will show a message similar to &lt;br /&gt;
&lt;br /&gt;
 Welcome page is &amp;lt;nowiki&amp;gt;http://127.1.2.3:5050/short_user_id/start&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  * Serving Flask app &amp;quot;wrfxctrl&amp;quot; (lazy loading)&lt;br /&gt;
  * Environment: production&lt;br /&gt;
    WARNING: This is a development server. Do not use it in a production deployment.&lt;br /&gt;
    Use a production WSGI server instead.&lt;br /&gt;
  * Debug mode: off&lt;br /&gt;
 INFO:werkzeug: * Running on &amp;lt;nowiki&amp;gt;http://127.1.2.3:5050/&amp;lt;/nowiki&amp;gt; (Press CTRL+C to quit)&lt;br /&gt;
&lt;br /&gt;
====Starting page====&lt;br /&gt;
&lt;br /&gt;
Now you can go to your favorite internet browser and navigate to &amp;lt;nowiki&amp;gt;http://127.1.2.3:5050/short_user_id/start&amp;lt;/nowiki&amp;gt; webpage. This will show you a screen similar than that&lt;br /&gt;
&lt;br /&gt;
[[File:Start.png|400px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This starting page shows general information of the cluster and provides an option of starting a new fire using &#039;&#039;Start a new fire&#039;&#039; button and browsing the existent jobs using the &#039;&#039;Show current jobs&#039;&#039; button.&lt;br /&gt;
&lt;br /&gt;
====Submission page====&lt;br /&gt;
&lt;br /&gt;
From the previous page, if you select &#039;&#039;Start a new fire&#039;&#039;, you will be able to access the submission page. In this page, you can specify 1) a short description of the simulation, 2) the ignition location clicking in an interactive map or specifying the degree lat-lon coordinates, 3) the ignition time and the forecast length, 4) the simulation profile which defines the number of domains with their resolutions and sizes and the atmospheric boundary conditions data. Finally, once you have all the simulation options defined, you can scroll down to the end (next figure) and select the &#039;&#039;Ignite&#039;&#039; button. This will automatically show the monitor page where you will be able to track the progress of the simulation. See the image below to see an example of a simulation submission.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Submit1.png|400px|center]][[File:Submit2.png|400px|center]][[File:Submit3.png|402px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Monitoring page====&lt;br /&gt;
&lt;br /&gt;
At the beginning of the monitoring page, you will see a list of important information about the simulation (see figure below). After the information, there is a list of steps with their current status. The different possible statuses are: &lt;br /&gt;
&lt;br /&gt;
* Waiting (grey): Represent that the process has not started and needs to wait for the other process. All the processes are initialized with this status.&lt;br /&gt;
* Running (yellow): Represent that the process is still running so in progress. All processes switch their status from Waiting to Running when they start running.&lt;br /&gt;
* Success (green): Represent that the process finished well. All processes switch their status from Running to Success when they finish running successfully.&lt;br /&gt;
* Available (green): Represent that some part is done and some other is still in progress. This status is only used by the Output process because the visualization is available once the process starts running.&lt;br /&gt;
* Failed (red): Represent that the process finished with a failure. All processes switch their status from Running to Failed when they finish running with a failure.&lt;br /&gt;
&lt;br /&gt;
In the monitor page, the log file can be also retrieved clicking the &#039;&#039;Retrieve log&#039;&#039; button at the end of the page, which provides a scroll down window with the log file information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor1.png|502px|center]][[File:Monitor2.png|500px|center]][[File:Monitor3.png|500px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, once the Output process becomes Available, in the &#039;&#039;Visualization&#039;&#039; element of the information section will appear a link to the simulation in the web server generated using wrfxweb. In this page, one can interactively plot the results in real-time while the simulation is still running&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Visualization.png|500px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Overview page====&lt;br /&gt;
&lt;br /&gt;
From most of the previous pages, you can navigate to the current jobs which shows a list of jobs that are running and it allows the user to cancel or delete any simulation that has run or is running.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Overview.png|500px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=Running_WRF-SFIRE_with_real_data_in_the_WRFx_system&amp;diff=4319</id>
		<title>Running WRF-SFIRE with real data in the WRFx system</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=Running_WRF-SFIRE_with_real_data_in_the_WRFx_system&amp;diff=4319"/>
		<updated>2020-08-24T15:05:10Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Clone github repository */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Instructions to set up the whole WRFx system right now using the last version of all the components with a couple of working examples. WRFx consists of a Fortran coupled atmosphere-fire model [https://github.com/openwfm/wrf-fire WRF-SFIRE], a python automatic HPC system [https://github.com/openwfm/wrfxpy wrfxpy], a visualization web interface [https://github.com/openwfm/wrfxweb wrfxweb], and a simulation web interface [https://github.com/openwfm/wrfxctrl wrfxctrl].&lt;br /&gt;
&lt;br /&gt;
=WRF-SFIRE model=&lt;br /&gt;
&lt;br /&gt;
A coupled weather-fire forecasting model built on top of Weather Research and Forecasting (WRF).&lt;br /&gt;
&lt;br /&gt;
==WRF-SFIRE: Requirements and environment==&lt;br /&gt;
&lt;br /&gt;
===Install required libraries===&lt;br /&gt;
* General requirements:&lt;br /&gt;
** C-shell&lt;br /&gt;
** Traditional UNIX utilities: zip, tar, make, etc.&lt;br /&gt;
* WRF-SFIRE requirements:&lt;br /&gt;
** Fortran and C compilers (Intel recomended)&lt;br /&gt;
** MPI (compiled using the same compiler, usually comes with the system)&lt;br /&gt;
** NetCDF libraries (compiled using the same compiler)&lt;br /&gt;
* WPS requirements:&lt;br /&gt;
** zlib compression library (zlib)&lt;br /&gt;
** PNG reference library (libpng)&lt;br /&gt;
** JasPer compression library&lt;br /&gt;
** libtiff and geotiff libraries	&lt;br /&gt;
&lt;br /&gt;
See https://www2.mmm.ucar.edu/wrf/users/prepare_for_compilation.html for the required versions of the libraries.&lt;br /&gt;
&lt;br /&gt;
===Set environment===&lt;br /&gt;
Set specific libraries installed &lt;br /&gt;
 setenv NETCDF /path/to/netcdf&lt;br /&gt;
 setenv JASPERLIB /path/to/jasper/lib&lt;br /&gt;
 setenv JASPERINC /path/to/jasper/include&lt;br /&gt;
 setenv LIBTIFF /path/to/libtiff&lt;br /&gt;
 setenv GEOTIFF /path/to/libtiff&lt;br /&gt;
 setenv WRFIO_NCD_LARGE_FILE_SUPPORT 1&lt;br /&gt;
Should your executables fail on unresolved libraries, also add all the library folders into your LD_LIBRARY_PATH:&lt;br /&gt;
 setenv LD_LIBRARY_PATH /path/to/netcdf/lib:/path/to/jasper/lib:/path/to/libtiff/lib:/path/to/geotiff/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
==WRF-SFIRE: Installation==&lt;br /&gt;
===Clone github repositories===&lt;br /&gt;
Clone WRF-SFIRE and WPS github repositories&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/WRF-SFIRE&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/WPS&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configure WRF-SFIRE===&lt;br /&gt;
 cd WRF-SFIRE&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
Options 15 (INTEL ifort/icc dmpar) and 1 (simple nesting) if available&lt;br /&gt;
&lt;br /&gt;
===Compile WRF-SFIRE===&lt;br /&gt;
Compile em_real&lt;br /&gt;
 ./compile em_real &amp;gt;&amp;amp; compile_em_real.log &amp;amp; &lt;br /&gt;
 grep Error compile_em_real.log&lt;br /&gt;
&lt;br /&gt;
If any compilation error, compile em_fire&lt;br /&gt;
 ./compile em_fire &amp;gt;&amp;amp; compile_em_fire.log &amp;amp; &lt;br /&gt;
 grep Error compile_em_fire.log&lt;br /&gt;
&lt;br /&gt;
If any of the previous step fails: &lt;br /&gt;
 ./clean -a&lt;br /&gt;
 ./configure&lt;br /&gt;
Add to configure.wrf -nostdinc at the end of the CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.&lt;br /&gt;
&lt;br /&gt;
===Configure WPS===&lt;br /&gt;
 cd ../WPS&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
Option 17 (Intel compiler (serial)) if available&lt;br /&gt;
&lt;br /&gt;
===Compile WPS===&lt;br /&gt;
 ./compile &amp;gt;&amp;amp; compile_wps.log &amp;amp;&lt;br /&gt;
 grep Error compile_wps.log&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
 ls -l *.exe&lt;br /&gt;
&lt;br /&gt;
should contain geogrid.exe, metgrid.exe, and ungrib.exe. If not&lt;br /&gt;
 ./clean -a&lt;br /&gt;
 ./configure&lt;br /&gt;
Add to configure.wps -nostdinc at the end of CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.&lt;br /&gt;
&lt;br /&gt;
===Get static data===&lt;br /&gt;
Get tar file with the static data and untar it. Keep in mind that this is the file that contains landuse, elevation, soiltype data, etc for WRF (geogrid.exe to be psecific).&lt;br /&gt;
  cd ..&lt;br /&gt;
  wget &amp;lt;nowiki&amp;gt;http://math.ucdenver.edu/~farguella/tmp/WPS_GEOG.tbz&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  tar xvfj WPS_GEOG.tbz&lt;br /&gt;
&lt;br /&gt;
=WRFx system=&lt;br /&gt;
&lt;br /&gt;
==WRFx: Requirements and environment==&lt;br /&gt;
&lt;br /&gt;
===Install Anaconda distribution===&lt;br /&gt;
Download and install the Python 3 [https://repo.continuum.io/archive Anaconda Python] distribution for your platform. We recommend an installation into the users&#039; home directory.&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;https://repo.continuum.io/archive/Anaconda3-2020.02-Linux-x86_64.sh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 chmod +x Anaconda3-2020.02-Linux-x86_64.sh&lt;br /&gt;
 ./Anaconda3-2020.02-Linux-x86_64.sh&lt;br /&gt;
&lt;br /&gt;
===Install necessary packages===&lt;br /&gt;
We recommend the creation of an environment. Install pre-requisites:&lt;br /&gt;
 conda update -n base -c defaults conda&lt;br /&gt;
 conda create -n wrfx python=3 gdal netcdf4 pyproj paramiko dill h5py psutil proj4 pytz scipy matplotlib flask&lt;br /&gt;
 conda activate wrfx&lt;br /&gt;
 conda install -c conda-forge simplekml pygrib f90nml pyhdf xmltodict basemap rasterio&lt;br /&gt;
 pip install MesoPy python-cmr&lt;br /&gt;
&lt;br /&gt;
Note that conda and pip are package managers available in the Anaconda Python distribution.&lt;br /&gt;
&lt;br /&gt;
===Set environment===&lt;br /&gt;
If you created the wrfx environment as shown above, check that PROJ_LIB path is pointing to&lt;br /&gt;
 $HOME/anaconda3/envs/wrfx/share/proj&lt;br /&gt;
If not, you can try setting it to&lt;br /&gt;
 setenv PROJ_LIB &amp;quot;$HOME/anaconda3/share/proj&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==WRFx: wrfxpy==&lt;br /&gt;
&lt;br /&gt;
WRF-SFIRE forecasting and data assimilation in python using an HPC environment.&lt;br /&gt;
&lt;br /&gt;
===wrfxpy: Installation===&lt;br /&gt;
====Clone github repository====&lt;br /&gt;
Clone wrfxpy repository&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrfxpy&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Change to the directory where the wrfxpy repository has been created&lt;br /&gt;
 cd wrfxpy&lt;br /&gt;
and in wrxpy folder&lt;br /&gt;
 git checkout angel&lt;br /&gt;
&lt;br /&gt;
====General configuration====&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
 cd wrfxpy&lt;br /&gt;
 cp etc/conf.json.initial etc/conf.json&lt;br /&gt;
&lt;br /&gt;
Configure the queuing system, system directories, WPS/WRF-SFIRE locations, and workspace locations by editing the following keys in etc/conf.json:&lt;br /&gt;
 &amp;quot;qsys&amp;quot;: &amp;quot;key from clusters.json&amp;quot;,&lt;br /&gt;
 &amp;quot;wps_install_path&amp;quot;: &amp;quot;/path/to/WPS&amp;quot;,&lt;br /&gt;
 &amp;quot;wrf_install_path&amp;quot;: &amp;quot;/path/to/WRF&amp;quot;,&lt;br /&gt;
 &amp;quot;sys_install_path&amp;quot;: &amp;quot;/path/to/wrfxpy&amp;quot;&lt;br /&gt;
 &amp;quot;wps_geog_path&amp;quot; : &amp;quot;/path/to/WPS_GEOG&amp;quot;,&lt;br /&gt;
 &amp;quot;wget&amp;quot; : /path/to/wget&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that all these paths are created from previous steps of this wiki except the wget path, which needs to be specified to use a preferred version. To find the default wget,&lt;br /&gt;
 which wget&lt;br /&gt;
&lt;br /&gt;
====Cluster configuration====&lt;br /&gt;
&lt;br /&gt;
Next, wrfxpy needs to know how jobs are submitted on your cluster. Create an entry for your cluster in etc/clusters.json, here we use speedy as an example:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;speedy&amp;quot; : {&lt;br /&gt;
     &amp;quot;qsub_cmd&amp;quot; : &amp;quot;qsub&amp;quot;,&lt;br /&gt;
     &amp;quot;qdel_cmd&amp;quot; : &amp;quot;qdel&amp;quot;,&lt;br /&gt;
     &amp;quot;qstat_cmd&amp;quot; : &amp;quot;qstat&amp;quot;,&lt;br /&gt;
     &amp;quot;qstat_arg&amp;quot; : &amp;quot;&amp;quot;,&lt;br /&gt;
     &amp;quot;qsub_delimiter&amp;quot; : &amp;quot;.&amp;quot;,&lt;br /&gt;
     &amp;quot;qsub_job_num_index&amp;quot; : 0,&lt;br /&gt;
     &amp;quot;qsub_script&amp;quot; : &amp;quot;etc/qsub/speedy.sub&amp;quot;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
And then the file etc/qsub/speedy.sub should contain a submission script template, that makes use of the following variables supplied by wrfxpy based on job configuration:&lt;br /&gt;
&lt;br /&gt;
 %(nodes)d the number of nodes requested&lt;br /&gt;
 %(ppn)d the number of processors per node requested&lt;br /&gt;
 %(wall_time_hrs)d the number of hours requested&lt;br /&gt;
 %(exec_path)d the path to the wrf.exe that should be executed&lt;br /&gt;
 %(cwd)d the job working directory&lt;br /&gt;
 %(task_id)d a task id that can be used to identify the job&lt;br /&gt;
 %(np)d the total number of processes requested, equals nodes x ppn&lt;br /&gt;
&lt;br /&gt;
Note that not all keys need to be used, as shown in the speedy example:&lt;br /&gt;
&lt;br /&gt;
 #$ -S /bin/bash&lt;br /&gt;
 #$ -N %(task_id)s&lt;br /&gt;
 #$ -wd %(cwd)s&lt;br /&gt;
 #$ -l h_rt=%(wall_time_hrs)d:00:00&lt;br /&gt;
 #$ -pe mpich %(np)d&lt;br /&gt;
 mpirun_rsh -np %(np)d -hostfile $TMPDIR/machines %(exec_path)s&lt;br /&gt;
&lt;br /&gt;
The script template should be derived from a working submission script.&lt;br /&gt;
&lt;br /&gt;
Note: wrfxpy has already configuration for colibri, gross, kingspeak, and cheyenne.&lt;br /&gt;
&lt;br /&gt;
====Tokens configuration====&lt;br /&gt;
&lt;br /&gt;
When running wrfxpy, sometimes the data needs to be accessed and downloaded using a specific token created for the user. For instance, in the case of running the Fuel Moisture Model, one needs a token from a valid [https://simplekml.readthedocs.org/en/latest MesoWest] user to download data automatically. Also, when downloading satellite data, one needs a token from an [https://earthdata.nasa.gov/ Earthdata] user. All of these can be specified with the creation of the file etc/tokens.json from the template etc/tokens.json.initial containing:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;mesowest&amp;quot; : &amp;quot;token-from-mesowest&amp;quot;,&lt;br /&gt;
   &amp;quot;appkey&amp;quot; : &amp;quot;token-from-earthdata&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
So, if any of the previous capabilities are required, create a token from the specific page, do&lt;br /&gt;
&lt;br /&gt;
 cp etc/tokens.json.initial etc/tokens.json&lt;br /&gt;
&lt;br /&gt;
and edit the file to include your previously created token.&lt;br /&gt;
&lt;br /&gt;
For running fuel moisture model, a new MesoWest user can be created in [https://mesowest.utah.edu/cgi-bin/droman/my_join.cgi?came_from=http://mesowest.utah.edu MesoWest New User]. Then, the token can be acquired and replaced in the etc/tokens.json file.&lt;br /&gt;
&lt;br /&gt;
For acquiring satellite data, a new Earthdata user can be created in [https://urs.earthdata.nasa.gov/users/new Earthdata New User]. Then, the token can be acquired and replaced in the etc/tokens.json file. There are some data centers that need to be accessed using the $HOME/.netrc file. Therefore, creating the $HOME/.netrc file is recommended as follows&lt;br /&gt;
&lt;br /&gt;
 machine urs.earthdata.nasa.gov&lt;br /&gt;
 login your_earthdata_id&lt;br /&gt;
 password your_earthdata_password&lt;br /&gt;
&lt;br /&gt;
====Get static data====&lt;br /&gt;
&lt;br /&gt;
When running WRF-SFIRE simulations, one needs to use high-resolution elevation and fuel category data. If you have a GeoTIFF file for elevation and fuel, you can specify the location of these files using etc/vtables/geo_vars.json. So, you can do&lt;br /&gt;
&lt;br /&gt;
 cp etc/vtables/geo_vars.json.initial etc/vtables/geo_vars.json&lt;br /&gt;
&lt;br /&gt;
and add the absolute path to your GeoTIFF files. The routine is going to automatically process these files and convert them into geogrid files to fit WPS. If you need to map the categories from the GeoTIFF files to the 13 Rothermel categories, you can modify the dictionary _var_wisdom on file src/geo/var_wisdom.py to specify the mapping. By default, the categories form the LANDFIRE dataset are going to be mapped according to 13 Rothermel categories. You can also specify what categories you want to interpolate using nearest neighbors. Therefore, the ones that you cannot map to 13 Rothermel categories. Finally, you can specify what categories should be no burnable using category 14.&lt;br /&gt;
&lt;br /&gt;
To get GeoTIFF files from CONUS, you can use the LANDFIRE dataset following the steps on [[How_to_run_WRF-SFIRE_with_real_data#Obtaining_data_for_geogrid]]. Or you can just use the GeoTIFF files included in the static dataset WPS_GEOG/fuel_cat_fire and WPS_GEOG/topo_fire specifying in etc/vtables/geo_vars.json&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;NFUEL_CAT&amp;quot;: &amp;quot;/path/to/WPS_GEOG/fuel_cat_fire/lf_data.tif&amp;quot;,&lt;br /&gt;
  &amp;quot;ZSF&amp;quot;: &amp;quot;/path/to/WPS_GEOG/topo_fire/ned_data.tif&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
For running fuel moisture model, terrain static data is needed. So, inside wrfxpy do&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://math.ucdenver.edu/~farguella/tmp/static.tbz&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar xvfj static.tbz&lt;br /&gt;
this will untar a static folder with the static terrain on it.&lt;br /&gt;
&lt;br /&gt;
===wrxpy: Testing===&lt;br /&gt;
====Simple forecast====&lt;br /&gt;
At this point, one should be able to run wrfxpy with a simple example:&lt;br /&gt;
 conda activate wrfxpy&lt;br /&gt;
 ./simple_forecast.sh&lt;br /&gt;
Press enter at all the steps to set everything to the default values until the queuing system, then we select the cluster we configure (speedy in the example).&lt;br /&gt;
&lt;br /&gt;
This will generate a job under jobs/experiment.json (or the name of the experiment that we chose).&lt;br /&gt;
&lt;br /&gt;
Then, we can run our first forecast by&lt;br /&gt;
 ./forecast.sh jobs/experiment.json &amp;gt;&amp;amp; logs/experiment.log &amp;amp;&lt;br /&gt;
&lt;br /&gt;
Show generate the experiment in the path specified in the etc/conf.json file and under a folder using the experiment name. The file logs/experiment.log should show the whole process step by step without any error.&lt;br /&gt;
&lt;br /&gt;
====Fuel moisture model====&lt;br /&gt;
If tokens.json is set, &amp;quot;mesowest&amp;quot; token is provided, and static data is gotten, you can run&lt;br /&gt;
 ./rtma_cycler.sh anything &amp;gt;&amp;amp; logs/rtma_cycler.log &amp;amp;&lt;br /&gt;
which will download all the necessary weather stations and estimate the fuel moisture model in the whole continental US.&lt;br /&gt;
&lt;br /&gt;
===wrfxpy: Possible errors===&lt;br /&gt;
====real.exe fails====&lt;br /&gt;
&lt;br /&gt;
Depending on the cluster, wrfxpy could fail when tries to execute ./real.exe. This happens on systems that do not allow executing MPI binary from the command line. We do not run real.exe by mpirun because mpirun on head node may not be allowed. Then, one needs to provide an installation of WRF-SFIRE in serial mode in order to run real.exe in serial. In that case, we want to repeat the [[Setting_up_current_WRFx_system#Installation|previous steps]] but using the serial version of WRF-SFIRE&lt;br /&gt;
 cd ..&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrf-fire wrf-fire-serial&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 cd wrf-fire-serial/wrfv2_fire&lt;br /&gt;
 ./configure&lt;br /&gt;
Options 13 (INTEL ifort/icc serial) and 0 (no nesting)&lt;br /&gt;
&lt;br /&gt;
 ./compile em_real &amp;gt;&amp;amp; compile_em_real.log &amp;amp; &lt;br /&gt;
 grep Error compile_em_real.log&lt;br /&gt;
Again, if any of the previous step fails: &lt;br /&gt;
 ./clean -a&lt;br /&gt;
 ./configure&lt;br /&gt;
Add -nostdinc in CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.&lt;br /&gt;
&lt;br /&gt;
Note: This time, we only need to compile em_real because we only need real.exe. However, if you want to test serial vs parallel for any reason, you can proceed to compile em_fire the same way.&lt;br /&gt;
&lt;br /&gt;
Then, we need to add this path in etc/conf.json file in wrfxpy, so&lt;br /&gt;
 cd ../wrfxpy&lt;br /&gt;
and add to etc/conf.json file key&lt;br /&gt;
 &amp;quot;wrf_serial_install_path&amp;quot;: &amp;quot;/path/to/WRF/serial&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This should solve the problem, if not check log files from previous compilations.&lt;br /&gt;
&lt;br /&gt;
==WRFx: wrfxweb==&lt;br /&gt;
&lt;br /&gt;
Web-based visualization system for imagery generated by wrfxpy.&lt;br /&gt;
&lt;br /&gt;
===wrfxweb: Account creation===&lt;br /&gt;
&lt;br /&gt;
Create ~/.ssh directory (if you have not one)&lt;br /&gt;
 mkdir ~/.ssh&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
&lt;br /&gt;
Create an id_rsa key (if you have not one) doing&lt;br /&gt;
 ssh-keygen&lt;br /&gt;
and following all the steps (you can select defaults, so always press enter). &lt;br /&gt;
&lt;br /&gt;
Send an email to Jan Mandel (jan.mandel@gmail.com) asking for the creation of an account in demo server providing: &lt;br /&gt;
* Purpose of your request (including information about you)&lt;br /&gt;
* User id you would like (user_id)&lt;br /&gt;
* Short user id you would like (short_user_id)&lt;br /&gt;
* Public key (~/.ssh/id_rsa.pub file previously created)&lt;br /&gt;
&lt;br /&gt;
After that, you will receive an answer from Jan and you will be able to ssh the demo server without any password (only the passcode from the id_rsa key if you set one).&lt;br /&gt;
&lt;br /&gt;
===wrfxweb: Installation===&lt;br /&gt;
&lt;br /&gt;
====Clone github repository====&lt;br /&gt;
Clone wrfxweb repository in the demo server&lt;br /&gt;
 ssh user_id@demo.openwfm.org&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrfxweb.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuration====&lt;br /&gt;
&lt;br /&gt;
Change directory and copy template to create new etc/conf.json&lt;br /&gt;
 cd wrfxweb&lt;br /&gt;
 cp etc/conf.json.template etc/conf.json&lt;br /&gt;
&lt;br /&gt;
Configure the following key in etc/conf.json:&lt;br /&gt;
 &amp;quot;url_root&amp;quot;: &amp;quot;&amp;lt;nowiki&amp;gt;http://demo.openwfm.org/short_user_id&amp;lt;/nowiki&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The next steps are going to be set in a desired installation of wrfxpy (generated in the previous section). &lt;br /&gt;
&lt;br /&gt;
Configure the following keys in etc/conf.json in any wrfxpy installation&lt;br /&gt;
 &amp;quot;shuttle_ssh_key&amp;quot;: &amp;quot;/path/to/id_rsa&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_remote_user&amp;quot;: &amp;quot;user_id&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_remote_host&amp;quot;: &amp;quot;demo.openwfm.org&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_remote_root&amp;quot;: &amp;quot;/path/to/remote/storage/directory&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_lock_path&amp;quot;: &amp;quot;/tmp/short_user_id&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;shuttle_remote_root&amp;quot; key is usually defined as &amp;quot;/home/user_id/wrfxweb/fdds/simulations&amp;quot;. So, everything should be ready to send post-processing simulations into the visualization server.&lt;br /&gt;
&lt;br /&gt;
===wrfxweb: Testing===&lt;br /&gt;
====Simple forecast====&lt;br /&gt;
Finally, one can repeat the previous [[Setting_up_current_WRFx_system#Simple_forecast|simple forecast test]] but when simple forecast asks&lt;br /&gt;
 Send variables to visualization server? [default=no]&lt;br /&gt;
you will answer yes.&lt;br /&gt;
&lt;br /&gt;
Then, you should see your simulation post-processed time steps appearing in real-time on http://demo.openwfm.org under your short_user_id.&lt;br /&gt;
&lt;br /&gt;
====Fuel moisture model====&lt;br /&gt;
The [[Setting_up_current_WRFx_system#Fuel_moisture_model|fuel moisture model test]] can be also run and a special visualization will appear on http://demo.openwfm.org under your short_user_id.&lt;br /&gt;
&lt;br /&gt;
==WRFx: wrfxctrl==&lt;br /&gt;
&lt;br /&gt;
A website that enables users to submit jobs to the wrfxpy framework for fire simulation.&lt;br /&gt;
&lt;br /&gt;
===wrfxctrl: Installation===&lt;br /&gt;
&lt;br /&gt;
====Clone github repository====&lt;br /&gt;
Clone wrfxctrl repository in your cluster&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrfxctrl.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuration====&lt;br /&gt;
&lt;br /&gt;
Change directory and copy template to create new etc/conf.json&lt;br /&gt;
 cd wrfxctrl&lt;br /&gt;
 cp etc/conf-template.json etc/conf.json&lt;br /&gt;
&lt;br /&gt;
Configure following keys in etc/conf.json&lt;br /&gt;
 &amp;quot;host&amp;quot; : &amp;quot;127.1.2.3&amp;quot;,&lt;br /&gt;
 &amp;quot;port&amp;quot; : &amp;quot;5050&amp;quot;,&lt;br /&gt;
 &amp;quot;root&amp;quot; : &amp;quot;/short_user_id/&amp;quot;,&lt;br /&gt;
 &amp;quot;wrfxweb_url&amp;quot; : &amp;quot;&amp;lt;nowiki&amp;gt;http://demo.openwfm.org/short_user_id/&amp;lt;/nowiki&amp;gt;&amp;quot;,&lt;br /&gt;
 &amp;quot;wrfxpy_path&amp;quot; : &amp;quot;/path/to/wrfxpy&amp;quot;,&lt;br /&gt;
 &amp;quot;jobs_path&amp;quot; : &amp;quot;/path/to/jobs&amp;quot;,&lt;br /&gt;
 &amp;quot;logs_path&amp;quot; : &amp;quot;/path/to/logs&amp;quot;,&lt;br /&gt;
 &amp;quot;sims_path&amp;quot; : &amp;quot;/path/to/sims&amp;quot;&lt;br /&gt;
Notes: &lt;br /&gt;
* Entries &amp;quot;host&amp;quot;, &amp;quot;port&amp;quot;, &amp;quot;root&amp;quot; are only examples but, for security reasons, you should choose different ones of your own and as random as possible. &lt;br /&gt;
* Entries &amp;quot;jobs_path&amp;quot;, &amp;quot;logs_path&amp;quot;, and &amp;quot;sims_path&amp;quot; are recommended to be removed. By default they are defined to be in wrfxctrl directories wrfxctrl/jobs, wrfxctrl/logs, and wrfxctrl/simulations.&lt;br /&gt;
&lt;br /&gt;
===wrfxctrl: Testing===&lt;br /&gt;
&lt;br /&gt;
====Running wrfxctrl====&lt;br /&gt;
&lt;br /&gt;
Activate conda environment and run wrfxctrl.py doing&lt;br /&gt;
&lt;br /&gt;
 conda activate wrfx&lt;br /&gt;
 python wrfxctrl.py &lt;br /&gt;
&lt;br /&gt;
This will show a message similar to &lt;br /&gt;
&lt;br /&gt;
 Welcome page is &amp;lt;nowiki&amp;gt;http://127.1.2.3:5050/short_user_id/start&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  * Serving Flask app &amp;quot;wrfxctrl&amp;quot; (lazy loading)&lt;br /&gt;
  * Environment: production&lt;br /&gt;
    WARNING: This is a development server. Do not use it in a production deployment.&lt;br /&gt;
    Use a production WSGI server instead.&lt;br /&gt;
  * Debug mode: off&lt;br /&gt;
 INFO:werkzeug: * Running on &amp;lt;nowiki&amp;gt;http://127.1.2.3:5050/&amp;lt;/nowiki&amp;gt; (Press CTRL+C to quit)&lt;br /&gt;
&lt;br /&gt;
====Starting page====&lt;br /&gt;
&lt;br /&gt;
Now you can go to your favorite internet browser and navigate to &amp;lt;nowiki&amp;gt;http://127.1.2.3:5050/short_user_id/start&amp;lt;/nowiki&amp;gt; webpage. This will show you a screen similar than that&lt;br /&gt;
&lt;br /&gt;
[[File:Start.png|400px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This starting page shows general information of the cluster and provides an option of starting a new fire using &#039;&#039;Start a new fire&#039;&#039; button and browsing the existent jobs using the &#039;&#039;Show current jobs&#039;&#039; button.&lt;br /&gt;
&lt;br /&gt;
====Submission page====&lt;br /&gt;
&lt;br /&gt;
From the previous page, if you select &#039;&#039;Start a new fire&#039;&#039;, you will be able to access the submission page. In this page, you can specify 1) a short description of the simulation, 2) the ignition location clicking in an interactive map or specifying the degree lat-lon coordinates, 3) the ignition time and the forecast length, 4) the simulation profile which defines the number of domains with their resolutions and sizes and the atmospheric boundary conditions data. Finally, once you have all the simulation options defined, you can scroll down to the end (next figure) and select the &#039;&#039;Ignite&#039;&#039; button. This will automatically show the monitor page where you will be able to track the progress of the simulation. See the image below to see an example of a simulation submission.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Submit1.png|400px|center]][[File:Submit2.png|400px|center]][[File:Submit3.png|402px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Monitoring page====&lt;br /&gt;
&lt;br /&gt;
At the beginning of the monitoring page, you will see a list of important information about the simulation (see figure below). After the information, there is a list of steps with their current status. The different possible statuses are: &lt;br /&gt;
&lt;br /&gt;
* Waiting (grey): Represent that the process has not started and needs to wait for the other process. All the processes are initialized with this status.&lt;br /&gt;
* Running (yellow): Represent that the process is still running so in progress. All processes switch their status from Waiting to Running when they start running.&lt;br /&gt;
* Success (green): Represent that the process finished well. All processes switch their status from Running to Success when they finish running successfully.&lt;br /&gt;
* Available (green): Represent that some part is done and some other is still in progress. This status is only used by the Output process because the visualization is available once the process starts running.&lt;br /&gt;
* Failed (red): Represent that the process finished with a failure. All processes switch their status from Running to Failed when they finish running with a failure.&lt;br /&gt;
&lt;br /&gt;
In the monitor page, the log file can be also retrieved clicking the &#039;&#039;Retrieve log&#039;&#039; button at the end of the page, which provides a scroll down window with the log file information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor1.png|502px|center]][[File:Monitor2.png|500px|center]][[File:Monitor3.png|500px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, once the Output process becomes Available, in the &#039;&#039;Visualization&#039;&#039; element of the information section will appear a link to the simulation in the web server generated using wrfxweb. In this page, one can interactively plot the results in real-time while the simulation is still running&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Visualization.png|500px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Overview page====&lt;br /&gt;
&lt;br /&gt;
From most of the previous pages, you can navigate to the current jobs which shows a list of jobs that are running and it allows the user to cancel or delete any simulation that has run or is running.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Overview.png|500px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=Running_WRF-SFIRE_with_real_data_in_the_WRFx_system&amp;diff=4318</id>
		<title>Running WRF-SFIRE with real data in the WRFx system</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=Running_WRF-SFIRE_with_real_data_in_the_WRFx_system&amp;diff=4318"/>
		<updated>2020-08-24T15:03:28Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Get static data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Instructions to set up the whole WRFx system right now using the last version of all the components with a couple of working examples. WRFx consists of a Fortran coupled atmosphere-fire model [https://github.com/openwfm/wrf-fire WRF-SFIRE], a python automatic HPC system [https://github.com/openwfm/wrfxpy wrfxpy], a visualization web interface [https://github.com/openwfm/wrfxweb wrfxweb], and a simulation web interface [https://github.com/openwfm/wrfxctrl wrfxctrl].&lt;br /&gt;
&lt;br /&gt;
=WRF-SFIRE model=&lt;br /&gt;
&lt;br /&gt;
A coupled weather-fire forecasting model built on top of Weather Research and Forecasting (WRF).&lt;br /&gt;
&lt;br /&gt;
==WRF-SFIRE: Requirements and environment==&lt;br /&gt;
&lt;br /&gt;
===Install required libraries===&lt;br /&gt;
* General requirements:&lt;br /&gt;
** C-shell&lt;br /&gt;
** Traditional UNIX utilities: zip, tar, make, etc.&lt;br /&gt;
* WRF-SFIRE requirements:&lt;br /&gt;
** Fortran and C compilers (Intel recomended)&lt;br /&gt;
** MPI (compiled using the same compiler, usually comes with the system)&lt;br /&gt;
** NetCDF libraries (compiled using the same compiler)&lt;br /&gt;
* WPS requirements:&lt;br /&gt;
** zlib compression library (zlib)&lt;br /&gt;
** PNG reference library (libpng)&lt;br /&gt;
** JasPer compression library&lt;br /&gt;
** libtiff and geotiff libraries	&lt;br /&gt;
&lt;br /&gt;
See https://www2.mmm.ucar.edu/wrf/users/prepare_for_compilation.html for the required versions of the libraries.&lt;br /&gt;
&lt;br /&gt;
===Set environment===&lt;br /&gt;
Set specific libraries installed &lt;br /&gt;
 setenv NETCDF /path/to/netcdf&lt;br /&gt;
 setenv JASPERLIB /path/to/jasper/lib&lt;br /&gt;
 setenv JASPERINC /path/to/jasper/include&lt;br /&gt;
 setenv LIBTIFF /path/to/libtiff&lt;br /&gt;
 setenv GEOTIFF /path/to/libtiff&lt;br /&gt;
 setenv WRFIO_NCD_LARGE_FILE_SUPPORT 1&lt;br /&gt;
Should your executables fail on unresolved libraries, also add all the library folders into your LD_LIBRARY_PATH:&lt;br /&gt;
 setenv LD_LIBRARY_PATH /path/to/netcdf/lib:/path/to/jasper/lib:/path/to/libtiff/lib:/path/to/geotiff/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
==WRF-SFIRE: Installation==&lt;br /&gt;
===Clone github repositories===&lt;br /&gt;
Clone WRF-SFIRE and WPS github repositories&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/WRF-SFIRE&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/WPS&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configure WRF-SFIRE===&lt;br /&gt;
 cd WRF-SFIRE&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
Options 15 (INTEL ifort/icc dmpar) and 1 (simple nesting) if available&lt;br /&gt;
&lt;br /&gt;
===Compile WRF-SFIRE===&lt;br /&gt;
Compile em_real&lt;br /&gt;
 ./compile em_real &amp;gt;&amp;amp; compile_em_real.log &amp;amp; &lt;br /&gt;
 grep Error compile_em_real.log&lt;br /&gt;
&lt;br /&gt;
If any compilation error, compile em_fire&lt;br /&gt;
 ./compile em_fire &amp;gt;&amp;amp; compile_em_fire.log &amp;amp; &lt;br /&gt;
 grep Error compile_em_fire.log&lt;br /&gt;
&lt;br /&gt;
If any of the previous step fails: &lt;br /&gt;
 ./clean -a&lt;br /&gt;
 ./configure&lt;br /&gt;
Add to configure.wrf -nostdinc at the end of the CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.&lt;br /&gt;
&lt;br /&gt;
===Configure WPS===&lt;br /&gt;
 cd ../WPS&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
Option 17 (Intel compiler (serial)) if available&lt;br /&gt;
&lt;br /&gt;
===Compile WPS===&lt;br /&gt;
 ./compile &amp;gt;&amp;amp; compile_wps.log &amp;amp;&lt;br /&gt;
 grep Error compile_wps.log&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
 ls -l *.exe&lt;br /&gt;
&lt;br /&gt;
should contain geogrid.exe, metgrid.exe, and ungrib.exe. If not&lt;br /&gt;
 ./clean -a&lt;br /&gt;
 ./configure&lt;br /&gt;
Add to configure.wps -nostdinc at the end of CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.&lt;br /&gt;
&lt;br /&gt;
===Get static data===&lt;br /&gt;
Get tar file with the static data and untar it. Keep in mind that this is the file that contains landuse, elevation, soiltype data, etc for WRF (geogrid.exe to be psecific).&lt;br /&gt;
  cd ..&lt;br /&gt;
  wget &amp;lt;nowiki&amp;gt;http://math.ucdenver.edu/~farguella/tmp/WPS_GEOG.tbz&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  tar xvfj WPS_GEOG.tbz&lt;br /&gt;
&lt;br /&gt;
=WRFx system=&lt;br /&gt;
&lt;br /&gt;
==WRFx: Requirements and environment==&lt;br /&gt;
&lt;br /&gt;
===Install Anaconda distribution===&lt;br /&gt;
Download and install the Python 3 [https://repo.continuum.io/archive Anaconda Python] distribution for your platform. We recommend an installation into the users&#039; home directory.&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;https://repo.continuum.io/archive/Anaconda3-2020.02-Linux-x86_64.sh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 chmod +x Anaconda3-2020.02-Linux-x86_64.sh&lt;br /&gt;
 ./Anaconda3-2020.02-Linux-x86_64.sh&lt;br /&gt;
&lt;br /&gt;
===Install necessary packages===&lt;br /&gt;
We recommend the creation of an environment. Install pre-requisites:&lt;br /&gt;
 conda update -n base -c defaults conda&lt;br /&gt;
 conda create -n wrfx python=3 gdal netcdf4 pyproj paramiko dill h5py psutil proj4 pytz scipy matplotlib flask&lt;br /&gt;
 conda activate wrfx&lt;br /&gt;
 conda install -c conda-forge simplekml pygrib f90nml pyhdf xmltodict basemap rasterio&lt;br /&gt;
 pip install MesoPy python-cmr&lt;br /&gt;
&lt;br /&gt;
Note that conda and pip are package managers available in the Anaconda Python distribution.&lt;br /&gt;
&lt;br /&gt;
===Set environment===&lt;br /&gt;
If you created the wrfx environment as shown above, check that PROJ_LIB path is pointing to&lt;br /&gt;
 $HOME/anaconda3/envs/wrfx/share/proj&lt;br /&gt;
If not, you can try setting it to&lt;br /&gt;
 setenv PROJ_LIB &amp;quot;$HOME/anaconda3/share/proj&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==WRFx: wrfxpy==&lt;br /&gt;
&lt;br /&gt;
WRF-SFIRE forecasting and data assimilation in python using an HPC environment.&lt;br /&gt;
&lt;br /&gt;
===wrfxpy: Installation===&lt;br /&gt;
====Clone github repository====&lt;br /&gt;
Clone wrfxpy repository&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrfxpy&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
 git checkout angel&lt;br /&gt;
&lt;br /&gt;
====General configuration====&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
 cd wrfxpy&lt;br /&gt;
 cp etc/conf.json.initial etc/conf.json&lt;br /&gt;
&lt;br /&gt;
Configure the queuing system, system directories, WPS/WRF-SFIRE locations, and workspace locations by editing the following keys in etc/conf.json:&lt;br /&gt;
 &amp;quot;qsys&amp;quot;: &amp;quot;key from clusters.json&amp;quot;,&lt;br /&gt;
 &amp;quot;wps_install_path&amp;quot;: &amp;quot;/path/to/WPS&amp;quot;,&lt;br /&gt;
 &amp;quot;wrf_install_path&amp;quot;: &amp;quot;/path/to/WRF&amp;quot;,&lt;br /&gt;
 &amp;quot;sys_install_path&amp;quot;: &amp;quot;/path/to/wrfxpy&amp;quot;&lt;br /&gt;
 &amp;quot;wps_geog_path&amp;quot; : &amp;quot;/path/to/WPS_GEOG&amp;quot;,&lt;br /&gt;
 &amp;quot;wget&amp;quot; : /path/to/wget&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that all these paths are created from previous steps of this wiki except the wget path, which needs to be specified to use a preferred version. To find the default wget,&lt;br /&gt;
 which wget&lt;br /&gt;
&lt;br /&gt;
====Cluster configuration====&lt;br /&gt;
&lt;br /&gt;
Next, wrfxpy needs to know how jobs are submitted on your cluster. Create an entry for your cluster in etc/clusters.json, here we use speedy as an example:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;speedy&amp;quot; : {&lt;br /&gt;
     &amp;quot;qsub_cmd&amp;quot; : &amp;quot;qsub&amp;quot;,&lt;br /&gt;
     &amp;quot;qdel_cmd&amp;quot; : &amp;quot;qdel&amp;quot;,&lt;br /&gt;
     &amp;quot;qstat_cmd&amp;quot; : &amp;quot;qstat&amp;quot;,&lt;br /&gt;
     &amp;quot;qstat_arg&amp;quot; : &amp;quot;&amp;quot;,&lt;br /&gt;
     &amp;quot;qsub_delimiter&amp;quot; : &amp;quot;.&amp;quot;,&lt;br /&gt;
     &amp;quot;qsub_job_num_index&amp;quot; : 0,&lt;br /&gt;
     &amp;quot;qsub_script&amp;quot; : &amp;quot;etc/qsub/speedy.sub&amp;quot;&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
And then the file etc/qsub/speedy.sub should contain a submission script template, that makes use of the following variables supplied by wrfxpy based on job configuration:&lt;br /&gt;
&lt;br /&gt;
 %(nodes)d the number of nodes requested&lt;br /&gt;
 %(ppn)d the number of processors per node requested&lt;br /&gt;
 %(wall_time_hrs)d the number of hours requested&lt;br /&gt;
 %(exec_path)d the path to the wrf.exe that should be executed&lt;br /&gt;
 %(cwd)d the job working directory&lt;br /&gt;
 %(task_id)d a task id that can be used to identify the job&lt;br /&gt;
 %(np)d the total number of processes requested, equals nodes x ppn&lt;br /&gt;
&lt;br /&gt;
Note that not all keys need to be used, as shown in the speedy example:&lt;br /&gt;
&lt;br /&gt;
 #$ -S /bin/bash&lt;br /&gt;
 #$ -N %(task_id)s&lt;br /&gt;
 #$ -wd %(cwd)s&lt;br /&gt;
 #$ -l h_rt=%(wall_time_hrs)d:00:00&lt;br /&gt;
 #$ -pe mpich %(np)d&lt;br /&gt;
 mpirun_rsh -np %(np)d -hostfile $TMPDIR/machines %(exec_path)s&lt;br /&gt;
&lt;br /&gt;
The script template should be derived from a working submission script.&lt;br /&gt;
&lt;br /&gt;
Note: wrfxpy has already configuration for colibri, gross, kingspeak, and cheyenne.&lt;br /&gt;
&lt;br /&gt;
====Tokens configuration====&lt;br /&gt;
&lt;br /&gt;
When running wrfxpy, sometimes the data needs to be accessed and downloaded using a specific token created for the user. For instance, in the case of running the Fuel Moisture Model, one needs a token from a valid [https://simplekml.readthedocs.org/en/latest MesoWest] user to download data automatically. Also, when downloading satellite data, one needs a token from an [https://earthdata.nasa.gov/ Earthdata] user. All of these can be specified with the creation of the file etc/tokens.json from the template etc/tokens.json.initial containing:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;mesowest&amp;quot; : &amp;quot;token-from-mesowest&amp;quot;,&lt;br /&gt;
   &amp;quot;appkey&amp;quot; : &amp;quot;token-from-earthdata&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
So, if any of the previous capabilities are required, create a token from the specific page, do&lt;br /&gt;
&lt;br /&gt;
 cp etc/tokens.json.initial etc/tokens.json&lt;br /&gt;
&lt;br /&gt;
and edit the file to include your previously created token.&lt;br /&gt;
&lt;br /&gt;
For running fuel moisture model, a new MesoWest user can be created in [https://mesowest.utah.edu/cgi-bin/droman/my_join.cgi?came_from=http://mesowest.utah.edu MesoWest New User]. Then, the token can be acquired and replaced in the etc/tokens.json file.&lt;br /&gt;
&lt;br /&gt;
For acquiring satellite data, a new Earthdata user can be created in [https://urs.earthdata.nasa.gov/users/new Earthdata New User]. Then, the token can be acquired and replaced in the etc/tokens.json file. There are some data centers that need to be accessed using the $HOME/.netrc file. Therefore, creating the $HOME/.netrc file is recommended as follows&lt;br /&gt;
&lt;br /&gt;
 machine urs.earthdata.nasa.gov&lt;br /&gt;
 login your_earthdata_id&lt;br /&gt;
 password your_earthdata_password&lt;br /&gt;
&lt;br /&gt;
====Get static data====&lt;br /&gt;
&lt;br /&gt;
When running WRF-SFIRE simulations, one needs to use high-resolution elevation and fuel category data. If you have a GeoTIFF file for elevation and fuel, you can specify the location of these files using etc/vtables/geo_vars.json. So, you can do&lt;br /&gt;
&lt;br /&gt;
 cp etc/vtables/geo_vars.json.initial etc/vtables/geo_vars.json&lt;br /&gt;
&lt;br /&gt;
and add the absolute path to your GeoTIFF files. The routine is going to automatically process these files and convert them into geogrid files to fit WPS. If you need to map the categories from the GeoTIFF files to the 13 Rothermel categories, you can modify the dictionary _var_wisdom on file src/geo/var_wisdom.py to specify the mapping. By default, the categories form the LANDFIRE dataset are going to be mapped according to 13 Rothermel categories. You can also specify what categories you want to interpolate using nearest neighbors. Therefore, the ones that you cannot map to 13 Rothermel categories. Finally, you can specify what categories should be no burnable using category 14.&lt;br /&gt;
&lt;br /&gt;
To get GeoTIFF files from CONUS, you can use the LANDFIRE dataset following the steps on [[How_to_run_WRF-SFIRE_with_real_data#Obtaining_data_for_geogrid]]. Or you can just use the GeoTIFF files included in the static dataset WPS_GEOG/fuel_cat_fire and WPS_GEOG/topo_fire specifying in etc/vtables/geo_vars.json&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;NFUEL_CAT&amp;quot;: &amp;quot;/path/to/WPS_GEOG/fuel_cat_fire/lf_data.tif&amp;quot;,&lt;br /&gt;
  &amp;quot;ZSF&amp;quot;: &amp;quot;/path/to/WPS_GEOG/topo_fire/ned_data.tif&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
For running fuel moisture model, terrain static data is needed. So, inside wrfxpy do&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://math.ucdenver.edu/~farguella/tmp/static.tbz&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 tar xvfj static.tbz&lt;br /&gt;
this will untar a static folder with the static terrain on it.&lt;br /&gt;
&lt;br /&gt;
===wrxpy: Testing===&lt;br /&gt;
====Simple forecast====&lt;br /&gt;
At this point, one should be able to run wrfxpy with a simple example:&lt;br /&gt;
 conda activate wrfxpy&lt;br /&gt;
 ./simple_forecast.sh&lt;br /&gt;
Press enter at all the steps to set everything to the default values until the queuing system, then we select the cluster we configure (speedy in the example).&lt;br /&gt;
&lt;br /&gt;
This will generate a job under jobs/experiment.json (or the name of the experiment that we chose).&lt;br /&gt;
&lt;br /&gt;
Then, we can run our first forecast by&lt;br /&gt;
 ./forecast.sh jobs/experiment.json &amp;gt;&amp;amp; logs/experiment.log &amp;amp;&lt;br /&gt;
&lt;br /&gt;
Show generate the experiment in the path specified in the etc/conf.json file and under a folder using the experiment name. The file logs/experiment.log should show the whole process step by step without any error.&lt;br /&gt;
&lt;br /&gt;
====Fuel moisture model====&lt;br /&gt;
If tokens.json is set, &amp;quot;mesowest&amp;quot; token is provided, and static data is gotten, you can run&lt;br /&gt;
 ./rtma_cycler.sh anything &amp;gt;&amp;amp; logs/rtma_cycler.log &amp;amp;&lt;br /&gt;
which will download all the necessary weather stations and estimate the fuel moisture model in the whole continental US.&lt;br /&gt;
&lt;br /&gt;
===wrfxpy: Possible errors===&lt;br /&gt;
====real.exe fails====&lt;br /&gt;
&lt;br /&gt;
Depending on the cluster, wrfxpy could fail when tries to execute ./real.exe. This happens on systems that do not allow executing MPI binary from the command line. We do not run real.exe by mpirun because mpirun on head node may not be allowed. Then, one needs to provide an installation of WRF-SFIRE in serial mode in order to run real.exe in serial. In that case, we want to repeat the [[Setting_up_current_WRFx_system#Installation|previous steps]] but using the serial version of WRF-SFIRE&lt;br /&gt;
 cd ..&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrf-fire wrf-fire-serial&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 cd wrf-fire-serial/wrfv2_fire&lt;br /&gt;
 ./configure&lt;br /&gt;
Options 13 (INTEL ifort/icc serial) and 0 (no nesting)&lt;br /&gt;
&lt;br /&gt;
 ./compile em_real &amp;gt;&amp;amp; compile_em_real.log &amp;amp; &lt;br /&gt;
 grep Error compile_em_real.log&lt;br /&gt;
Again, if any of the previous step fails: &lt;br /&gt;
 ./clean -a&lt;br /&gt;
 ./configure&lt;br /&gt;
Add -nostdinc in CPP flag, and repeat compilation. If this does not solve compilation, look for issues in your environment.&lt;br /&gt;
&lt;br /&gt;
Note: This time, we only need to compile em_real because we only need real.exe. However, if you want to test serial vs parallel for any reason, you can proceed to compile em_fire the same way.&lt;br /&gt;
&lt;br /&gt;
Then, we need to add this path in etc/conf.json file in wrfxpy, so&lt;br /&gt;
 cd ../wrfxpy&lt;br /&gt;
and add to etc/conf.json file key&lt;br /&gt;
 &amp;quot;wrf_serial_install_path&amp;quot;: &amp;quot;/path/to/WRF/serial&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This should solve the problem, if not check log files from previous compilations.&lt;br /&gt;
&lt;br /&gt;
==WRFx: wrfxweb==&lt;br /&gt;
&lt;br /&gt;
Web-based visualization system for imagery generated by wrfxpy.&lt;br /&gt;
&lt;br /&gt;
===wrfxweb: Account creation===&lt;br /&gt;
&lt;br /&gt;
Create ~/.ssh directory (if you have not one)&lt;br /&gt;
 mkdir ~/.ssh&lt;br /&gt;
 cd ~/.ssh&lt;br /&gt;
&lt;br /&gt;
Create an id_rsa key (if you have not one) doing&lt;br /&gt;
 ssh-keygen&lt;br /&gt;
and following all the steps (you can select defaults, so always press enter). &lt;br /&gt;
&lt;br /&gt;
Send an email to Jan Mandel (jan.mandel@gmail.com) asking for the creation of an account in demo server providing: &lt;br /&gt;
* Purpose of your request (including information about you)&lt;br /&gt;
* User id you would like (user_id)&lt;br /&gt;
* Short user id you would like (short_user_id)&lt;br /&gt;
* Public key (~/.ssh/id_rsa.pub file previously created)&lt;br /&gt;
&lt;br /&gt;
After that, you will receive an answer from Jan and you will be able to ssh the demo server without any password (only the passcode from the id_rsa key if you set one).&lt;br /&gt;
&lt;br /&gt;
===wrfxweb: Installation===&lt;br /&gt;
&lt;br /&gt;
====Clone github repository====&lt;br /&gt;
Clone wrfxweb repository in the demo server&lt;br /&gt;
 ssh user_id@demo.openwfm.org&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrfxweb.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuration====&lt;br /&gt;
&lt;br /&gt;
Change directory and copy template to create new etc/conf.json&lt;br /&gt;
 cd wrfxweb&lt;br /&gt;
 cp etc/conf.json.template etc/conf.json&lt;br /&gt;
&lt;br /&gt;
Configure the following key in etc/conf.json:&lt;br /&gt;
 &amp;quot;url_root&amp;quot;: &amp;quot;&amp;lt;nowiki&amp;gt;http://demo.openwfm.org/short_user_id&amp;lt;/nowiki&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The next steps are going to be set in a desired installation of wrfxpy (generated in the previous section). &lt;br /&gt;
&lt;br /&gt;
Configure the following keys in etc/conf.json in any wrfxpy installation&lt;br /&gt;
 &amp;quot;shuttle_ssh_key&amp;quot;: &amp;quot;/path/to/id_rsa&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_remote_user&amp;quot;: &amp;quot;user_id&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_remote_host&amp;quot;: &amp;quot;demo.openwfm.org&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_remote_root&amp;quot;: &amp;quot;/path/to/remote/storage/directory&amp;quot;&lt;br /&gt;
 &amp;quot;shuttle_lock_path&amp;quot;: &amp;quot;/tmp/short_user_id&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;shuttle_remote_root&amp;quot; key is usually defined as &amp;quot;/home/user_id/wrfxweb/fdds/simulations&amp;quot;. So, everything should be ready to send post-processing simulations into the visualization server.&lt;br /&gt;
&lt;br /&gt;
===wrfxweb: Testing===&lt;br /&gt;
====Simple forecast====&lt;br /&gt;
Finally, one can repeat the previous [[Setting_up_current_WRFx_system#Simple_forecast|simple forecast test]] but when simple forecast asks&lt;br /&gt;
 Send variables to visualization server? [default=no]&lt;br /&gt;
you will answer yes.&lt;br /&gt;
&lt;br /&gt;
Then, you should see your simulation post-processed time steps appearing in real-time on http://demo.openwfm.org under your short_user_id.&lt;br /&gt;
&lt;br /&gt;
====Fuel moisture model====&lt;br /&gt;
The [[Setting_up_current_WRFx_system#Fuel_moisture_model|fuel moisture model test]] can be also run and a special visualization will appear on http://demo.openwfm.org under your short_user_id.&lt;br /&gt;
&lt;br /&gt;
==WRFx: wrfxctrl==&lt;br /&gt;
&lt;br /&gt;
A website that enables users to submit jobs to the wrfxpy framework for fire simulation.&lt;br /&gt;
&lt;br /&gt;
===wrfxctrl: Installation===&lt;br /&gt;
&lt;br /&gt;
====Clone github repository====&lt;br /&gt;
Clone wrfxctrl repository in your cluster&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/openwfm/wrfxctrl.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuration====&lt;br /&gt;
&lt;br /&gt;
Change directory and copy template to create new etc/conf.json&lt;br /&gt;
 cd wrfxctrl&lt;br /&gt;
 cp etc/conf-template.json etc/conf.json&lt;br /&gt;
&lt;br /&gt;
Configure following keys in etc/conf.json&lt;br /&gt;
 &amp;quot;host&amp;quot; : &amp;quot;127.1.2.3&amp;quot;,&lt;br /&gt;
 &amp;quot;port&amp;quot; : &amp;quot;5050&amp;quot;,&lt;br /&gt;
 &amp;quot;root&amp;quot; : &amp;quot;/short_user_id/&amp;quot;,&lt;br /&gt;
 &amp;quot;wrfxweb_url&amp;quot; : &amp;quot;&amp;lt;nowiki&amp;gt;http://demo.openwfm.org/short_user_id/&amp;lt;/nowiki&amp;gt;&amp;quot;,&lt;br /&gt;
 &amp;quot;wrfxpy_path&amp;quot; : &amp;quot;/path/to/wrfxpy&amp;quot;,&lt;br /&gt;
 &amp;quot;jobs_path&amp;quot; : &amp;quot;/path/to/jobs&amp;quot;,&lt;br /&gt;
 &amp;quot;logs_path&amp;quot; : &amp;quot;/path/to/logs&amp;quot;,&lt;br /&gt;
 &amp;quot;sims_path&amp;quot; : &amp;quot;/path/to/sims&amp;quot;&lt;br /&gt;
Notes: &lt;br /&gt;
* Entries &amp;quot;host&amp;quot;, &amp;quot;port&amp;quot;, &amp;quot;root&amp;quot; are only examples but, for security reasons, you should choose different ones of your own and as random as possible. &lt;br /&gt;
* Entries &amp;quot;jobs_path&amp;quot;, &amp;quot;logs_path&amp;quot;, and &amp;quot;sims_path&amp;quot; are recommended to be removed. By default they are defined to be in wrfxctrl directories wrfxctrl/jobs, wrfxctrl/logs, and wrfxctrl/simulations.&lt;br /&gt;
&lt;br /&gt;
===wrfxctrl: Testing===&lt;br /&gt;
&lt;br /&gt;
====Running wrfxctrl====&lt;br /&gt;
&lt;br /&gt;
Activate conda environment and run wrfxctrl.py doing&lt;br /&gt;
&lt;br /&gt;
 conda activate wrfx&lt;br /&gt;
 python wrfxctrl.py &lt;br /&gt;
&lt;br /&gt;
This will show a message similar to &lt;br /&gt;
&lt;br /&gt;
 Welcome page is &amp;lt;nowiki&amp;gt;http://127.1.2.3:5050/short_user_id/start&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  * Serving Flask app &amp;quot;wrfxctrl&amp;quot; (lazy loading)&lt;br /&gt;
  * Environment: production&lt;br /&gt;
    WARNING: This is a development server. Do not use it in a production deployment.&lt;br /&gt;
    Use a production WSGI server instead.&lt;br /&gt;
  * Debug mode: off&lt;br /&gt;
 INFO:werkzeug: * Running on &amp;lt;nowiki&amp;gt;http://127.1.2.3:5050/&amp;lt;/nowiki&amp;gt; (Press CTRL+C to quit)&lt;br /&gt;
&lt;br /&gt;
====Starting page====&lt;br /&gt;
&lt;br /&gt;
Now you can go to your favorite internet browser and navigate to &amp;lt;nowiki&amp;gt;http://127.1.2.3:5050/short_user_id/start&amp;lt;/nowiki&amp;gt; webpage. This will show you a screen similar than that&lt;br /&gt;
&lt;br /&gt;
[[File:Start.png|400px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This starting page shows general information of the cluster and provides an option of starting a new fire using &#039;&#039;Start a new fire&#039;&#039; button and browsing the existent jobs using the &#039;&#039;Show current jobs&#039;&#039; button.&lt;br /&gt;
&lt;br /&gt;
====Submission page====&lt;br /&gt;
&lt;br /&gt;
From the previous page, if you select &#039;&#039;Start a new fire&#039;&#039;, you will be able to access the submission page. In this page, you can specify 1) a short description of the simulation, 2) the ignition location clicking in an interactive map or specifying the degree lat-lon coordinates, 3) the ignition time and the forecast length, 4) the simulation profile which defines the number of domains with their resolutions and sizes and the atmospheric boundary conditions data. Finally, once you have all the simulation options defined, you can scroll down to the end (next figure) and select the &#039;&#039;Ignite&#039;&#039; button. This will automatically show the monitor page where you will be able to track the progress of the simulation. See the image below to see an example of a simulation submission.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Submit1.png|400px|center]][[File:Submit2.png|400px|center]][[File:Submit3.png|402px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Monitoring page====&lt;br /&gt;
&lt;br /&gt;
At the beginning of the monitoring page, you will see a list of important information about the simulation (see figure below). After the information, there is a list of steps with their current status. The different possible statuses are: &lt;br /&gt;
&lt;br /&gt;
* Waiting (grey): Represent that the process has not started and needs to wait for the other process. All the processes are initialized with this status.&lt;br /&gt;
* Running (yellow): Represent that the process is still running so in progress. All processes switch their status from Waiting to Running when they start running.&lt;br /&gt;
* Success (green): Represent that the process finished well. All processes switch their status from Running to Success when they finish running successfully.&lt;br /&gt;
* Available (green): Represent that some part is done and some other is still in progress. This status is only used by the Output process because the visualization is available once the process starts running.&lt;br /&gt;
* Failed (red): Represent that the process finished with a failure. All processes switch their status from Running to Failed when they finish running with a failure.&lt;br /&gt;
&lt;br /&gt;
In the monitor page, the log file can be also retrieved clicking the &#039;&#039;Retrieve log&#039;&#039; button at the end of the page, which provides a scroll down window with the log file information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Monitor1.png|502px|center]][[File:Monitor2.png|500px|center]][[File:Monitor3.png|500px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, once the Output process becomes Available, in the &#039;&#039;Visualization&#039;&#039; element of the information section will appear a link to the simulation in the web server generated using wrfxweb. In this page, one can interactively plot the results in real-time while the simulation is still running&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Visualization.png|500px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Overview page====&lt;br /&gt;
&lt;br /&gt;
From most of the previous pages, you can navigate to the current jobs which shows a list of jobs that are running and it allows the user to cancel or delete any simulation that has run or is running.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Overview.png|500px|center]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=Smoke_and_coupling_with_WRF-Chem&amp;diff=3615</id>
		<title>Smoke and coupling with WRF-Chem</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=Smoke_and_coupling_with_WRF-Chem&amp;diff=3615"/>
		<updated>2019-11-23T17:06:43Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
&lt;br /&gt;
As of WRF 3.4, WRF-Chem is now included in the SFire repository. Fire emissions can be now input into WRF-Chem as chemical species or a simple smoke tracer. [[File:Sfire smoke.png|thumb|SFire smoke tracer in action.  See [[File:Smoke small.avi|animation]].]]&lt;br /&gt;
&lt;br /&gt;
==Compiling with chem support==&lt;br /&gt;
Compiling the code with support for WRF-Chem is similar to the [[How to compile WRF-Fire|standard procedure]].&lt;br /&gt;
You must set an environment variable &#039;&#039;&#039;WRF_CHEM&#039;&#039;&#039; and configure with the argument &#039;&#039;&#039;chem&#039;&#039;&#039; as follows.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export WRF_CHEM=1&lt;br /&gt;
./configure chem&lt;br /&gt;
./compile em_fire&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Running an idealized example==&lt;br /&gt;
An idealized example based on the hill case has been created in [https://github.com/jbeezley/wrf-fire/tree/master/wrfv2_fire/test/em_fire/chem &#039;&#039;&#039;test/em_fire/chem&#039;&#039;&#039;]&lt;br /&gt;
Note that &#039;&#039;&#039;sfc_full_init =.true.&#039;&#039;&#039; is required in the &#039;&#039;&#039;&amp;amp;fire&#039;&#039;&#039; section of &#039;&#039;&#039;namelist.input&#039;&#039;&#039; to initialize USGS landuse, which is required by  WRF-Chem.&lt;br /&gt;
The tracer selected by &#039;&#039;&#039;tracer_opt=1&#039;&#039;&#039; will appear as an atmospheric variable in the output file with the name &#039;&#039;&#039;smoke&#039;&#039;&#039;. The chemical species in the atmosphere, selected by &#039;&#039;&#039;chem_opt&#039;&#039;&#039;, will appear under their respective names, such as &#039;&#039;&#039;n2o5&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The selection of the model in WRF-Chem is controlled by namelist variables &#039;&#039;&#039;tracer_opt&#039;&#039;&#039; in the [https://github.com/jbeezley/wrf-fire/blob/4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/test/em_fire/chem/namelist.input#L78 &#039;&#039;&#039;&amp;amp;dynamics&#039;&#039;&#039;] section and &#039;&#039;&#039;chem_opt&#039;&#039;&#039; in the [https://github.com/jbeezley/wrf-fire/blob/4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/test/em_fire/chem/namelist.input#L203 &#039;&#039;&#039;&amp;amp;chemistry&#039;&#039;&#039;] section of &#039;&#039;&#039;namelist.input&#039;&#039;&#039;. At the moment, the coupling supports &#039;&#039;&#039;tracer_opt = 1&#039;&#039;&#039;, which creates a single tracer called &#039;&#039;&#039;smoke&#039;&#039;&#039;, and a subset of RADM2 (&#039;&#039;&#039;chem_opt=2&#039;&#039;&#039;) and MOZART (&#039;&#039;&#039;chem_opt=112&#039;&#039;&#039; or &#039;&#039;&#039;119&#039;&#039;&#039;) variables. The option &#039;&#039;&#039;tracer_opt = 2&#039;&#039;&#039; does not require WRF-Chem, and it creates tracers called &#039;&#039;&#039;tr17_1&#039;&#039;&#039; to &#039;&#039;&#039;tr17_8&#039;&#039;&#039;, which are inserted proportionally to the fuel burned according to the emission factors in file  &#039;&#039;&#039;namelist.fire_emissions&#039;&#039;&#039;.  The properties of the tracers slightly differ, and the tracers work slightly differently with and without WRF-Chem compiled, as described in file chem/module_input_tracer.F. &lt;br /&gt;
&lt;br /&gt;
In each time step, the coupling code adds the fire emissions created in the time step to the first layer of atmosphere cells. The chemistry state arrays are have unit of concentrations (&#039;&#039;&#039;ppmv&#039;&#039;&#039;), so the amounts of the inserted species are scaled by the dry air mass in the first layer. The amount of the chemical species created is determined from the amount of fuel burned directly by an emissions table, while the smoke tracer uses the fire ground heat flux &#039;&#039;&#039;GRNHFX&#039;&#039;&#039; as a proxy. The emissions table contains the amounts of emissions fuel burned in &#039;&#039;&#039;g/kg&#039;&#039;&#039; or &#039;&#039;&#039;mol/kg&#039;&#039;&#039;.  The emissions tables are specified in file &#039;&#039;&#039;namelist.fire_emissions&#039;&#039;&#039;. This file contains a line for each species like&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 no2=3.2,3.2,3.2,1.4,1.4,1.4,1.4,2.7,2.7,2.7,3,3,3,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
with emissions (g/kg fuel or mol/kg fuel) for each of the fuel categories used (by default, the 13 Anderson&#039;s categories).&lt;br /&gt;
&lt;br /&gt;
There are two additional variables in &#039;&#039;&#039;namelist.fire_emissions&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
compatible_chem_opt=112,119&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
is a list of &#039;&#039;&#039;chem_opt&#039;&#039;&#039; values intended to be used with the table. However, presently, the code does not check if the file lists other chemistry species supported by the coupling code, not just those for the given  &#039;&#039;&#039;chem_opt&#039;&#039;&#039;.  If it does, the results can be upredictable.&lt;br /&gt;
The variable&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
printsums=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
will enable printing of the totals of each emissions species at the end of every time step.&lt;br /&gt;
&lt;br /&gt;
There are currently two emissions tables available:&lt;br /&gt;
* {{Wrf-fire-path|wrfv2_fire/test/em_fire/chem/namelist.fire_emissions.RADM2|namelist.fire_emissions.RADM2}} for [http://ruc.noaa.gov/wrf/WG11/radm2.htm RADM2]&lt;br /&gt;
* {{Wrf-fire-path|wrfv2_fire/test/em_fire/chem/namelist.fire_emissions.MOZART|namelist.fire_emissions.MOZART}} for [http://www.acd.ucar.edu/wrf-chem/mozart.shtml MOZART]&lt;br /&gt;
You need to copy or link one of them to &#039;&#039;&#039;namelist.fire_emissions&#039;&#039;&#039;, such as&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ln -s namelist.fire_emissions.RADM2 namelist.fire_emissions&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and set &#039;&#039;&#039;chem_opt&#039;&#039;&#039; appropriately in &#039;&#039;&#039;namelist.input&#039;&#039;&#039;, here &#039;&#039;&#039;chem_opt=2&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
&lt;br /&gt;
WRF-Chem contains a multitude of arrays representing concentrations of chemical species. The typical&lt;br /&gt;
method of injecting data into the simulation involves generating emission input data files from standard&lt;br /&gt;
sources.  These sources are read into the code using auxiliary input streams and interpolated into&lt;br /&gt;
the species arrays in the [https://github.com/jbeezley/wrf-fire/blob/4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/chem/module_emissions_anthropogenics.F emissions] module.  For the coupling with SFIRE, turning off file&lt;br /&gt;
input in the namelist seems to initialize the emission arrays to zero.  This eliminates the need to generate&lt;br /&gt;
useless emission files. &lt;br /&gt;
&lt;br /&gt;
WRF-Chem stores its state in arrays &#039;&#039;&#039;chem&#039;&#039;&#039; and   &#039;&#039;&#039;tracer&#039;&#039;&#039;.  These arrays are four dimensional indexed like &#039;&#039;&#039;(x,z,y,s)&#039;&#039;&#039;, where s is the chemical&lt;br /&gt;
species. The domain structure contains scalars such as &#039;&#039;&#039;p_smoke&#039;&#039;&#039; (into the &#039;&#039;&#039;tracer&#039;&#039;&#039; array) and &#039;&#039;&#039;p_nh4&#039;&#039;&#039; (into the &#039;&#039;&#039;chem&#039;&#039;&#039; array) that give the species index for&lt;br /&gt;
each type.  The species selections are specific to different chemistry options (&#039;&#039;&#039;chem_opt&#039;&#039;&#039;) &lt;br /&gt;
from the registry; however, even unused species have their index set to 1. The dynamics section of the namelist has an option for &#039;&#039;&#039;tracer_opt&#039;&#039;&#039;.  This&lt;br /&gt;
controls what tracers are generated for Chem.  &lt;br /&gt;
&lt;br /&gt;
Since fuel is given at the fire grid resolution, the emissions are computed at the fire resolution and then averaged to the atmospheric resolution, where the chemistry operates. However, since the memory demands of a 3D array at fire resolution (two surface dimensions and chemical species) would be excessive, the contributions of the emissions are computed on the fly and added to the respective atmospheric cell immediately. This results in code that straddles the otherwise strict division in SFIRE between fire computations on the fire grid, which are independent of WRF, and the atmospheric computations related to WRF, which otherwise consist of interpolation only and should not contain any other code. So, subroutine [https://github.com/jbeezley/wrf-fire/blob/4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/phys/module_fr_sfire_atm.F#L276 &#039;&#039;&#039;add_fire_emissions_to_chem&#039;&#039;&#039;], which  adds chemical species to the &#039;&#039;&#039;chem&#039;&#039;&#039; array, was derived from the utility [https://github.com/jbeezley/wrf-fire/blob/4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/phys/module_fr_sfire_util.F#L471 &#039;&#039;&#039;sum_2d_cells&#039;&#039;&#039;] by adding chemistry-specific code.&lt;br /&gt;
&lt;br /&gt;
The chemistry coupling code is compiled only when WRF-Chem is being compiled. It resides in [https://github.com/jbeezley/wrf-fire/blob4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/phys/module_fr_sfire_atm.F module_fr_sfire_atm.F], which is allowed by the SFIRE architecture to contain code both at atmosphere and fire resolution. Besides subroutine &#039;&#039;&#039;add_fire_emissions_to_chem&#039;&#039;&#039;, the code consists of subroutine [https://github.com/jbeezley/wrf-fire/blob/4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/phys/module_fr_sfire_atm.F#L151 &#039;&#039;&#039;read_emissions_table&#039;&#039;&#039;], which reads file &#039;&#039;&#039;namelist.fire_emissions&#039;&#039;&#039;, subroutine [https://github.com/jbeezley/wrf-fire/blob/4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/phys/module_fr_sfire_atm.F#L276 &#039;&#039;&#039;add_fire_emissions_to_chem&#039;&#039;&#039;], which  adds chemical species to the &#039;&#039;&#039;chem&#039;&#039;&#039; array, the [https://github.com/jbeezley/wrf-fire/blob/4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/phys/module_fr_sfire_atm.F#L78 emissions tables] as module variables, subroutine [https://github.com/jbeezley/wrf-fire/blob/4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/phys/module_fr_sfire_atm.F#L1914 &#039;&#039;&#039;fire_emission&#039;&#039;&#039;], which adds the smoke tracer, and the corresponding call statements in [https://github.com/jbeezley/wrf-fire/blob/4c0851085eeb25d9143bd5b07e736fe949700497/wrfv2_fire/phys/module_fr_sfire_driver.F  &#039;&#039;&#039;module_fr_sfire_driver&#039;&#039;&#039;].&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* Kochanski A. K., Jenkins M.A., Yedinak K., Mandel J., Beezley J, and Lamb B. (2015) &#039;&#039;&#039;Toward an integrated system for fire, smoke and air quality simulations&#039;&#039;&#039;, International Journal of Wildland Fire - http://dx.doi.org/10.1071/WF14074&lt;br /&gt;
* Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, Craig B. Clements, &#039;&#039;&#039;Air pollution forecasting by coupled atmosphere-fire model WRF and SFIRE with WRF-Chem&#039;&#039;&#039;, 4th Fire Behavior and Fuels Conference, February 18-22, 2013, Raleigh, NC, 	{{arXiv|1304.7703}}, 2013&lt;br /&gt;
* Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, and Minjeong Kim, &#039;&#039;&#039;WRF fire simulation coupled with a fuel moisture model and smoke transport by WRF-Chem&#039;&#039;&#039;, [http://www.mmm.ucar.edu/events/2012_wrfusers/ 2012 WRF Users Workshop], [http://www.openwfm.org/wiki/File:WRF_workshop_2012_poster.pdf Poster 51] [http://www.mmm.ucar.edu/events/2012_wrfusers/abstracts/p51.htm abstract] [https://www.regonline.com/AttendeeDocuments/1077122/43365086/wrf2012.pdf paper] {{arXiv|1208.1059}}&lt;br /&gt;
* [http://ruc.noaa.gov/wrf/WG11/Users_guide.pdf WRF-Chem Users&#039; Guide]&lt;br /&gt;
* Georg A. Grell, Steven E. Peckham, Rainer Schmitz, Stuart A. McKeen, Gregory Frost, William C. Skamarock, Brian Eder, [http://dx.doi.org/10.1016/j.atmosenv.2005.04.027 Fully coupled “online” chemistry within the WRF model], Atmospheric Environment, Volume 39, Issue 37, December 2005, Pages 6957–6975&lt;br /&gt;
* C. Wiedinmyer, S. K. Akagi, R. J. Yokelson, L. K. Emmons, J. A. Al-Saadi, J. J. Orlando, and A. J. Soja. [http://dx.doi.org/10.5194/gmd-4-625-2011 The Fire INventory from NCAR (FINN): a high resolution global model to estimate the emissions from open burning], Geosci. Model Dev., 4, 625-641, 2011&lt;br /&gt;
* L. K. Emmons, S. Walters, P. G. Hess, J.-F. Lamarque, G. G. Pfister, D. Fillmore, C. Granier, A. Guenther, D. Kinnison, T. Laepple, J. Orlando, X. Tie, G. Tyndall, C. Wiedinmyer, S. L. Baughcum, and S. Kloster, [http://dx.doi.org/10.5194/gmd-3-43-2010 Description and evaluation of the Model for Ozone and Related chemical Tracers, version 4 (MOZART-4)], Geosci. Model Dev., 3, 43-67, 2010&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://ruc.noaa.gov/wrf/WG11/ WRF-Chem] home page&lt;br /&gt;
* [https://www2.acom.ucar.edu/modeling/finn-fire-inventory-ncar Finn]  emissions model&lt;br /&gt;
* [http://www.acd.ucar.edu/wrf-chem/mozart.shtml MOZART] chemistry model&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WRF-SFIRE_user_guide&amp;diff=3145</id>
		<title>WRF-SFIRE user guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WRF-SFIRE_user_guide&amp;diff=3145"/>
		<updated>2019-01-19T00:45:25Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Running a real case */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:&#039;&#039;This guide applies to WRF-SFIRE, available from [[How_to_get_WRF-Fire|OpenWFM.org]]. [[Fire_code_in_WRF_release|WRF-Fire]] available in [http://www.wrf-model.org/users/release.php WRF release], is a limited version from 2010. This guide evolves with the software and it complements the technical description in J. Mandel, J. D. Beezley, and A. K. Kochanski, &#039;&#039;&#039;Coupled atmosphere-wildland fire modeling with WRF 3.3 and SFIRE 2011&#039;&#039;&#039;, Geoscientific Model Development (GMD) 4, 591-610, 2011, {{doi|10.5194/gmd-4-591-2011}} and J. Mandel, S. Amram, J. D. Beezley, G. Kelman, A. K. Kochanski, V. Y. Kondratenko, B. H. Lynn, B. Regev, M. Vejmelka, 2014, &#039;&#039;&#039;Recent advances and applications of WRF–SFIRE&#039;&#039;&#039;, Natural Hazards and Earth System Science, 14, 2829-2845, 2014, {{doi|10.5194/nhess-14-2829-2014}}.&#039;&#039;&lt;br /&gt;
==Mailing list==&lt;br /&gt;
Please consider joining the mailing list wrf-sfire@googlegroups.com, which is monitored by the developers. Go to https://googlegroups.com/group/wrf-sfire and log into your google account, or,&lt;br /&gt;
to join without a google account, send any email to [mailto://wrf-sfire+subscribe@googlegroups.com wrf-sfire+subscribe@googlegroups.com].&lt;br /&gt;
&lt;br /&gt;
==Getting started==&lt;br /&gt;
# [[How to get WRF-Fire|Downloading the software]]&lt;br /&gt;
# [[How to run WRF-Fire|Building the software and running an ideal case]]&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
# [[namelist.input]]&lt;br /&gt;
# [[namelist.fire]]&lt;br /&gt;
# [[Vertical wind interpolation]]&lt;br /&gt;
# [[WRF-Fire ignition|Ignition]]&lt;br /&gt;
==Running a real case==&lt;br /&gt;
#[[How to run WRF-Fire with real data|Basics of running a real case]]&lt;br /&gt;
#[[How to convert data for Geogrid|Converting fuel data]]&lt;br /&gt;
#[[WPS with GeoTIFF support|Using GeoTIFF files]]&lt;br /&gt;
&lt;br /&gt;
==Coupling with fuel moisture and smoke==&lt;br /&gt;
# [[Fuel moisture model]]&lt;br /&gt;
# [[Assimilation of RAWS fuel moisture data]]&lt;br /&gt;
# [[Coupling with WRF-Chem]]&lt;br /&gt;
&lt;br /&gt;
==Data assimilation and ignition from a perimeter==&lt;br /&gt;
# [[Fire replay and cycling]]&lt;br /&gt;
&lt;br /&gt;
==Standalone fire model==&lt;br /&gt;
#[[How_to_run_the_standalone_fire_model_in_WRF-Fire|Running the standalone fire model]]&lt;br /&gt;
&lt;br /&gt;
==Visualisation==&lt;br /&gt;
#[[How to visualize WRF-Fire output in VAPOR|VAPOR]]&lt;br /&gt;
#[[Visualization in Google Earth|Google Earth]]&lt;br /&gt;
#[[How to visualize WRF-Fire output in Mayavi2|Mayavi2]]&lt;br /&gt;
#[[How to visualize WRF-Fire output in VisTrails|VisTrails]]&lt;br /&gt;
#[[How to visualize WRF-Fire output in Matlab|Matlab]]&lt;br /&gt;
#[[Visualizations links|Examples and case studies]]&lt;br /&gt;
&lt;br /&gt;
==Diagnostics==&lt;br /&gt;
#[[How to visualize vertical profiles from WRF in Matlab|Wind profiles]]&lt;br /&gt;
#[[How to diagnose fuel properties in WRF-Fire|Fuel properties]]&lt;br /&gt;
#[[How to load WRF files in Matlab|Loading WRF files into Matlab]]&lt;br /&gt;
#[[How to interpret WRF variables|WRF variables]]&lt;br /&gt;
#[[SFIRE variables]]&lt;br /&gt;
==Publications==&lt;br /&gt;
# [[Publications#WRF-Fire description|Model description]]&lt;br /&gt;
# [[Publications#Other WRF-Fire publications|Other publications]]&lt;br /&gt;
&lt;br /&gt;
==Acknowledgements==&lt;br /&gt;
This work was partially supported by NSF grants ATM-0835579 and DMS-1216481.&lt;br /&gt;
[[Category:WRF-Fire|User&#039;s guide]]&lt;br /&gt;
[[Category:WRF-SFIRE users guide]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[WRF-Fire development notes]]&lt;br /&gt;
* [[Fire code in WRF release]]s&lt;br /&gt;
* [[Publications]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WRF-SFIRE_user_guide&amp;diff=3144</id>
		<title>WRF-SFIRE user guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WRF-SFIRE_user_guide&amp;diff=3144"/>
		<updated>2019-01-19T00:42:33Z</updated>

		<summary type="html">&lt;p&gt;Adamko: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:&#039;&#039;This guide applies to WRF-SFIRE, available from [[How_to_get_WRF-Fire|OpenWFM.org]]. [[Fire_code_in_WRF_release|WRF-Fire]] available in [http://www.wrf-model.org/users/release.php WRF release], is a limited version from 2010. This guide evolves with the software and it complements the technical description in J. Mandel, J. D. Beezley, and A. K. Kochanski, &#039;&#039;&#039;Coupled atmosphere-wildland fire modeling with WRF 3.3 and SFIRE 2011&#039;&#039;&#039;, Geoscientific Model Development (GMD) 4, 591-610, 2011, {{doi|10.5194/gmd-4-591-2011}} and J. Mandel, S. Amram, J. D. Beezley, G. Kelman, A. K. Kochanski, V. Y. Kondratenko, B. H. Lynn, B. Regev, M. Vejmelka, 2014, &#039;&#039;&#039;Recent advances and applications of WRF–SFIRE&#039;&#039;&#039;, Natural Hazards and Earth System Science, 14, 2829-2845, 2014, {{doi|10.5194/nhess-14-2829-2014}}.&#039;&#039;&lt;br /&gt;
==Mailing list==&lt;br /&gt;
Please consider joining the mailing list wrf-sfire@googlegroups.com, which is monitored by the developers. Go to https://googlegroups.com/group/wrf-sfire and log into your google account, or,&lt;br /&gt;
to join without a google account, send any email to [mailto://wrf-sfire+subscribe@googlegroups.com wrf-sfire+subscribe@googlegroups.com].&lt;br /&gt;
&lt;br /&gt;
==Getting started==&lt;br /&gt;
# [[How to get WRF-Fire|Downloading the software]]&lt;br /&gt;
# [[How to run WRF-Fire|Building the software and running an ideal case]]&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
# [[namelist.input]]&lt;br /&gt;
# [[namelist.fire]]&lt;br /&gt;
# [[Vertical wind interpolation]]&lt;br /&gt;
# [[WRF-Fire ignition|Ignition]]&lt;br /&gt;
==Running a real case==&lt;br /&gt;
#[[How to run WRF-Fire with real data|Basics of running a real case]]&lt;br /&gt;
#[[How to convert data for Geogrid|Acquiring and converting fine-resolution data for Geogrid]]&lt;br /&gt;
#[[WPS with GeoTIFF support|Using GeoTIFF files]]&lt;br /&gt;
&lt;br /&gt;
==Coupling with fuel moisture and smoke==&lt;br /&gt;
# [[Fuel moisture model]]&lt;br /&gt;
# [[Assimilation of RAWS fuel moisture data]]&lt;br /&gt;
# [[Coupling with WRF-Chem]]&lt;br /&gt;
&lt;br /&gt;
==Data assimilation and ignition from a perimeter==&lt;br /&gt;
# [[Fire replay and cycling]]&lt;br /&gt;
&lt;br /&gt;
==Standalone fire model==&lt;br /&gt;
#[[How_to_run_the_standalone_fire_model_in_WRF-Fire|Running the standalone fire model]]&lt;br /&gt;
&lt;br /&gt;
==Visualisation==&lt;br /&gt;
#[[How to visualize WRF-Fire output in VAPOR|VAPOR]]&lt;br /&gt;
#[[Visualization in Google Earth|Google Earth]]&lt;br /&gt;
#[[How to visualize WRF-Fire output in Mayavi2|Mayavi2]]&lt;br /&gt;
#[[How to visualize WRF-Fire output in VisTrails|VisTrails]]&lt;br /&gt;
#[[How to visualize WRF-Fire output in Matlab|Matlab]]&lt;br /&gt;
#[[Visualizations links|Examples and case studies]]&lt;br /&gt;
&lt;br /&gt;
==Diagnostics==&lt;br /&gt;
#[[How to visualize vertical profiles from WRF in Matlab|Wind profiles]]&lt;br /&gt;
#[[How to diagnose fuel properties in WRF-Fire|Fuel properties]]&lt;br /&gt;
#[[How to load WRF files in Matlab|Loading WRF files into Matlab]]&lt;br /&gt;
#[[How to interpret WRF variables|WRF variables]]&lt;br /&gt;
#[[SFIRE variables]]&lt;br /&gt;
==Publications==&lt;br /&gt;
# [[Publications#WRF-Fire description|Model description]]&lt;br /&gt;
# [[Publications#Other WRF-Fire publications|Other publications]]&lt;br /&gt;
&lt;br /&gt;
==Acknowledgements==&lt;br /&gt;
This work was partially supported by NSF grants ATM-0835579 and DMS-1216481.&lt;br /&gt;
[[Category:WRF-Fire|User&#039;s guide]]&lt;br /&gt;
[[Category:WRF-SFIRE users guide]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[WRF-Fire development notes]]&lt;br /&gt;
* [[Fire code in WRF release]]s&lt;br /&gt;
* [[Publications]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WRF-SFIRE_user_guide&amp;diff=3143</id>
		<title>WRF-SFIRE user guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WRF-SFIRE_user_guide&amp;diff=3143"/>
		<updated>2019-01-19T00:41:48Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Running a real case */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:&#039;&#039;This guide applies to WRF-SFIRE, available from [[How_to_get_WRF-Fire|OpenWFM.org]]. [[Fire_code_in_WRF_release|WRF-Fire]] available in [http://www.wrf-model.org/users/release.php WRF release], is a limited version from 2010. This guide evolves with the software and it complements the technical description in J. Mandel, J. D. Beezley, and A. K. Kochanski, &#039;&#039;&#039;Coupled atmosphere-wildland fire modeling with WRF 3.3 and SFIRE 2011&#039;&#039;&#039;, Geoscientific Model Development (GMD) 4, 591-610, 2011, {{doi|10.5194/gmd-4-591-2011}} and J. Mandel, S. Amram, J. D. Beezley, G. Kelman, A. K. Kochanski, V. Y. Kondratenko, B. H. Lynn, B. Regev, M. Vejmelka, 2014, &#039;&#039;&#039;Recent advances and applications of WRF–SFIRE&#039;&#039;&#039;, Natural Hazards and Earth System Science, 14, 2829-2845, 2014, {{doi|10.5194/nhess-14-2829-2014}}.&#039;&#039;&lt;br /&gt;
==Mailing list==&lt;br /&gt;
Please consider joining the mailing list wrf-sfire@googlegroups.com, which is monitored by the developers. Go to https://googlegroups.com/group/wrf-sfire and log into your google account, or,&lt;br /&gt;
to join without a google account, send any email to [mailto://wrf-sfire+subscribe@googlegroups.com wrf-sfire+subscribe@googlegroups.com].&lt;br /&gt;
&lt;br /&gt;
==Getting started==&lt;br /&gt;
# [[How to get WRF-Fire|Downloading the software]]&lt;br /&gt;
# [[How to run WRF-Fire|Building the software and running an ideal case]]&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
# [[namelist.input]]&lt;br /&gt;
# [[namelist.fire]]&lt;br /&gt;
# [[Vertical wind interpolation]]&lt;br /&gt;
# [[WRF-Fire ignition|Ignition]]&lt;br /&gt;
==Running a real case==&lt;br /&gt;
#[[How to run WRF-Fire with real data|Basics of running a real case]]&lt;br /&gt;
#[[How to convert data for Geogrid|Converting fuel data]]&lt;br /&gt;
#[[WPS with GeoTIFF support|Using GeoTIFF files]]&lt;br /&gt;
&lt;br /&gt;
==Coupling with fuel moisture and smoke==&lt;br /&gt;
# [[Fuel moisture model]]&lt;br /&gt;
# [[Assimilation of RAWS fuel moisture data]]&lt;br /&gt;
# [[Coupling with WRF-Chem]]&lt;br /&gt;
&lt;br /&gt;
==Data assimilation and ignition from a perimeter==&lt;br /&gt;
# [[Fire replay and cycling]]&lt;br /&gt;
&lt;br /&gt;
==Standalone fire model==&lt;br /&gt;
#[[How_to_run_the_standalone_fire_model_in_WRF-Fire|Running the standalone fire model]]&lt;br /&gt;
&lt;br /&gt;
==Visualisation==&lt;br /&gt;
#[[How to visualize WRF-Fire output in VAPOR|VAPOR]]&lt;br /&gt;
#[[Visualization in Google Earth|Google Earth]]&lt;br /&gt;
#[[How to visualize WRF-Fire output in Mayavi2|Mayavi2]]&lt;br /&gt;
#[[How to visualize WRF-Fire output in VisTrails|VisTrails]]&lt;br /&gt;
#[[How to visualize WRF-Fire output in Matlab|Matlab]]&lt;br /&gt;
#[[Visualizations links|Examples and case studies]]&lt;br /&gt;
&lt;br /&gt;
==Diagnostics==&lt;br /&gt;
#[[How to visualize vertical profiles from WRF in Matlab|Wind profiles]]&lt;br /&gt;
#[[How to diagnose fuel properties in WRF-Fire|Fuel properties]]&lt;br /&gt;
#[[How to load WRF files in Matlab|Loading WRF files into Matlab]]&lt;br /&gt;
#[[How to interpret WRF variables|WRF variables]]&lt;br /&gt;
#[[SFIRE variables]]&lt;br /&gt;
==Publications==&lt;br /&gt;
# [[Publications#WRF-Fire description|Model description]]&lt;br /&gt;
# [[Publications#Other WRF-Fire publications|Other publications]]&lt;br /&gt;
&lt;br /&gt;
==Acknowledgements==&lt;br /&gt;
This work was partially supported by NSF grants ATM-0835579 and DMS-1216481.&lt;br /&gt;
[[Category:WRF-Fire|User&#039;s guide]]&lt;br /&gt;
[[Category:WRF-SFIRE users guide]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[WRF-Fire development notes]]&lt;br /&gt;
* [[Fire code in WRF release]]s&lt;br /&gt;
* [[Publications]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3142</id>
		<title>How to run WRF-SFIRE with real data</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3142"/>
		<updated>2019-01-19T00:39:38Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Outline */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
Running WRF-Fire with real data is a process very similar to running WRF with real data for weather simulations.&lt;br /&gt;
The [http://www.mmm.ucar.edu/wrf/users WRF users page] has many &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/contents.html documents] and &lt;br /&gt;
[http://www2.mmm.ucar.edu/wrf/users/supports/tutorial.html tutorials] outlining this process.  The purpose&lt;br /&gt;
of this page is to provide a tutorial for using real data with WRF-Fire starting from scratch.  We begin with a quick outline of the&lt;br /&gt;
steps involved including links to the output of each step.  The user can use these linked files to start from any step or to verify &lt;br /&gt;
their own results.  Due to platform and compiler differences your output might differ slightly from those provided.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This page refers to data sources for the USA only. For other countries, you will need to make appropriate modifications yourself.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Outline=&lt;br /&gt;
&lt;br /&gt;
# [[How_to_get_WRF-Fire|Obtain WRF-Fire source code]].&lt;br /&gt;
# [[How_to_compile_WRF-Fire|Compile target em_real]].&lt;br /&gt;
# [[#Compiling WPS|Compile WPS]].&lt;br /&gt;
# [[#Configuring_the_domain|Configure your domain]].&lt;br /&gt;
# [[#Obtaining data for geogrid|Download geogrid datasets]].&lt;br /&gt;
# [[#Converting fire data|Converting fuel data]].&lt;br /&gt;
# [[#Running geogrid|Run the geogrid executable]].&lt;br /&gt;
# [[#Obtaining atmospheric data|Download atmospheric data]].&lt;br /&gt;
# [[#Running ungrib|Run the ungrib executable]].&lt;br /&gt;
# [[#Running metgrid|Run the metgrid executable]].&lt;br /&gt;
# [[#Running wrf|Run real.exe and wrf.exe]].&lt;br /&gt;
&lt;br /&gt;
=Compiling WPS=&lt;br /&gt;
&lt;br /&gt;
After you have compiled WRF, you then need to go into the subdirectory &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; and run &lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;.  This will present you with a list of configuration options similar to those given by WRF.&lt;br /&gt;
You will need to chose one with the same compiler that you used to compile WRF.  Generally, it is unnecessary to compile WPS with parallel support.&lt;br /&gt;
GRIB2 support is only necessary if your atmospheric data source requires it.  Once you have chosen a configuration, you can compile with&lt;br /&gt;
&amp;lt;pre&amp;gt;./compile &amp;gt;&amp;amp; compile.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to check for errors in the log file generated.&lt;br /&gt;
&lt;br /&gt;
=Configuring the domain=&lt;br /&gt;
&lt;br /&gt;
The physical domain is configured in the geogrid section of namelist.wps in the WPS directory.  In this section, you should define&lt;br /&gt;
the geographic projection with &amp;lt;tt&amp;gt;map_proj&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat1&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat2&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;stand_lon&amp;lt;/tt&amp;gt;.  Available projections&lt;br /&gt;
include &amp;lt;tt&amp;gt;&#039;lambert&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;polar&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;mercator&#039;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;&#039;lat-lon&#039;&amp;lt;/tt&amp;gt;.  The lower left corner of the domain is located at&lt;br /&gt;
&amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; longitude and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; latitude.  The computational grid is defined by &amp;lt;tt&amp;gt;e_we/e_sn&amp;lt;/tt&amp;gt;, the number of (staggered) grid&lt;br /&gt;
points in the west-east/south-north direction, and the grid resolution is defined by &amp;lt;tt&amp;gt;dx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;dy&amp;lt;/tt&amp;gt; in meters. &lt;br /&gt;
We also specify a path to where we will put the static dataset that geogrid will read from, and we specify the highest resolution (30 arc minutes) that this &lt;br /&gt;
data is released in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;geogrid&lt;br /&gt;
 e_we              =  43,&lt;br /&gt;
 e_sn              =  43,&lt;br /&gt;
 geog_data_res     = &#039;30s&#039;,&lt;br /&gt;
 dx = 60,&lt;br /&gt;
 dy = 60,&lt;br /&gt;
 map_proj  = &#039;lambert&#039;,&lt;br /&gt;
 ref_lat   =  39.70537,&lt;br /&gt;
 ref_lon   = -107.2907,&lt;br /&gt;
 truelat1  =  39.338,&lt;br /&gt;
 truelat2  =  39.338,&lt;br /&gt;
 stand_lon = -106.807,&lt;br /&gt;
 geog_data_path = &#039;../../wrfdata/geog&#039;&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The share section of the WPS namelist defines the fire subgrid refinement in &amp;lt;tt&amp;gt;subgrid_ratio_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;subgrid_ratio_y&amp;lt;/tt&amp;gt;.  This means &lt;br /&gt;
that the fire grid will be a 10 time refined grid at a resolution of 6 meters by 6 meters.  The &amp;lt;tt&amp;gt;start_date&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;end_data&amp;lt;/tt&amp;gt; parameters specify&lt;br /&gt;
the time window that the simulation will be run in.  Atmospheric data must be available at both temporal boundaries.  The &amp;lt;tt&amp;gt;interval_seconds&amp;lt;/tt&amp;gt; &lt;br /&gt;
parameter tells WPS the number of seconds between each atmospheric dataset.  For our example, we&lt;br /&gt;
will be using the NARR dataset which is released daily every three hours or 10,800 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;share&lt;br /&gt;
 wrf_core = &#039;ARW&#039;,&lt;br /&gt;
 max_dom = 1,&lt;br /&gt;
 start_date = &#039;2005-08-28_12:00:00&#039;,&lt;br /&gt;
 end_date   = &#039;2005-08-28_15:00:00&#039;,&lt;br /&gt;
 interval_seconds = 10800,&lt;br /&gt;
 io_form_geogrid = 2,&lt;br /&gt;
 subgrid_ratio_x = 10,&lt;br /&gt;
 subgrid_ratio_y = 10,&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/2u3YXkHS here].&lt;br /&gt;
&lt;br /&gt;
=Obtaining data for geogrid=&lt;br /&gt;
&lt;br /&gt;
First you must download and uncompress the standard [http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz geogrid input data].&lt;br /&gt;
This is a 429 MB compressed tarball that uncompresses to around 11 GB.  It contains all of the static data that geogrid needs for a standard&lt;br /&gt;
weather simulation; however, for a WRF-Fire simulation we need to fill in two additional fields that are too big to release in a single download for the&lt;br /&gt;
whole globe.  We first need to determine the approximate latitude and longitude bounds for our domain.&lt;br /&gt;
&lt;br /&gt;
We know the coordinates in the lower left corner from the &amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; parameters of the namelist.  We can estimate the&lt;br /&gt;
coordinates of the upper right corner by the approximate ratio 9e-6 degrees per meter.  So, the upper right corner of our domain is at approximately&lt;br /&gt;
-107.2675 longitude and 39.7286 latitude.  For the purposes of downloading data, we will expand this region to the range&lt;br /&gt;
-107.35 through -107.2 longitude and 39.6 through 39.75 latitude.&lt;br /&gt;
&lt;br /&gt;
==Downloading fuel category data==&lt;br /&gt;
&lt;br /&gt;
For the United States, Anderson 13 fuel category data is available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website.  Upon opening the national map, &lt;br /&gt;
click roughly on your are of interest, the map will zoom in, you will see a menu on the top of the screen.  Click on the earth icon, that should display a drop down menu, and select option &#039;Download Data&#039;&lt;br /&gt;
[[File:Landfire1.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
This will open a new window on the right. Click on &#039;x y&#039; icon that will open a form that lets you key in the the longitude and latitude range of your selection.  In this window, we will input the coordinates computed earlier, and below we will select &#039;LF_2014 (LF_140)&#039;, then &#039;Fuel&#039;, and &#039;us_140 13 Fire Behavior Fuel Models-Anderson, and click &#039;Add Area&#039; button.&lt;br /&gt;
[[File:landfire2.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window, click on &amp;quot;modify data request&amp;quot;.  This window lists all of the available data products for the selected region.  You want to check the box &lt;br /&gt;
next to &amp;quot;US_140 13 Fire Behavior Fuel Models-Anderson&amp;quot; and change the data format from &amp;quot;ArcGRID_with_attribs&amp;quot; to &amp;quot;GeoTIFF_with _attribs&amp;quot;. At the bottom make sure &amp;quot;Maximum size (MB) per piece:&amp;quot; is set to 250. Then go to the bottom of the page and click &amp;quot;Save Changes&amp;quot;.&lt;br /&gt;
[[File:landfire3.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Finally, click &amp;quot;Download&amp;quot;.  The file will be a compressed archive containing, among others, a GeoTIFF file.  The name of the file will be different for each request, &lt;br /&gt;
but in this example we have &amp;lt;tt&amp;gt;lf02588871.zip&amp;lt;/tt&amp;gt; containing the GeoTIFF file &amp;lt;tt&amp;gt;lf02588871.tif&amp;lt;/tt&amp;gt;, which can be found here, [[File:lf02588871.tif]].&lt;br /&gt;
&lt;br /&gt;
==Downloading high resolution elevation data==&lt;br /&gt;
&lt;br /&gt;
For the United States, elevation data is also available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website. Repeat the steps described above for downloading the fuel data, but instead of selecting &amp;quot;LF2014 (LF_140) US_140 13 Fire Behavior Models-Anderson, this time select: &amp;quot;Topographic&amp;quot; and &amp;quot;us Elevation&amp;quot;. &lt;br /&gt;
[[File:Landfire4.png]]&lt;br /&gt;
Again, we key in the coordinates determined before and click &amp;quot;Add Area&amp;quot;. &lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window click again &amp;quot;Modify Data Request&amp;quot;,  make sure only us_Elevation is selected, change format to &amp;quot;Geotiff&amp;quot; and click &amp;quot;Save Changes &amp;amp; Return to Summary&amp;quot;&lt;br /&gt;
[[File:Landfire5.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window you should be able to click &amp;quot;Download&amp;quot; in order to download the GeoTIFF  file containing topography. This sample file can be downloaded from here:&lt;br /&gt;
[[File:09159064.tif]]&lt;br /&gt;
&lt;br /&gt;
=Converting fuel data=&lt;br /&gt;
&lt;br /&gt;
This section describes converting data from geotiff to geogrid format.  Alternatively, you can use the version of geogrid from our repository and read the geotiff file directly.  For details see [[WPS_with_GeoTIFF_support]].&lt;br /&gt;
&lt;br /&gt;
In order for geogrid to be able to read this data, we need to convert it into an intermediate format.  We will be using a utility program&lt;br /&gt;
released with autoWPS to accomplish this.  For information on how to obtain and compile this tool, see [[How_to_convert_data_for_Geogrid]].  We will place the &amp;lt;tt&amp;gt;convert_geotiff.x&amp;lt;/tt&amp;gt; binary and the GeoTIFF&lt;br /&gt;
data files in the main WPS directory.&lt;br /&gt;
To convert the fuel category data, we will create new directories inside the WPS directory called &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt;.  Inside the &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; directory, we&lt;br /&gt;
issue the following command to convert the fuel category data.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -c 13 -w 1 -u &amp;quot;fuel category&amp;quot; -d &amp;quot;Anderson 13 fire behavior categories&amp;quot; ../lf02588871.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The resulting &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file created as follows.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = albers_nad83&lt;br /&gt;
truelat1 = 29.500000&lt;br /&gt;
truelat2 = 45.500000&lt;br /&gt;
stdlon = -96.000000&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 606&lt;br /&gt;
known_lat = 39.747818&lt;br /&gt;
known_lon = -107.373398&lt;br /&gt;
dx = 3.000000e+01&lt;br /&gt;
dy = 3.000000e+01&lt;br /&gt;
type = categorical&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;fuel category&amp;quot;&lt;br /&gt;
description = &amp;quot;Anderson 13 fire behavior categories&amp;quot;&lt;br /&gt;
wordsize = 1&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
category_min = 1&lt;br /&gt;
category_max = 14&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We have chosen to set the word size to 1 byte because it can represent 256 categories, plenty for&lt;br /&gt;
this purpose.&lt;br /&gt;
Notice that the program has changed the number of categories to 14 and uses the last category&lt;br /&gt;
to indicate that the source data was out of the range 1-13.  For the fuel category data, this represents&lt;br /&gt;
that there is no fuel present, due to a lake, river, road, etc.  &lt;br /&gt;
&lt;br /&gt;
We can check that the projection information entered into the index file is correct, by running the &lt;br /&gt;
&amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; binary that is installed with libGeoTIFF.  In this case, &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; tells us &lt;br /&gt;
that the source file contains the following projection parameters.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Projection Method: CT_AlbersEqualArea&lt;br /&gt;
   ProjStdParallel1GeoKey: 29.500000 ( 29d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjStdParallel2GeoKey: 45.500000 ( 45d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLatGeoKey: 23.000000 ( 23d 0&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLongGeoKey: -96.000000 ( 96d 0&#039; 0.00&amp;quot;W)&lt;br /&gt;
   ProjFalseEastingGeoKey: 0.000000 m&lt;br /&gt;
   ProjFalseNorthingGeoKey: 0.000000 m&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
Projection Linear Units: 9001/metre (1.000000m)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    ( -963525.000, 1916445.000)  (-107.3734004,39.7478163)&lt;br /&gt;
Lower Left    ( -963525.000, 1898265.000)  (-107.3478974,39.5867431)&lt;br /&gt;
Upper Right   ( -948885.000, 1916445.000)  (-107.2021990,39.7632976)&lt;br /&gt;
Lower Right   ( -948885.000, 1898265.000)  (-107.1770727,39.6021889)&lt;br /&gt;
Center        ( -956205.000, 1907355.000)  (-107.2751374,39.6750401)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can see that the conversion detected the projection correctly.  The small difference in the&lt;br /&gt;
coordinates of the upper left corner reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; and that in the index file is&lt;br /&gt;
due to floating point error and is much less than the resolution of the data. &lt;br /&gt;
&lt;br /&gt;
Finally, we go to the &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt; directory to convert the &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; variable.  In this case,&lt;br /&gt;
we issue the following command.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -u meters -d &#039;National Elevation Dataset 1/3 arcsecond resolution&#039; ../09159064.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This produces the following &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = regular_ll&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 1621&lt;br /&gt;
known_lat = 39.750092&lt;br /&gt;
known_lon = -107.350090&lt;br /&gt;
dx = 9.259259e-05&lt;br /&gt;
dy = 9.259259e-05&lt;br /&gt;
type = continuous&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;meters&amp;quot;&lt;br /&gt;
description = &amp;quot;National Elevation Dataset 1/3 arcsecond resolution&amp;quot;&lt;br /&gt;
wordsize = 2&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Here we have used the default word size of 2 bytes and a scale factor of 1.0, &lt;br /&gt;
which can represent any elevation in the world&lt;br /&gt;
with 1 meter accuracy, which is approximately the accuracy of the source data.&lt;br /&gt;
&lt;br /&gt;
Again, we compare the projection parameters in the index file with that reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt;&lt;br /&gt;
and find that the conversion was correct.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;      Keyed_Information:&lt;br /&gt;
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic&lt;br /&gt;
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea&lt;br /&gt;
      GeographicTypeGeoKey (Short,1): GCS_NAD83&lt;br /&gt;
      GeogCitationGeoKey (Ascii,6): &amp;quot;NAD83&amp;quot;&lt;br /&gt;
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree&lt;br /&gt;
      End_Of_Keys.&lt;br /&gt;
   End_Of_Geotiff.&lt;br /&gt;
&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    (-107.3500926,39.7500926)&lt;br /&gt;
Lower Left    (-107.3500926,39.6000000)&lt;br /&gt;
Upper Right   (-107.2000000,39.7500926)&lt;br /&gt;
Lower Right   (-107.2000000,39.6000000)&lt;br /&gt;
Center        (-107.2750463,39.6750463)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the converted data can be found here, [[File:Landfire_data.tgz]], and here, [[File:Ned_data.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running geogrid=&lt;br /&gt;
&lt;br /&gt;
The geogrid binary will create a netcdf file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt;.  This file will contain all&lt;br /&gt;
of the static data necessary to run your simulation.  Before we can run the binary, however, we must tell&lt;br /&gt;
geogrid what data needs to be in these files, where it can find them, and what kind of preprocessing we wnat done.  This information is contained in a run-time configuration file called &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt;, which is&lt;br /&gt;
located in the &amp;lt;tt&amp;gt;geogrid&amp;lt;/tt&amp;gt; subdirectory.  The file that is released with WPS contains reasonable defaults&lt;br /&gt;
for the variables defined on the atmospheric grid, but we need to add two additional sections for the two fire&lt;br /&gt;
grid data sets that we have just created.  We will append the following sections to the file &lt;br /&gt;
&amp;lt;tt&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;===============================&lt;br /&gt;
name=NFUEL_CAT&lt;br /&gt;
        priority=1&lt;br /&gt;
	dest_type=categorical&lt;br /&gt;
	dominant_only=NFUEL_CAT&lt;br /&gt;
	z_dim_name=fuel_cat&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
	interp_option=default:nearest_neighbor&lt;br /&gt;
	abs_path=./landfire_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
name=ZSF&lt;br /&gt;
        priority = 1&lt;br /&gt;
        dest_type = continuous&lt;br /&gt;
        df_dx=DZDXF&lt;br /&gt;
        df_dy=DZDYF&lt;br /&gt;
        smooth_option = smth-desmth_special; smooth_passes=1&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
        interp_option = default:average_gcell(4.0)+four_pt+average_4pt&lt;br /&gt;
	abs_path=./ned_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
For &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt;, we will use simple nearest neighbor interpolation, while for &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, we will&lt;br /&gt;
use bilinear interpolation with smoothing.  Other configurations are possible.  See the [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/users_guide_chap3.htm#_Description_of_GEOGRID.TBL WPS users guide] for further information.  The full table used can be found [http://pastebin.com/kdymq5ff here].&lt;br /&gt;
&lt;br /&gt;
Once we make these changes to the &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt; file, and ensure that all of the directories are in the correct place (including the default geogrid dataset at &amp;lt;tt&amp;gt;../../wrfdata&amp;lt;/tt&amp;gt;), we can execute the geogrid binary.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./geogrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create a file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt; in the current directory, which can be found here,&lt;br /&gt;
[[File:geo_em.d01.nc.gz]].  The contents of this file can be viewed using your favorite NetCDF viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;geo_em.d01.nc&amp;quot; widths=&amp;quot;225px&amp;quot; heights=&amp;quot;225px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:nfuel_cat.png|The fuel category data interpolated to the model grid.The&lt;br /&gt;
File:zsf.png|The high resolution elevation (1/3&amp;quot;) data interpolated to the model grid.&lt;br /&gt;
File:hgt_m.png|The low resolution elevation data (30&amp;quot;) data interpolated to the atmospheric grid&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Here, we have visualized the fire grid variables, &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, as well as the &lt;br /&gt;
variable &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt;, which is the elevation data used by the atmospheric model.  We can compare&lt;br /&gt;
&amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt; to verify that our data conversion process worked.  The colormaps of these&lt;br /&gt;
two pictures have been aligned, so that we can make a quick visual check.  As we see, the two images do&lt;br /&gt;
have a similar structure and magnitude, but they do seem to suffer some misalignment.  Given that &lt;br /&gt;
the data came from two different sources, in two different projections, the error is relatively minor.  &lt;br /&gt;
Because WPS converts between projections in single precision, by default, there is likely a significant &lt;br /&gt;
issue with floating point error.  We may, in the future, consider making some changes so that this conversion is done in double precision.&lt;br /&gt;
&lt;br /&gt;
=Obtaining atmospheric data=&lt;br /&gt;
&lt;br /&gt;
There are a number of datasets available to initialize a WRF real run.  The &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/download/free_data.html WRF users page] lists&lt;br /&gt;
a few.  One challenge in running a fire simulation is finding a dataset of &lt;br /&gt;
sufficient resolution.  One (relatively) high resolution data source is the&lt;br /&gt;
North American Regional Reanalysis (NARR).  This is still only 32km resolution, so&lt;br /&gt;
no small scale weather patterns will appear in our simulation.  In general, we &lt;br /&gt;
will want to run a series of nested domains in order to catch some small scale weather&lt;br /&gt;
features; however, we will proceed with a single domain example.&lt;br /&gt;
&lt;br /&gt;
The NARR datasets are available after 3 months at the following website, &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/ http://nomads.ncdc.noaa.gov/data/narr/].&lt;br /&gt;
We will browse to the [http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/ directory] &lt;br /&gt;
containing the data for August 28, 2005. Our simulation runs from the hours 12-15 on this &lt;br /&gt;
day, so we will download the grib files for hours &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1200_000.grb 12] and &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1500_000.grb 15].&lt;br /&gt;
You can get these files also from here, [[File:narr-a_221_20050828_12-15.tgz]]. &lt;br /&gt;
&lt;br /&gt;
=Running ungrib=&lt;br /&gt;
&lt;br /&gt;
With the grib files downloaded, we need to link them into the WPS directory using the script&lt;br /&gt;
&amp;lt;tt&amp;gt;link_grib.csh&amp;lt;/tt&amp;gt;.  This script takes as arguments all of the grib files that are needed &lt;br /&gt;
for the simulation.  In this case, we can run the following command in the WPS directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./link_grib.csh &amp;lt;path to&amp;gt;/*.grb&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Substitute &amp;lt;path to&amp;gt; with the directory in which you have saved the grib files.  This command&lt;br /&gt;
creates a series of symbolic links with a predetermined naming sequence to all of the grib files&lt;br /&gt;
you pass as arguments.  You should now have two new soft links named &amp;lt;tt&amp;gt;GRIBFILE.AAA&amp;lt;/tt&amp;gt; and &lt;br /&gt;
&amp;lt;tt&amp;gt;GRIBFILE.AAB&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With the proper links in place, we need to tell ungrib what they contain.  This is done by copying a variable table into the main WPS directory.  Several variable tables are distributed with WPS which &lt;br /&gt;
describe common datasets.  You can find these in the directory &amp;lt;tt&amp;gt;WPS/ungrib/Variable_Tables&amp;lt;/tt&amp;gt;.&lt;br /&gt;
In particular, the file which corresponds to the NARR grib files is called &amp;lt;tt&amp;gt;Vtable.NARR&amp;lt;/tt&amp;gt;, so &lt;br /&gt;
we issue the following command to copy it into the current directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp ungrib/Variable_Tables/Vtable.NARR Vtable&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We are now ready to run the ungrib executable.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./ungrib.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create two files in the current directory named &amp;lt;tt&amp;gt;FILE:2005-08-28_12&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FILE:2005-08-28_15&amp;lt;/tt&amp;gt;.  You can download these files here, [[File:ungrib_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running metgrid=&lt;br /&gt;
&lt;br /&gt;
Metgrid will take the files created by ungrib and geogrid and combine them into a set of files.  At this point, all we need to do is run it.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./metgrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates two files named &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_12:00:00.nc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_15:00:00.nc&amp;lt;/tt&amp;gt;, which you can download here, [[File:metgrid_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running wrf=&lt;br /&gt;
&lt;br /&gt;
We are now finished with all steps involving WPS.  All we need to do is copy over the metgrid output&lt;br /&gt;
files over to our WRF real run directory at &amp;lt;tt&amp;gt;WRFV3/test/em_real&amp;lt;/tt&amp;gt; and configure our WRF namelist.&lt;br /&gt;
We will need to be sure that the domain description in &amp;lt;tt&amp;gt;namelist.input&amp;lt;/tt&amp;gt; matches that of &lt;br /&gt;
the &amp;lt;tt&amp;gt;namelist.wps&amp;lt;/tt&amp;gt; we created previously, otherwise WRF will refuse to run.  Pay particular attention&lt;br /&gt;
to the start/stop times and the grid sizes.  The fire ignition parameters are configured&lt;br /&gt;
in the same way as for the ideal case.  Relevant portion of the namelist we will use are given below.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt; &amp;amp;time_control&lt;br /&gt;
 run_days                            = 0,&lt;br /&gt;
 run_hours                           = 0,&lt;br /&gt;
 run_minutes                         = 2,&lt;br /&gt;
 run_seconds                         = 0,&lt;br /&gt;
 start_year                          = 2005,&lt;br /&gt;
 start_month                         = 08,&lt;br /&gt;
 start_day                           = 28,&lt;br /&gt;
 start_hour                          = 12,&lt;br /&gt;
 start_minute                        = 00,&lt;br /&gt;
 start_second                        = 00,&lt;br /&gt;
 end_year                            = 2005,&lt;br /&gt;
 end_month                           = 08,&lt;br /&gt;
 end_day                             = 28,&lt;br /&gt;
 end_hour                            = 15,&lt;br /&gt;
 end_minute                          = 00,&lt;br /&gt;
 end_second                          = 00,&lt;br /&gt;
 interval_seconds                    = 10800&lt;br /&gt;
 input_from_file                     = .true.,&lt;br /&gt;
 history_interval_s                  = 30,&lt;br /&gt;
 frames_per_outfile                  = 1000,&lt;br /&gt;
 restart                             = .false.,&lt;br /&gt;
 restart_interval                    = 1,&lt;br /&gt;
 io_form_history                     = 2&lt;br /&gt;
 io_form_restart                     = 2&lt;br /&gt;
 io_form_input                       = 2&lt;br /&gt;
 io_form_boundary                    = 2&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;domains&lt;br /&gt;
 time_step                           = 0,&lt;br /&gt;
 time_step_fract_num                 = 5,&lt;br /&gt;
 time_step_fract_den                 = 10,&lt;br /&gt;
 max_dom                             = 1,&lt;br /&gt;
 s_we                                = 1,&lt;br /&gt;
 e_we                                = 43,&lt;br /&gt;
 s_sn                                = 1,&lt;br /&gt;
 e_sn                                = 43,&lt;br /&gt;
 s_vert                              = 1,&lt;br /&gt;
 e_vert                              = 41,&lt;br /&gt;
 num_metgrid_levels                  = 30&lt;br /&gt;
 dx                                  = 60,&lt;br /&gt;
 dy                                  = 60,&lt;br /&gt;
 grid_id                             = 1,&lt;br /&gt;
 parent_id                           = 0,&lt;br /&gt;
 i_parent_start                      = 0,&lt;br /&gt;
 j_parent_start                      = 0,&lt;br /&gt;
 parent_grid_ratio                   = 1,&lt;br /&gt;
 parent_time_step_ratio              = 1,&lt;br /&gt;
 feedback                            = 1,&lt;br /&gt;
 smooth_option                       = 0&lt;br /&gt;
 sr_x                                = 10,&lt;br /&gt;
 sr_y                                = 10,&lt;br /&gt;
 sfcp_to_sfcp                        = .true.,&lt;br /&gt;
 p_top_requested                     = 10000&lt;br /&gt;
 /&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;bdy_control&lt;br /&gt;
 spec_bdy_width                      = 5,&lt;br /&gt;
 spec_zone                           = 1,&lt;br /&gt;
 relax_zone                          = 4,&lt;br /&gt;
 specified                           = .true.,&lt;br /&gt;
 periodic_x                          = .false.,&lt;br /&gt;
 symmetric_xs                        = .false.,&lt;br /&gt;
 symmetric_xe                        = .false.,&lt;br /&gt;
 open_xs                             = .false.,&lt;br /&gt;
 open_xe                             = .false.,&lt;br /&gt;
 periodic_y                          = .false.,&lt;br /&gt;
 symmetric_ys                        = .false.,&lt;br /&gt;
 symmetric_ye                        = .false.,&lt;br /&gt;
 open_ys                             = .false.,&lt;br /&gt;
 open_ye                             = .false.,&lt;br /&gt;
 nested                              = .false.,&lt;br /&gt;
 /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/thu8KDZF here].&lt;br /&gt;
&lt;br /&gt;
Once the namelist is properly configured we run the WRF real preprocessor.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./real.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates the initial and boundary files for the WRF simulation and fills all missing fields&lt;br /&gt;
from the grib data with reasonable defaults.  The files that it produces are &amp;lt;tt&amp;gt;wrfbdy_d01&amp;lt;/tt&amp;gt;&lt;br /&gt;
and &amp;lt;tt&amp;gt;wrfinput_d01&amp;lt;/tt&amp;gt;, which can be downloaded here [[File:wrf_real_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
Finally, we run the simulation.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./wrf.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The history file for this example can be downloaded here, [[File:wrf_real_history.tgz]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Data]]&lt;br /&gt;
[[Category:Howtos|Run WRF-Fire with real data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3031</id>
		<title>How to run WRF-SFIRE with real data</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3031"/>
		<updated>2016-11-07T20:22:26Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Downloading high resolution elevation data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
Running WRF-Fire with real data is a process very similar to running WRF with real data for weather simulations.&lt;br /&gt;
The [http://www.mmm.ucar.edu/wrf/users WRF users page] has many &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/contents.html documents] and &lt;br /&gt;
[http://www2.mmm.ucar.edu/wrf/users/supports/tutorial.html tutorials] outlining this process.  The purpose&lt;br /&gt;
of this page is to provide a tutorial for using real data with WRF-Fire starting from scratch.  We begin with a quick outline of the&lt;br /&gt;
steps involved including links to the output of each step.  The user can use these linked files to start from any step or to verify &lt;br /&gt;
their own results.  Due to platform and compiler differences your output might differ slightly from those provided.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This page refers to data sources for the USA only. For other countries, you will need to make appropriate modifications yourself.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Outline=&lt;br /&gt;
&lt;br /&gt;
# [[How_to_get_WRF-Fire|Obtain WRF-Fire source code]].&lt;br /&gt;
# [[How_to_compile_WRF-Fire|Compile target em_real]].&lt;br /&gt;
# [[#Compiling WPS|Compile WPS]].&lt;br /&gt;
# [[#Configuring_the_domain|Configure your domain]].&lt;br /&gt;
# [[#Obtaining data for geogrid|Download geogrid datasets]].&lt;br /&gt;
# [[#Converting fire data|Convert fire data to geogrid format]].&lt;br /&gt;
# [[#Running geogrid|Run the geogrid executable]].&lt;br /&gt;
# [[#Obtaining atmospheric data|Download atmospheric data]].&lt;br /&gt;
# [[#Running ungrib|Run the ungrib executable]].&lt;br /&gt;
# [[#Running metgrid|Run the metgrid executable]].&lt;br /&gt;
# [[#Running wrf|Run real.exe and wrf.exe]].&lt;br /&gt;
&lt;br /&gt;
=Compiling WPS=&lt;br /&gt;
&lt;br /&gt;
After you have compiled WRF, you then need to go into the subdirectory &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; and run &lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;.  This will present you with a list of configuration options similar to those given by WRF.&lt;br /&gt;
You will need to chose one with the same compiler that you used to compile WRF.  Generally, it is unnecessary to compile WPS with parallel support.&lt;br /&gt;
GRIB2 support is only necessary if your atmospheric data source requires it.  Once you have chosen a configuration, you can compile with&lt;br /&gt;
&amp;lt;pre&amp;gt;./compile &amp;gt;&amp;amp; compile.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to check for errors in the log file generated.&lt;br /&gt;
&lt;br /&gt;
=Configuring the domain=&lt;br /&gt;
&lt;br /&gt;
The physical domain is configured in the geogrid section of namelist.wps in the WPS directory.  In this section, you should define&lt;br /&gt;
the geographic projection with &amp;lt;tt&amp;gt;map_proj&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat1&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat2&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;stand_lon&amp;lt;/tt&amp;gt;.  Available projections&lt;br /&gt;
include &amp;lt;tt&amp;gt;&#039;lambert&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;polar&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;mercator&#039;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;&#039;lat-lon&#039;&amp;lt;/tt&amp;gt;.  The lower left corner of the domain is located at&lt;br /&gt;
&amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; longitude and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; latitude.  The computational grid is defined by &amp;lt;tt&amp;gt;e_we/e_sn&amp;lt;/tt&amp;gt;, the number of (staggered) grid&lt;br /&gt;
points in the west-east/south-north direction, and the grid resolution is defined by &amp;lt;tt&amp;gt;dx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;dy&amp;lt;/tt&amp;gt; in meters. &lt;br /&gt;
We also specify a path to where we will put the static dataset that geogrid will read from, and we specify the highest resolution (30 arc minutes) that this &lt;br /&gt;
data is released in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;geogrid&lt;br /&gt;
 e_we              =  43,&lt;br /&gt;
 e_sn              =  43,&lt;br /&gt;
 geog_data_res     = &#039;30s&#039;,&lt;br /&gt;
 dx = 60,&lt;br /&gt;
 dy = 60,&lt;br /&gt;
 map_proj  = &#039;lambert&#039;,&lt;br /&gt;
 ref_lat   =  39.70537,&lt;br /&gt;
 ref_lon   = -107.2907,&lt;br /&gt;
 truelat1  =  39.338,&lt;br /&gt;
 truelat2  =  39.338,&lt;br /&gt;
 stand_lon = -106.807,&lt;br /&gt;
 geog_data_path = &#039;../../wrfdata/geog&#039;&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The share section of the WPS namelist defines the fire subgrid refinement in &amp;lt;tt&amp;gt;subgrid_ratio_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;subgrid_ratio_y&amp;lt;/tt&amp;gt;.  This means &lt;br /&gt;
that the fire grid will be a 10 time refined grid at a resolution of 6 meters by 6 meters.  The &amp;lt;tt&amp;gt;start_date&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;end_data&amp;lt;/tt&amp;gt; parameters specify&lt;br /&gt;
the time window that the simulation will be run in.  Atmospheric data must be available at both temporal boundaries.  The &amp;lt;tt&amp;gt;interval_seconds&amp;lt;/tt&amp;gt; &lt;br /&gt;
parameter tells WPS the number of seconds between each atmospheric dataset.  For our example, we&lt;br /&gt;
will be using the NARR dataset which is released daily every three hours or 10,800 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;share&lt;br /&gt;
 wrf_core = &#039;ARW&#039;,&lt;br /&gt;
 max_dom = 1,&lt;br /&gt;
 start_date = &#039;2005-08-28_12:00:00&#039;,&lt;br /&gt;
 end_date   = &#039;2005-08-28_15:00:00&#039;,&lt;br /&gt;
 interval_seconds = 10800,&lt;br /&gt;
 io_form_geogrid = 2,&lt;br /&gt;
 subgrid_ratio_x = 10,&lt;br /&gt;
 subgrid_ratio_y = 10,&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/2u3YXkHS here].&lt;br /&gt;
&lt;br /&gt;
=Obtaining data for geogrid=&lt;br /&gt;
&lt;br /&gt;
First you must download and uncompress the standard [http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz geogrid input data].&lt;br /&gt;
This is a 429 MB compressed tarball that uncompresses to around 11 GB.  It contains all of the static data that geogrid needs for a standard&lt;br /&gt;
weather simulation; however, for a WRF-Fire simulation we need to fill in two additional fields that are too big to release in a single download for the&lt;br /&gt;
whole globe.  We first need to determine the approximate latitude and longitude bounds for our domain.&lt;br /&gt;
&lt;br /&gt;
We know the coordinates in the lower left corner from the &amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; parameters of the namelist.  We can estimate the&lt;br /&gt;
coordinates of the upper right corner by the approximate ratio 9e-6 degrees per meter.  So, the upper right corner of our domain is at approximately&lt;br /&gt;
-107.2675 longitude and 39.7286 latitude.  For the purposes of downloading data, we will expand this region to the range&lt;br /&gt;
-107.35 through -107.2 longitude and 39.6 through 39.75 latitude.&lt;br /&gt;
&lt;br /&gt;
==Downloading fuel category data==&lt;br /&gt;
&lt;br /&gt;
For the United States, Anderson 13 fuel category data is available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website.  Upon opening the national map, &lt;br /&gt;
click roughly on your are of interest, the map will zoom in, you will see a menu on the top of the screen.  Click on the earth icon, that should display a drop down menu, and select option &#039;Download Data&#039;&lt;br /&gt;
[[File:Landfire1.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
This will open a new window on the right. Click on &#039;x y&#039; icon that will open a form that lets you key in the the longitude and latitude range of your selection.  In this window, we will input the coordinates computed earlier, and below we will select &#039;LF_2014 (LF_140)&#039;, then &#039;Fuel&#039;, and &#039;us_140 13 Fire Behavior Fuel Models-Anderson, and click &#039;Add Area&#039; button.&lt;br /&gt;
[[File:landfire2.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window, click on &amp;quot;modify data request&amp;quot;.  This window lists all of the available data products for the selected region.  You want to check the box &lt;br /&gt;
next to &amp;quot;US_140 13 Fire Behavior Fuel Models-Anderson&amp;quot; and change the data format from &amp;quot;ArcGRID_with_attribs&amp;quot; to &amp;quot;GeoTIFF_with _attribs&amp;quot;. At the bottom make sure &amp;quot;Maximum size (MB) per piece:&amp;quot; is set to 250. Then go to the bottom of the page and click &amp;quot;Save Changes&amp;quot;.&lt;br /&gt;
[[File:landfire3.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Finally, click &amp;quot;Download&amp;quot;.  The file will be a compressed archive containing, among others, a GeoTIFF file.  The name of the file will be different for each request, &lt;br /&gt;
but in this example we have &amp;lt;tt&amp;gt;lf02588871.zip&amp;lt;/tt&amp;gt; containing the GeoTIFF file &amp;lt;tt&amp;gt;lf02588871.tif&amp;lt;/tt&amp;gt;, which can be found here, [[File:lf02588871.tif]].&lt;br /&gt;
&lt;br /&gt;
==Downloading high resolution elevation data==&lt;br /&gt;
&lt;br /&gt;
For the United States, elevation data is also available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website. Repeat the steps described above for downloading the fuel data, but instead of selecting &amp;quot;LF2014 (LF_140) US_140 13 Fire Behavior Models-Anderson, this time select: &amp;quot;Topographic&amp;quot; and &amp;quot;us Elevation&amp;quot;. &lt;br /&gt;
[[File:Landfire4.png]]&lt;br /&gt;
Again, we key in the coordinates determined before and click &amp;quot;Add Area&amp;quot;. &lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window click again &amp;quot;Modify Data Request&amp;quot;,  make sure only us_Elevation is selected, change format to &amp;quot;Geotiff&amp;quot; and click &amp;quot;Save Changes &amp;amp; Return to Summary&amp;quot;&lt;br /&gt;
[[File:Landfire5.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window you should be able to click &amp;quot;Download&amp;quot; in order to download the GeoTIFF  file containing topography. This sample file can be downloaded from here:&lt;br /&gt;
[[File:09159064.tif]]&lt;br /&gt;
&lt;br /&gt;
=Converting fuel data=&lt;br /&gt;
&lt;br /&gt;
This section describes converting data from geotiff to geogrid format.  Alternatively, you can use the version of geogrid from our repository and read the geotiff file directly.  For details see [[WPS_with_GeoTIFF_support]].&lt;br /&gt;
&lt;br /&gt;
In order for geogrid to be able to read this data, we need to convert it into an intermediate format.  We will be using a utility program&lt;br /&gt;
released with autoWPS to accomplish this.  For information on how to obtain and compile this tool, see [[How_to_convert_data_for_Geogrid]].  We will place the &amp;lt;tt&amp;gt;convert_geotiff.x&amp;lt;/tt&amp;gt; binary and the GeoTIFF&lt;br /&gt;
data files in the main WPS directory.&lt;br /&gt;
To convert the fuel category data, we will create new directories inside the WPS directory called &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt;.  Inside the &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; directory, we&lt;br /&gt;
issue the following command to convert the fuel category data.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -c 13 -w 1 -u &amp;quot;fuel category&amp;quot; -d &amp;quot;Anderson 13 fire behavior categories&amp;quot; ../lf02588871.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The resulting &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file created as follows.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = albers_nad83&lt;br /&gt;
truelat1 = 29.500000&lt;br /&gt;
truelat2 = 45.500000&lt;br /&gt;
stdlon = -96.000000&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 606&lt;br /&gt;
known_lat = 39.747818&lt;br /&gt;
known_lon = -107.373398&lt;br /&gt;
dx = 3.000000e+01&lt;br /&gt;
dy = 3.000000e+01&lt;br /&gt;
type = categorical&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;fuel category&amp;quot;&lt;br /&gt;
description = &amp;quot;Anderson 13 fire behavior categories&amp;quot;&lt;br /&gt;
wordsize = 1&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
category_min = 1&lt;br /&gt;
category_max = 14&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We have chosen to set the word size to 1 byte because it can represent 256 categories, plenty for&lt;br /&gt;
this purpose.&lt;br /&gt;
Notice that the program has changed the number of categories to 14 and uses the last category&lt;br /&gt;
to indicate that the source data was out of the range 1-13.  For the fuel category data, this represents&lt;br /&gt;
that there is no fuel present, due to a lake, river, road, etc.  &lt;br /&gt;
&lt;br /&gt;
We can check that the projection information entered into the index file is correct, by running the &lt;br /&gt;
&amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; binary that is installed with libGeoTIFF.  In this case, &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; tells us &lt;br /&gt;
that the source file contains the following projection parameters.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Projection Method: CT_AlbersEqualArea&lt;br /&gt;
   ProjStdParallel1GeoKey: 29.500000 ( 29d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjStdParallel2GeoKey: 45.500000 ( 45d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLatGeoKey: 23.000000 ( 23d 0&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLongGeoKey: -96.000000 ( 96d 0&#039; 0.00&amp;quot;W)&lt;br /&gt;
   ProjFalseEastingGeoKey: 0.000000 m&lt;br /&gt;
   ProjFalseNorthingGeoKey: 0.000000 m&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
Projection Linear Units: 9001/metre (1.000000m)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    ( -963525.000, 1916445.000)  (-107.3734004,39.7478163)&lt;br /&gt;
Lower Left    ( -963525.000, 1898265.000)  (-107.3478974,39.5867431)&lt;br /&gt;
Upper Right   ( -948885.000, 1916445.000)  (-107.2021990,39.7632976)&lt;br /&gt;
Lower Right   ( -948885.000, 1898265.000)  (-107.1770727,39.6021889)&lt;br /&gt;
Center        ( -956205.000, 1907355.000)  (-107.2751374,39.6750401)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can see that the conversion detected the projection correctly.  The small difference in the&lt;br /&gt;
coordinates of the upper left corner reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; and that in the index file is&lt;br /&gt;
due to floating point error and is much less than the resolution of the data. &lt;br /&gt;
&lt;br /&gt;
Finally, we go to the &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt; directory to convert the &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; variable.  In this case,&lt;br /&gt;
we issue the following command.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -u meters -d &#039;National Elevation Dataset 1/3 arcsecond resolution&#039; ../09159064.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This produces the following &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = regular_ll&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 1621&lt;br /&gt;
known_lat = 39.750092&lt;br /&gt;
known_lon = -107.350090&lt;br /&gt;
dx = 9.259259e-05&lt;br /&gt;
dy = 9.259259e-05&lt;br /&gt;
type = continuous&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;meters&amp;quot;&lt;br /&gt;
description = &amp;quot;National Elevation Dataset 1/3 arcsecond resolution&amp;quot;&lt;br /&gt;
wordsize = 2&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Here we have used the default word size of 2 bytes and a scale factor of 1.0, &lt;br /&gt;
which can represent any elevation in the world&lt;br /&gt;
with 1 meter accuracy, which is approximately the accuracy of the source data.&lt;br /&gt;
&lt;br /&gt;
Again, we compare the projection parameters in the index file with that reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt;&lt;br /&gt;
and find that the conversion was correct.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;      Keyed_Information:&lt;br /&gt;
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic&lt;br /&gt;
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea&lt;br /&gt;
      GeographicTypeGeoKey (Short,1): GCS_NAD83&lt;br /&gt;
      GeogCitationGeoKey (Ascii,6): &amp;quot;NAD83&amp;quot;&lt;br /&gt;
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree&lt;br /&gt;
      End_Of_Keys.&lt;br /&gt;
   End_Of_Geotiff.&lt;br /&gt;
&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    (-107.3500926,39.7500926)&lt;br /&gt;
Lower Left    (-107.3500926,39.6000000)&lt;br /&gt;
Upper Right   (-107.2000000,39.7500926)&lt;br /&gt;
Lower Right   (-107.2000000,39.6000000)&lt;br /&gt;
Center        (-107.2750463,39.6750463)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the converted data can be found here, [[File:Landfire_data.tgz]], and here, [[File:Ned_data.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running geogrid=&lt;br /&gt;
&lt;br /&gt;
The geogrid binary will create a netcdf file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt;.  This file will contain all&lt;br /&gt;
of the static data necessary to run your simulation.  Before we can run the binary, however, we must tell&lt;br /&gt;
geogrid what data needs to be in these files, where it can find them, and what kind of preprocessing we wnat done.  This information is contained in a run-time configuration file called &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt;, which is&lt;br /&gt;
located in the &amp;lt;tt&amp;gt;geogrid&amp;lt;/tt&amp;gt; subdirectory.  The file that is released with WPS contains reasonable defaults&lt;br /&gt;
for the variables defined on the atmospheric grid, but we need to add two additional sections for the two fire&lt;br /&gt;
grid data sets that we have just created.  We will append the following sections to the file &lt;br /&gt;
&amp;lt;tt&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;===============================&lt;br /&gt;
name=NFUEL_CAT&lt;br /&gt;
        priority=1&lt;br /&gt;
	dest_type=categorical&lt;br /&gt;
	dominant_only=NFUEL_CAT&lt;br /&gt;
	z_dim_name=fuel_cat&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
	interp_option=default:nearest_neighbor&lt;br /&gt;
	abs_path=./landfire_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
name=ZSF&lt;br /&gt;
        priority = 1&lt;br /&gt;
        dest_type = continuous&lt;br /&gt;
        df_dx=DZDXF&lt;br /&gt;
        df_dy=DZDYF&lt;br /&gt;
        smooth_option = smth-desmth_special; smooth_passes=1&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
        interp_option = default:average_gcell(4.0)+four_pt+average_4pt&lt;br /&gt;
	abs_path=./ned_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
For &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt;, we will use simple nearest neighbor interpolation, while for &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, we will&lt;br /&gt;
use bilinear interpolation with smoothing.  Other configurations are possible.  See the [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/users_guide_chap3.htm#_Description_of_GEOGRID.TBL WPS users guide] for further information.  The full table used can be found [http://pastebin.com/kdymq5ff here].&lt;br /&gt;
&lt;br /&gt;
Once we make these changes to the &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt; file, and ensure that all of the directories are in the correct place (including the default geogrid dataset at &amp;lt;tt&amp;gt;../../wrfdata&amp;lt;/tt&amp;gt;), we can execute the geogrid binary.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./geogrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create a file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt; in the current directory, which can be found here,&lt;br /&gt;
[[File:geo_em.d01.nc.gz]].  The contents of this file can be viewed using your favorite NetCDF viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;geo_em.d01.nc&amp;quot; widths=&amp;quot;225px&amp;quot; heights=&amp;quot;225px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:nfuel_cat.png|The fuel category data interpolated to the model grid.The&lt;br /&gt;
File:zsf.png|The high resolution elevation (1/3&amp;quot;) data interpolated to the model grid.&lt;br /&gt;
File:hgt_m.png|The low resolution elevation data (30&amp;quot;) data interpolated to the atmospheric grid&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Here, we have visualized the fire grid variables, &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, as well as the &lt;br /&gt;
variable &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt;, which is the elevation data used by the atmospheric model.  We can compare&lt;br /&gt;
&amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt; to verify that our data conversion process worked.  The colormaps of these&lt;br /&gt;
two pictures have been aligned, so that we can make a quick visual check.  As we see, the two images do&lt;br /&gt;
have a similar structure and magnitude, but they do seem to suffer some misalignment.  Given that &lt;br /&gt;
the data came from two different sources, in two different projections, the error is relatively minor.  &lt;br /&gt;
Because WPS converts between projections in single precision, by default, there is likely a significant &lt;br /&gt;
issue with floating point error.  We may, in the future, consider making some changes so that this conversion is done in double precision.&lt;br /&gt;
&lt;br /&gt;
=Obtaining atmospheric data=&lt;br /&gt;
&lt;br /&gt;
There are a number of datasets available to initialize a WRF real run.  The &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/download/free_data.html WRF users page] lists&lt;br /&gt;
a few.  One challenge in running a fire simulation is finding a dataset of &lt;br /&gt;
sufficient resolution.  One (relatively) high resolution data source is the&lt;br /&gt;
North American Regional Reanalysis (NARR).  This is still only 32km resolution, so&lt;br /&gt;
no small scale weather patterns will appear in our simulation.  In general, we &lt;br /&gt;
will want to run a series of nested domains in order to catch some small scale weather&lt;br /&gt;
features; however, we will proceed with a single domain example.&lt;br /&gt;
&lt;br /&gt;
The NARR datasets are available after 3 months at the following website, &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/ http://nomads.ncdc.noaa.gov/data/narr/].&lt;br /&gt;
We will browse to the [http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/ directory] &lt;br /&gt;
containing the data for August 28, 2005. Our simulation runs from the hours 12-15 on this &lt;br /&gt;
day, so we will download the grib files for hours &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1200_000.grb 12] and &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1500_000.grb 15].&lt;br /&gt;
You can get these files also from here, [[File:narr-a_221_20050828_12-15.tgz]]. &lt;br /&gt;
&lt;br /&gt;
=Running ungrib=&lt;br /&gt;
&lt;br /&gt;
With the grib files downloaded, we need to link them into the WPS directory using the script&lt;br /&gt;
&amp;lt;tt&amp;gt;link_grib.csh&amp;lt;/tt&amp;gt;.  This script takes as arguments all of the grib files that are needed &lt;br /&gt;
for the simulation.  In this case, we can run the following command in the WPS directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./link_grib.csh &amp;lt;path to&amp;gt;/*.grb&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Substitute &amp;lt;path to&amp;gt; with the directory in which you have saved the grib files.  This command&lt;br /&gt;
creates a series of symbolic links with a predetermined naming sequence to all of the grib files&lt;br /&gt;
you pass as arguments.  You should now have two new soft links named &amp;lt;tt&amp;gt;GRIBFILE.AAA&amp;lt;/tt&amp;gt; and &lt;br /&gt;
&amp;lt;tt&amp;gt;GRIBFILE.AAB&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With the proper links in place, we need to tell ungrib what they contain.  This is done by copying a variable table into the main WPS directory.  Several variable tables are distributed with WPS which &lt;br /&gt;
describe common datasets.  You can find these in the directory &amp;lt;tt&amp;gt;WPS/ungrib/Variable_Tables&amp;lt;/tt&amp;gt;.&lt;br /&gt;
In particular, the file which corresponds to the NARR grib files is called &amp;lt;tt&amp;gt;Vtable.NARR&amp;lt;/tt&amp;gt;, so &lt;br /&gt;
we issue the following command to copy it into the current directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp ungrib/Variable_Tables/Vtable.NARR Vtable&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We are now ready to run the ungrib executable.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./ungrib.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create two files in the current directory named &amp;lt;tt&amp;gt;FILE:2005-08-28_12&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FILE:2005-08-28_15&amp;lt;/tt&amp;gt;.  You can download these files here, [[File:ungrib_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running metgrid=&lt;br /&gt;
&lt;br /&gt;
Metgrid will take the files created by ungrib and geogrid and combine them into a set of files.  At this point, all we need to do is run it.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./metgrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates two files named &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_12:00:00.nc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_15:00:00.nc&amp;lt;/tt&amp;gt;, which you can download here, [[File:metgrid_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running wrf=&lt;br /&gt;
&lt;br /&gt;
We are now finished with all steps involving WPS.  All we need to do is copy over the metgrid output&lt;br /&gt;
files over to our WRF real run directory at &amp;lt;tt&amp;gt;WRFV3/test/em_real&amp;lt;/tt&amp;gt; and configure our WRF namelist.&lt;br /&gt;
We will need to be sure that the domain description in &amp;lt;tt&amp;gt;namelist.input&amp;lt;/tt&amp;gt; matches that of &lt;br /&gt;
the &amp;lt;tt&amp;gt;namelist.wps&amp;lt;/tt&amp;gt; we created previously, otherwise WRF will refuse to run.  Pay particular attention&lt;br /&gt;
to the start/stop times and the grid sizes.  The fire ignition parameters are configured&lt;br /&gt;
in the same way as for the ideal case.  Relevant portion of the namelist we will use are given below.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt; &amp;amp;time_control&lt;br /&gt;
 run_days                            = 0,&lt;br /&gt;
 run_hours                           = 0,&lt;br /&gt;
 run_minutes                         = 2,&lt;br /&gt;
 run_seconds                         = 0,&lt;br /&gt;
 start_year                          = 2005,&lt;br /&gt;
 start_month                         = 08,&lt;br /&gt;
 start_day                           = 28,&lt;br /&gt;
 start_hour                          = 12,&lt;br /&gt;
 start_minute                        = 00,&lt;br /&gt;
 start_second                        = 00,&lt;br /&gt;
 end_year                            = 2005,&lt;br /&gt;
 end_month                           = 08,&lt;br /&gt;
 end_day                             = 28,&lt;br /&gt;
 end_hour                            = 15,&lt;br /&gt;
 end_minute                          = 00,&lt;br /&gt;
 end_second                          = 00,&lt;br /&gt;
 interval_seconds                    = 10800&lt;br /&gt;
 input_from_file                     = .true.,&lt;br /&gt;
 history_interval_s                  = 30,&lt;br /&gt;
 frames_per_outfile                  = 1000,&lt;br /&gt;
 restart                             = .false.,&lt;br /&gt;
 restart_interval                    = 1,&lt;br /&gt;
 io_form_history                     = 2&lt;br /&gt;
 io_form_restart                     = 2&lt;br /&gt;
 io_form_input                       = 2&lt;br /&gt;
 io_form_boundary                    = 2&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;domains&lt;br /&gt;
 time_step                           = 0,&lt;br /&gt;
 time_step_fract_num                 = 5,&lt;br /&gt;
 time_step_fract_den                 = 10,&lt;br /&gt;
 max_dom                             = 1,&lt;br /&gt;
 s_we                                = 1,&lt;br /&gt;
 e_we                                = 43,&lt;br /&gt;
 s_sn                                = 1,&lt;br /&gt;
 e_sn                                = 43,&lt;br /&gt;
 s_vert                              = 1,&lt;br /&gt;
 e_vert                              = 41,&lt;br /&gt;
 num_metgrid_levels                  = 30&lt;br /&gt;
 dx                                  = 60,&lt;br /&gt;
 dy                                  = 60,&lt;br /&gt;
 grid_id                             = 1,&lt;br /&gt;
 parent_id                           = 0,&lt;br /&gt;
 i_parent_start                      = 0,&lt;br /&gt;
 j_parent_start                      = 0,&lt;br /&gt;
 parent_grid_ratio                   = 1,&lt;br /&gt;
 parent_time_step_ratio              = 1,&lt;br /&gt;
 feedback                            = 1,&lt;br /&gt;
 smooth_option                       = 0&lt;br /&gt;
 sr_x                                = 10,&lt;br /&gt;
 sr_y                                = 10,&lt;br /&gt;
 sfcp_to_sfcp                        = .true.,&lt;br /&gt;
 p_top_requested                     = 10000&lt;br /&gt;
 /&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;bdy_control&lt;br /&gt;
 spec_bdy_width                      = 5,&lt;br /&gt;
 spec_zone                           = 1,&lt;br /&gt;
 relax_zone                          = 4,&lt;br /&gt;
 specified                           = .true.,&lt;br /&gt;
 periodic_x                          = .false.,&lt;br /&gt;
 symmetric_xs                        = .false.,&lt;br /&gt;
 symmetric_xe                        = .false.,&lt;br /&gt;
 open_xs                             = .false.,&lt;br /&gt;
 open_xe                             = .false.,&lt;br /&gt;
 periodic_y                          = .false.,&lt;br /&gt;
 symmetric_ys                        = .false.,&lt;br /&gt;
 symmetric_ye                        = .false.,&lt;br /&gt;
 open_ys                             = .false.,&lt;br /&gt;
 open_ye                             = .false.,&lt;br /&gt;
 nested                              = .false.,&lt;br /&gt;
 /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/thu8KDZF here].&lt;br /&gt;
&lt;br /&gt;
Once the namelist is properly configured we run the WRF real preprocessor.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./real.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates the initial and boundary files for the WRF simulation and fills all missing fields&lt;br /&gt;
from the grib data with reasonable defaults.  The files that it produces are &amp;lt;tt&amp;gt;wrfbdy_d01&amp;lt;/tt&amp;gt;&lt;br /&gt;
and &amp;lt;tt&amp;gt;wrfinput_d01&amp;lt;/tt&amp;gt;, which can be downloaded here [[File:wrf_real_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
Finally, we run the simulation.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./wrf.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The history file for this example can be downloaded here, [[File:wrf_real_history.tgz]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Data]]&lt;br /&gt;
[[Category:Howtos|Run WRF-Fire with real data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3030</id>
		<title>How to run WRF-SFIRE with real data</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3030"/>
		<updated>2016-11-07T20:21:46Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Downloading high resolution elevation data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
Running WRF-Fire with real data is a process very similar to running WRF with real data for weather simulations.&lt;br /&gt;
The [http://www.mmm.ucar.edu/wrf/users WRF users page] has many &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/contents.html documents] and &lt;br /&gt;
[http://www2.mmm.ucar.edu/wrf/users/supports/tutorial.html tutorials] outlining this process.  The purpose&lt;br /&gt;
of this page is to provide a tutorial for using real data with WRF-Fire starting from scratch.  We begin with a quick outline of the&lt;br /&gt;
steps involved including links to the output of each step.  The user can use these linked files to start from any step or to verify &lt;br /&gt;
their own results.  Due to platform and compiler differences your output might differ slightly from those provided.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This page refers to data sources for the USA only. For other countries, you will need to make appropriate modifications yourself.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Outline=&lt;br /&gt;
&lt;br /&gt;
# [[How_to_get_WRF-Fire|Obtain WRF-Fire source code]].&lt;br /&gt;
# [[How_to_compile_WRF-Fire|Compile target em_real]].&lt;br /&gt;
# [[#Compiling WPS|Compile WPS]].&lt;br /&gt;
# [[#Configuring_the_domain|Configure your domain]].&lt;br /&gt;
# [[#Obtaining data for geogrid|Download geogrid datasets]].&lt;br /&gt;
# [[#Converting fire data|Convert fire data to geogrid format]].&lt;br /&gt;
# [[#Running geogrid|Run the geogrid executable]].&lt;br /&gt;
# [[#Obtaining atmospheric data|Download atmospheric data]].&lt;br /&gt;
# [[#Running ungrib|Run the ungrib executable]].&lt;br /&gt;
# [[#Running metgrid|Run the metgrid executable]].&lt;br /&gt;
# [[#Running wrf|Run real.exe and wrf.exe]].&lt;br /&gt;
&lt;br /&gt;
=Compiling WPS=&lt;br /&gt;
&lt;br /&gt;
After you have compiled WRF, you then need to go into the subdirectory &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; and run &lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;.  This will present you with a list of configuration options similar to those given by WRF.&lt;br /&gt;
You will need to chose one with the same compiler that you used to compile WRF.  Generally, it is unnecessary to compile WPS with parallel support.&lt;br /&gt;
GRIB2 support is only necessary if your atmospheric data source requires it.  Once you have chosen a configuration, you can compile with&lt;br /&gt;
&amp;lt;pre&amp;gt;./compile &amp;gt;&amp;amp; compile.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to check for errors in the log file generated.&lt;br /&gt;
&lt;br /&gt;
=Configuring the domain=&lt;br /&gt;
&lt;br /&gt;
The physical domain is configured in the geogrid section of namelist.wps in the WPS directory.  In this section, you should define&lt;br /&gt;
the geographic projection with &amp;lt;tt&amp;gt;map_proj&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat1&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat2&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;stand_lon&amp;lt;/tt&amp;gt;.  Available projections&lt;br /&gt;
include &amp;lt;tt&amp;gt;&#039;lambert&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;polar&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;mercator&#039;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;&#039;lat-lon&#039;&amp;lt;/tt&amp;gt;.  The lower left corner of the domain is located at&lt;br /&gt;
&amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; longitude and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; latitude.  The computational grid is defined by &amp;lt;tt&amp;gt;e_we/e_sn&amp;lt;/tt&amp;gt;, the number of (staggered) grid&lt;br /&gt;
points in the west-east/south-north direction, and the grid resolution is defined by &amp;lt;tt&amp;gt;dx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;dy&amp;lt;/tt&amp;gt; in meters. &lt;br /&gt;
We also specify a path to where we will put the static dataset that geogrid will read from, and we specify the highest resolution (30 arc minutes) that this &lt;br /&gt;
data is released in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;geogrid&lt;br /&gt;
 e_we              =  43,&lt;br /&gt;
 e_sn              =  43,&lt;br /&gt;
 geog_data_res     = &#039;30s&#039;,&lt;br /&gt;
 dx = 60,&lt;br /&gt;
 dy = 60,&lt;br /&gt;
 map_proj  = &#039;lambert&#039;,&lt;br /&gt;
 ref_lat   =  39.70537,&lt;br /&gt;
 ref_lon   = -107.2907,&lt;br /&gt;
 truelat1  =  39.338,&lt;br /&gt;
 truelat2  =  39.338,&lt;br /&gt;
 stand_lon = -106.807,&lt;br /&gt;
 geog_data_path = &#039;../../wrfdata/geog&#039;&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The share section of the WPS namelist defines the fire subgrid refinement in &amp;lt;tt&amp;gt;subgrid_ratio_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;subgrid_ratio_y&amp;lt;/tt&amp;gt;.  This means &lt;br /&gt;
that the fire grid will be a 10 time refined grid at a resolution of 6 meters by 6 meters.  The &amp;lt;tt&amp;gt;start_date&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;end_data&amp;lt;/tt&amp;gt; parameters specify&lt;br /&gt;
the time window that the simulation will be run in.  Atmospheric data must be available at both temporal boundaries.  The &amp;lt;tt&amp;gt;interval_seconds&amp;lt;/tt&amp;gt; &lt;br /&gt;
parameter tells WPS the number of seconds between each atmospheric dataset.  For our example, we&lt;br /&gt;
will be using the NARR dataset which is released daily every three hours or 10,800 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;share&lt;br /&gt;
 wrf_core = &#039;ARW&#039;,&lt;br /&gt;
 max_dom = 1,&lt;br /&gt;
 start_date = &#039;2005-08-28_12:00:00&#039;,&lt;br /&gt;
 end_date   = &#039;2005-08-28_15:00:00&#039;,&lt;br /&gt;
 interval_seconds = 10800,&lt;br /&gt;
 io_form_geogrid = 2,&lt;br /&gt;
 subgrid_ratio_x = 10,&lt;br /&gt;
 subgrid_ratio_y = 10,&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/2u3YXkHS here].&lt;br /&gt;
&lt;br /&gt;
=Obtaining data for geogrid=&lt;br /&gt;
&lt;br /&gt;
First you must download and uncompress the standard [http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz geogrid input data].&lt;br /&gt;
This is a 429 MB compressed tarball that uncompresses to around 11 GB.  It contains all of the static data that geogrid needs for a standard&lt;br /&gt;
weather simulation; however, for a WRF-Fire simulation we need to fill in two additional fields that are too big to release in a single download for the&lt;br /&gt;
whole globe.  We first need to determine the approximate latitude and longitude bounds for our domain.&lt;br /&gt;
&lt;br /&gt;
We know the coordinates in the lower left corner from the &amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; parameters of the namelist.  We can estimate the&lt;br /&gt;
coordinates of the upper right corner by the approximate ratio 9e-6 degrees per meter.  So, the upper right corner of our domain is at approximately&lt;br /&gt;
-107.2675 longitude and 39.7286 latitude.  For the purposes of downloading data, we will expand this region to the range&lt;br /&gt;
-107.35 through -107.2 longitude and 39.6 through 39.75 latitude.&lt;br /&gt;
&lt;br /&gt;
==Downloading fuel category data==&lt;br /&gt;
&lt;br /&gt;
For the United States, Anderson 13 fuel category data is available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website.  Upon opening the national map, &lt;br /&gt;
click roughly on your are of interest, the map will zoom in, you will see a menu on the top of the screen.  Click on the earth icon, that should display a drop down menu, and select option &#039;Download Data&#039;&lt;br /&gt;
[[File:Landfire1.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
This will open a new window on the right. Click on &#039;x y&#039; icon that will open a form that lets you key in the the longitude and latitude range of your selection.  In this window, we will input the coordinates computed earlier, and below we will select &#039;LF_2014 (LF_140)&#039;, then &#039;Fuel&#039;, and &#039;us_140 13 Fire Behavior Fuel Models-Anderson, and click &#039;Add Area&#039; button.&lt;br /&gt;
[[File:landfire2.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window, click on &amp;quot;modify data request&amp;quot;.  This window lists all of the available data products for the selected region.  You want to check the box &lt;br /&gt;
next to &amp;quot;US_140 13 Fire Behavior Fuel Models-Anderson&amp;quot; and change the data format from &amp;quot;ArcGRID_with_attribs&amp;quot; to &amp;quot;GeoTIFF_with _attribs&amp;quot;. At the bottom make sure &amp;quot;Maximum size (MB) per piece:&amp;quot; is set to 250. Then go to the bottom of the page and click &amp;quot;Save Changes&amp;quot;.&lt;br /&gt;
[[File:landfire3.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Finally, click &amp;quot;Download&amp;quot;.  The file will be a compressed archive containing, among others, a GeoTIFF file.  The name of the file will be different for each request, &lt;br /&gt;
but in this example we have &amp;lt;tt&amp;gt;lf02588871.zip&amp;lt;/tt&amp;gt; containing the GeoTIFF file &amp;lt;tt&amp;gt;lf02588871.tif&amp;lt;/tt&amp;gt;, which can be found here, [[File:lf02588871.tif]].&lt;br /&gt;
&lt;br /&gt;
==Downloading high resolution elevation data==&lt;br /&gt;
&lt;br /&gt;
For the United States, elevation data is also available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website. Repeat the steps described above for downloading the fuel data, but instead of selecting &amp;quot;LF2014 (LF_140) US_140 13 Fire Behavior Models-Anderson, this time select: &amp;quot;Topographic&amp;quot; and &amp;quot;us Elevation&amp;quot;. &lt;br /&gt;
[[File:Landfire4.png]]&lt;br /&gt;
Again, we key in the coordinates determined before and click &amp;quot;Add Area&amp;quot;. &lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window click again &amp;quot;Modify Data Request&amp;quot;,  make sure only us_Elevation is selected, change format to &amp;quot;Geotiff&amp;quot; and click &amp;quot;Save Changes &amp;amp; Return to Summary&amp;quot;&lt;br /&gt;
[[File:Landfire5.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window you should be able to click &amp;quot;Download&amp;quot; in order to download the GeoTIFF  file containing topography. This sample file can be downloaded from here:&lt;br /&gt;
[[Media:09159064.tif]]&lt;br /&gt;
&lt;br /&gt;
=Converting fuel data=&lt;br /&gt;
&lt;br /&gt;
This section describes converting data from geotiff to geogrid format.  Alternatively, you can use the version of geogrid from our repository and read the geotiff file directly.  For details see [[WPS_with_GeoTIFF_support]].&lt;br /&gt;
&lt;br /&gt;
In order for geogrid to be able to read this data, we need to convert it into an intermediate format.  We will be using a utility program&lt;br /&gt;
released with autoWPS to accomplish this.  For information on how to obtain and compile this tool, see [[How_to_convert_data_for_Geogrid]].  We will place the &amp;lt;tt&amp;gt;convert_geotiff.x&amp;lt;/tt&amp;gt; binary and the GeoTIFF&lt;br /&gt;
data files in the main WPS directory.&lt;br /&gt;
To convert the fuel category data, we will create new directories inside the WPS directory called &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt;.  Inside the &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; directory, we&lt;br /&gt;
issue the following command to convert the fuel category data.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -c 13 -w 1 -u &amp;quot;fuel category&amp;quot; -d &amp;quot;Anderson 13 fire behavior categories&amp;quot; ../lf02588871.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The resulting &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file created as follows.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = albers_nad83&lt;br /&gt;
truelat1 = 29.500000&lt;br /&gt;
truelat2 = 45.500000&lt;br /&gt;
stdlon = -96.000000&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 606&lt;br /&gt;
known_lat = 39.747818&lt;br /&gt;
known_lon = -107.373398&lt;br /&gt;
dx = 3.000000e+01&lt;br /&gt;
dy = 3.000000e+01&lt;br /&gt;
type = categorical&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;fuel category&amp;quot;&lt;br /&gt;
description = &amp;quot;Anderson 13 fire behavior categories&amp;quot;&lt;br /&gt;
wordsize = 1&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
category_min = 1&lt;br /&gt;
category_max = 14&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We have chosen to set the word size to 1 byte because it can represent 256 categories, plenty for&lt;br /&gt;
this purpose.&lt;br /&gt;
Notice that the program has changed the number of categories to 14 and uses the last category&lt;br /&gt;
to indicate that the source data was out of the range 1-13.  For the fuel category data, this represents&lt;br /&gt;
that there is no fuel present, due to a lake, river, road, etc.  &lt;br /&gt;
&lt;br /&gt;
We can check that the projection information entered into the index file is correct, by running the &lt;br /&gt;
&amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; binary that is installed with libGeoTIFF.  In this case, &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; tells us &lt;br /&gt;
that the source file contains the following projection parameters.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Projection Method: CT_AlbersEqualArea&lt;br /&gt;
   ProjStdParallel1GeoKey: 29.500000 ( 29d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjStdParallel2GeoKey: 45.500000 ( 45d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLatGeoKey: 23.000000 ( 23d 0&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLongGeoKey: -96.000000 ( 96d 0&#039; 0.00&amp;quot;W)&lt;br /&gt;
   ProjFalseEastingGeoKey: 0.000000 m&lt;br /&gt;
   ProjFalseNorthingGeoKey: 0.000000 m&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
Projection Linear Units: 9001/metre (1.000000m)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    ( -963525.000, 1916445.000)  (-107.3734004,39.7478163)&lt;br /&gt;
Lower Left    ( -963525.000, 1898265.000)  (-107.3478974,39.5867431)&lt;br /&gt;
Upper Right   ( -948885.000, 1916445.000)  (-107.2021990,39.7632976)&lt;br /&gt;
Lower Right   ( -948885.000, 1898265.000)  (-107.1770727,39.6021889)&lt;br /&gt;
Center        ( -956205.000, 1907355.000)  (-107.2751374,39.6750401)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can see that the conversion detected the projection correctly.  The small difference in the&lt;br /&gt;
coordinates of the upper left corner reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; and that in the index file is&lt;br /&gt;
due to floating point error and is much less than the resolution of the data. &lt;br /&gt;
&lt;br /&gt;
Finally, we go to the &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt; directory to convert the &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; variable.  In this case,&lt;br /&gt;
we issue the following command.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -u meters -d &#039;National Elevation Dataset 1/3 arcsecond resolution&#039; ../09159064.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This produces the following &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = regular_ll&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 1621&lt;br /&gt;
known_lat = 39.750092&lt;br /&gt;
known_lon = -107.350090&lt;br /&gt;
dx = 9.259259e-05&lt;br /&gt;
dy = 9.259259e-05&lt;br /&gt;
type = continuous&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;meters&amp;quot;&lt;br /&gt;
description = &amp;quot;National Elevation Dataset 1/3 arcsecond resolution&amp;quot;&lt;br /&gt;
wordsize = 2&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Here we have used the default word size of 2 bytes and a scale factor of 1.0, &lt;br /&gt;
which can represent any elevation in the world&lt;br /&gt;
with 1 meter accuracy, which is approximately the accuracy of the source data.&lt;br /&gt;
&lt;br /&gt;
Again, we compare the projection parameters in the index file with that reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt;&lt;br /&gt;
and find that the conversion was correct.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;      Keyed_Information:&lt;br /&gt;
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic&lt;br /&gt;
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea&lt;br /&gt;
      GeographicTypeGeoKey (Short,1): GCS_NAD83&lt;br /&gt;
      GeogCitationGeoKey (Ascii,6): &amp;quot;NAD83&amp;quot;&lt;br /&gt;
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree&lt;br /&gt;
      End_Of_Keys.&lt;br /&gt;
   End_Of_Geotiff.&lt;br /&gt;
&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    (-107.3500926,39.7500926)&lt;br /&gt;
Lower Left    (-107.3500926,39.6000000)&lt;br /&gt;
Upper Right   (-107.2000000,39.7500926)&lt;br /&gt;
Lower Right   (-107.2000000,39.6000000)&lt;br /&gt;
Center        (-107.2750463,39.6750463)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the converted data can be found here, [[File:Landfire_data.tgz]], and here, [[File:Ned_data.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running geogrid=&lt;br /&gt;
&lt;br /&gt;
The geogrid binary will create a netcdf file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt;.  This file will contain all&lt;br /&gt;
of the static data necessary to run your simulation.  Before we can run the binary, however, we must tell&lt;br /&gt;
geogrid what data needs to be in these files, where it can find them, and what kind of preprocessing we wnat done.  This information is contained in a run-time configuration file called &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt;, which is&lt;br /&gt;
located in the &amp;lt;tt&amp;gt;geogrid&amp;lt;/tt&amp;gt; subdirectory.  The file that is released with WPS contains reasonable defaults&lt;br /&gt;
for the variables defined on the atmospheric grid, but we need to add two additional sections for the two fire&lt;br /&gt;
grid data sets that we have just created.  We will append the following sections to the file &lt;br /&gt;
&amp;lt;tt&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;===============================&lt;br /&gt;
name=NFUEL_CAT&lt;br /&gt;
        priority=1&lt;br /&gt;
	dest_type=categorical&lt;br /&gt;
	dominant_only=NFUEL_CAT&lt;br /&gt;
	z_dim_name=fuel_cat&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
	interp_option=default:nearest_neighbor&lt;br /&gt;
	abs_path=./landfire_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
name=ZSF&lt;br /&gt;
        priority = 1&lt;br /&gt;
        dest_type = continuous&lt;br /&gt;
        df_dx=DZDXF&lt;br /&gt;
        df_dy=DZDYF&lt;br /&gt;
        smooth_option = smth-desmth_special; smooth_passes=1&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
        interp_option = default:average_gcell(4.0)+four_pt+average_4pt&lt;br /&gt;
	abs_path=./ned_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
For &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt;, we will use simple nearest neighbor interpolation, while for &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, we will&lt;br /&gt;
use bilinear interpolation with smoothing.  Other configurations are possible.  See the [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/users_guide_chap3.htm#_Description_of_GEOGRID.TBL WPS users guide] for further information.  The full table used can be found [http://pastebin.com/kdymq5ff here].&lt;br /&gt;
&lt;br /&gt;
Once we make these changes to the &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt; file, and ensure that all of the directories are in the correct place (including the default geogrid dataset at &amp;lt;tt&amp;gt;../../wrfdata&amp;lt;/tt&amp;gt;), we can execute the geogrid binary.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./geogrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create a file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt; in the current directory, which can be found here,&lt;br /&gt;
[[File:geo_em.d01.nc.gz]].  The contents of this file can be viewed using your favorite NetCDF viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;geo_em.d01.nc&amp;quot; widths=&amp;quot;225px&amp;quot; heights=&amp;quot;225px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:nfuel_cat.png|The fuel category data interpolated to the model grid.The&lt;br /&gt;
File:zsf.png|The high resolution elevation (1/3&amp;quot;) data interpolated to the model grid.&lt;br /&gt;
File:hgt_m.png|The low resolution elevation data (30&amp;quot;) data interpolated to the atmospheric grid&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Here, we have visualized the fire grid variables, &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, as well as the &lt;br /&gt;
variable &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt;, which is the elevation data used by the atmospheric model.  We can compare&lt;br /&gt;
&amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt; to verify that our data conversion process worked.  The colormaps of these&lt;br /&gt;
two pictures have been aligned, so that we can make a quick visual check.  As we see, the two images do&lt;br /&gt;
have a similar structure and magnitude, but they do seem to suffer some misalignment.  Given that &lt;br /&gt;
the data came from two different sources, in two different projections, the error is relatively minor.  &lt;br /&gt;
Because WPS converts between projections in single precision, by default, there is likely a significant &lt;br /&gt;
issue with floating point error.  We may, in the future, consider making some changes so that this conversion is done in double precision.&lt;br /&gt;
&lt;br /&gt;
=Obtaining atmospheric data=&lt;br /&gt;
&lt;br /&gt;
There are a number of datasets available to initialize a WRF real run.  The &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/download/free_data.html WRF users page] lists&lt;br /&gt;
a few.  One challenge in running a fire simulation is finding a dataset of &lt;br /&gt;
sufficient resolution.  One (relatively) high resolution data source is the&lt;br /&gt;
North American Regional Reanalysis (NARR).  This is still only 32km resolution, so&lt;br /&gt;
no small scale weather patterns will appear in our simulation.  In general, we &lt;br /&gt;
will want to run a series of nested domains in order to catch some small scale weather&lt;br /&gt;
features; however, we will proceed with a single domain example.&lt;br /&gt;
&lt;br /&gt;
The NARR datasets are available after 3 months at the following website, &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/ http://nomads.ncdc.noaa.gov/data/narr/].&lt;br /&gt;
We will browse to the [http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/ directory] &lt;br /&gt;
containing the data for August 28, 2005. Our simulation runs from the hours 12-15 on this &lt;br /&gt;
day, so we will download the grib files for hours &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1200_000.grb 12] and &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1500_000.grb 15].&lt;br /&gt;
You can get these files also from here, [[File:narr-a_221_20050828_12-15.tgz]]. &lt;br /&gt;
&lt;br /&gt;
=Running ungrib=&lt;br /&gt;
&lt;br /&gt;
With the grib files downloaded, we need to link them into the WPS directory using the script&lt;br /&gt;
&amp;lt;tt&amp;gt;link_grib.csh&amp;lt;/tt&amp;gt;.  This script takes as arguments all of the grib files that are needed &lt;br /&gt;
for the simulation.  In this case, we can run the following command in the WPS directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./link_grib.csh &amp;lt;path to&amp;gt;/*.grb&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Substitute &amp;lt;path to&amp;gt; with the directory in which you have saved the grib files.  This command&lt;br /&gt;
creates a series of symbolic links with a predetermined naming sequence to all of the grib files&lt;br /&gt;
you pass as arguments.  You should now have two new soft links named &amp;lt;tt&amp;gt;GRIBFILE.AAA&amp;lt;/tt&amp;gt; and &lt;br /&gt;
&amp;lt;tt&amp;gt;GRIBFILE.AAB&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With the proper links in place, we need to tell ungrib what they contain.  This is done by copying a variable table into the main WPS directory.  Several variable tables are distributed with WPS which &lt;br /&gt;
describe common datasets.  You can find these in the directory &amp;lt;tt&amp;gt;WPS/ungrib/Variable_Tables&amp;lt;/tt&amp;gt;.&lt;br /&gt;
In particular, the file which corresponds to the NARR grib files is called &amp;lt;tt&amp;gt;Vtable.NARR&amp;lt;/tt&amp;gt;, so &lt;br /&gt;
we issue the following command to copy it into the current directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp ungrib/Variable_Tables/Vtable.NARR Vtable&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We are now ready to run the ungrib executable.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./ungrib.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create two files in the current directory named &amp;lt;tt&amp;gt;FILE:2005-08-28_12&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FILE:2005-08-28_15&amp;lt;/tt&amp;gt;.  You can download these files here, [[File:ungrib_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running metgrid=&lt;br /&gt;
&lt;br /&gt;
Metgrid will take the files created by ungrib and geogrid and combine them into a set of files.  At this point, all we need to do is run it.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./metgrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates two files named &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_12:00:00.nc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_15:00:00.nc&amp;lt;/tt&amp;gt;, which you can download here, [[File:metgrid_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running wrf=&lt;br /&gt;
&lt;br /&gt;
We are now finished with all steps involving WPS.  All we need to do is copy over the metgrid output&lt;br /&gt;
files over to our WRF real run directory at &amp;lt;tt&amp;gt;WRFV3/test/em_real&amp;lt;/tt&amp;gt; and configure our WRF namelist.&lt;br /&gt;
We will need to be sure that the domain description in &amp;lt;tt&amp;gt;namelist.input&amp;lt;/tt&amp;gt; matches that of &lt;br /&gt;
the &amp;lt;tt&amp;gt;namelist.wps&amp;lt;/tt&amp;gt; we created previously, otherwise WRF will refuse to run.  Pay particular attention&lt;br /&gt;
to the start/stop times and the grid sizes.  The fire ignition parameters are configured&lt;br /&gt;
in the same way as for the ideal case.  Relevant portion of the namelist we will use are given below.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt; &amp;amp;time_control&lt;br /&gt;
 run_days                            = 0,&lt;br /&gt;
 run_hours                           = 0,&lt;br /&gt;
 run_minutes                         = 2,&lt;br /&gt;
 run_seconds                         = 0,&lt;br /&gt;
 start_year                          = 2005,&lt;br /&gt;
 start_month                         = 08,&lt;br /&gt;
 start_day                           = 28,&lt;br /&gt;
 start_hour                          = 12,&lt;br /&gt;
 start_minute                        = 00,&lt;br /&gt;
 start_second                        = 00,&lt;br /&gt;
 end_year                            = 2005,&lt;br /&gt;
 end_month                           = 08,&lt;br /&gt;
 end_day                             = 28,&lt;br /&gt;
 end_hour                            = 15,&lt;br /&gt;
 end_minute                          = 00,&lt;br /&gt;
 end_second                          = 00,&lt;br /&gt;
 interval_seconds                    = 10800&lt;br /&gt;
 input_from_file                     = .true.,&lt;br /&gt;
 history_interval_s                  = 30,&lt;br /&gt;
 frames_per_outfile                  = 1000,&lt;br /&gt;
 restart                             = .false.,&lt;br /&gt;
 restart_interval                    = 1,&lt;br /&gt;
 io_form_history                     = 2&lt;br /&gt;
 io_form_restart                     = 2&lt;br /&gt;
 io_form_input                       = 2&lt;br /&gt;
 io_form_boundary                    = 2&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;domains&lt;br /&gt;
 time_step                           = 0,&lt;br /&gt;
 time_step_fract_num                 = 5,&lt;br /&gt;
 time_step_fract_den                 = 10,&lt;br /&gt;
 max_dom                             = 1,&lt;br /&gt;
 s_we                                = 1,&lt;br /&gt;
 e_we                                = 43,&lt;br /&gt;
 s_sn                                = 1,&lt;br /&gt;
 e_sn                                = 43,&lt;br /&gt;
 s_vert                              = 1,&lt;br /&gt;
 e_vert                              = 41,&lt;br /&gt;
 num_metgrid_levels                  = 30&lt;br /&gt;
 dx                                  = 60,&lt;br /&gt;
 dy                                  = 60,&lt;br /&gt;
 grid_id                             = 1,&lt;br /&gt;
 parent_id                           = 0,&lt;br /&gt;
 i_parent_start                      = 0,&lt;br /&gt;
 j_parent_start                      = 0,&lt;br /&gt;
 parent_grid_ratio                   = 1,&lt;br /&gt;
 parent_time_step_ratio              = 1,&lt;br /&gt;
 feedback                            = 1,&lt;br /&gt;
 smooth_option                       = 0&lt;br /&gt;
 sr_x                                = 10,&lt;br /&gt;
 sr_y                                = 10,&lt;br /&gt;
 sfcp_to_sfcp                        = .true.,&lt;br /&gt;
 p_top_requested                     = 10000&lt;br /&gt;
 /&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;bdy_control&lt;br /&gt;
 spec_bdy_width                      = 5,&lt;br /&gt;
 spec_zone                           = 1,&lt;br /&gt;
 relax_zone                          = 4,&lt;br /&gt;
 specified                           = .true.,&lt;br /&gt;
 periodic_x                          = .false.,&lt;br /&gt;
 symmetric_xs                        = .false.,&lt;br /&gt;
 symmetric_xe                        = .false.,&lt;br /&gt;
 open_xs                             = .false.,&lt;br /&gt;
 open_xe                             = .false.,&lt;br /&gt;
 periodic_y                          = .false.,&lt;br /&gt;
 symmetric_ys                        = .false.,&lt;br /&gt;
 symmetric_ye                        = .false.,&lt;br /&gt;
 open_ys                             = .false.,&lt;br /&gt;
 open_ye                             = .false.,&lt;br /&gt;
 nested                              = .false.,&lt;br /&gt;
 /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/thu8KDZF here].&lt;br /&gt;
&lt;br /&gt;
Once the namelist is properly configured we run the WRF real preprocessor.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./real.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates the initial and boundary files for the WRF simulation and fills all missing fields&lt;br /&gt;
from the grib data with reasonable defaults.  The files that it produces are &amp;lt;tt&amp;gt;wrfbdy_d01&amp;lt;/tt&amp;gt;&lt;br /&gt;
and &amp;lt;tt&amp;gt;wrfinput_d01&amp;lt;/tt&amp;gt;, which can be downloaded here [[File:wrf_real_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
Finally, we run the simulation.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./wrf.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The history file for this example can be downloaded here, [[File:wrf_real_history.tgz]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Data]]&lt;br /&gt;
[[Category:Howtos|Run WRF-Fire with real data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:Landfire5.png&amp;diff=3029</id>
		<title>File:Landfire5.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:Landfire5.png&amp;diff=3029"/>
		<updated>2016-11-07T20:11:54Z</updated>

		<summary type="html">&lt;p&gt;Adamko: Landfire elevation menu&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Landfire elevation menu&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3028</id>
		<title>How to run WRF-SFIRE with real data</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3028"/>
		<updated>2016-11-07T20:07:52Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Downloading high resolution elevation data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
Running WRF-Fire with real data is a process very similar to running WRF with real data for weather simulations.&lt;br /&gt;
The [http://www.mmm.ucar.edu/wrf/users WRF users page] has many &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/contents.html documents] and &lt;br /&gt;
[http://www2.mmm.ucar.edu/wrf/users/supports/tutorial.html tutorials] outlining this process.  The purpose&lt;br /&gt;
of this page is to provide a tutorial for using real data with WRF-Fire starting from scratch.  We begin with a quick outline of the&lt;br /&gt;
steps involved including links to the output of each step.  The user can use these linked files to start from any step or to verify &lt;br /&gt;
their own results.  Due to platform and compiler differences your output might differ slightly from those provided.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This page refers to data sources for the USA only. For other countries, you will need to make appropriate modifications yourself.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Outline=&lt;br /&gt;
&lt;br /&gt;
# [[How_to_get_WRF-Fire|Obtain WRF-Fire source code]].&lt;br /&gt;
# [[How_to_compile_WRF-Fire|Compile target em_real]].&lt;br /&gt;
# [[#Compiling WPS|Compile WPS]].&lt;br /&gt;
# [[#Configuring_the_domain|Configure your domain]].&lt;br /&gt;
# [[#Obtaining data for geogrid|Download geogrid datasets]].&lt;br /&gt;
# [[#Converting fire data|Convert fire data to geogrid format]].&lt;br /&gt;
# [[#Running geogrid|Run the geogrid executable]].&lt;br /&gt;
# [[#Obtaining atmospheric data|Download atmospheric data]].&lt;br /&gt;
# [[#Running ungrib|Run the ungrib executable]].&lt;br /&gt;
# [[#Running metgrid|Run the metgrid executable]].&lt;br /&gt;
# [[#Running wrf|Run real.exe and wrf.exe]].&lt;br /&gt;
&lt;br /&gt;
=Compiling WPS=&lt;br /&gt;
&lt;br /&gt;
After you have compiled WRF, you then need to go into the subdirectory &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; and run &lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;.  This will present you with a list of configuration options similar to those given by WRF.&lt;br /&gt;
You will need to chose one with the same compiler that you used to compile WRF.  Generally, it is unnecessary to compile WPS with parallel support.&lt;br /&gt;
GRIB2 support is only necessary if your atmospheric data source requires it.  Once you have chosen a configuration, you can compile with&lt;br /&gt;
&amp;lt;pre&amp;gt;./compile &amp;gt;&amp;amp; compile.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to check for errors in the log file generated.&lt;br /&gt;
&lt;br /&gt;
=Configuring the domain=&lt;br /&gt;
&lt;br /&gt;
The physical domain is configured in the geogrid section of namelist.wps in the WPS directory.  In this section, you should define&lt;br /&gt;
the geographic projection with &amp;lt;tt&amp;gt;map_proj&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat1&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat2&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;stand_lon&amp;lt;/tt&amp;gt;.  Available projections&lt;br /&gt;
include &amp;lt;tt&amp;gt;&#039;lambert&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;polar&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;mercator&#039;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;&#039;lat-lon&#039;&amp;lt;/tt&amp;gt;.  The lower left corner of the domain is located at&lt;br /&gt;
&amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; longitude and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; latitude.  The computational grid is defined by &amp;lt;tt&amp;gt;e_we/e_sn&amp;lt;/tt&amp;gt;, the number of (staggered) grid&lt;br /&gt;
points in the west-east/south-north direction, and the grid resolution is defined by &amp;lt;tt&amp;gt;dx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;dy&amp;lt;/tt&amp;gt; in meters. &lt;br /&gt;
We also specify a path to where we will put the static dataset that geogrid will read from, and we specify the highest resolution (30 arc minutes) that this &lt;br /&gt;
data is released in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;geogrid&lt;br /&gt;
 e_we              =  43,&lt;br /&gt;
 e_sn              =  43,&lt;br /&gt;
 geog_data_res     = &#039;30s&#039;,&lt;br /&gt;
 dx = 60,&lt;br /&gt;
 dy = 60,&lt;br /&gt;
 map_proj  = &#039;lambert&#039;,&lt;br /&gt;
 ref_lat   =  39.70537,&lt;br /&gt;
 ref_lon   = -107.2907,&lt;br /&gt;
 truelat1  =  39.338,&lt;br /&gt;
 truelat2  =  39.338,&lt;br /&gt;
 stand_lon = -106.807,&lt;br /&gt;
 geog_data_path = &#039;../../wrfdata/geog&#039;&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The share section of the WPS namelist defines the fire subgrid refinement in &amp;lt;tt&amp;gt;subgrid_ratio_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;subgrid_ratio_y&amp;lt;/tt&amp;gt;.  This means &lt;br /&gt;
that the fire grid will be a 10 time refined grid at a resolution of 6 meters by 6 meters.  The &amp;lt;tt&amp;gt;start_date&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;end_data&amp;lt;/tt&amp;gt; parameters specify&lt;br /&gt;
the time window that the simulation will be run in.  Atmospheric data must be available at both temporal boundaries.  The &amp;lt;tt&amp;gt;interval_seconds&amp;lt;/tt&amp;gt; &lt;br /&gt;
parameter tells WPS the number of seconds between each atmospheric dataset.  For our example, we&lt;br /&gt;
will be using the NARR dataset which is released daily every three hours or 10,800 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;share&lt;br /&gt;
 wrf_core = &#039;ARW&#039;,&lt;br /&gt;
 max_dom = 1,&lt;br /&gt;
 start_date = &#039;2005-08-28_12:00:00&#039;,&lt;br /&gt;
 end_date   = &#039;2005-08-28_15:00:00&#039;,&lt;br /&gt;
 interval_seconds = 10800,&lt;br /&gt;
 io_form_geogrid = 2,&lt;br /&gt;
 subgrid_ratio_x = 10,&lt;br /&gt;
 subgrid_ratio_y = 10,&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/2u3YXkHS here].&lt;br /&gt;
&lt;br /&gt;
=Obtaining data for geogrid=&lt;br /&gt;
&lt;br /&gt;
First you must download and uncompress the standard [http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz geogrid input data].&lt;br /&gt;
This is a 429 MB compressed tarball that uncompresses to around 11 GB.  It contains all of the static data that geogrid needs for a standard&lt;br /&gt;
weather simulation; however, for a WRF-Fire simulation we need to fill in two additional fields that are too big to release in a single download for the&lt;br /&gt;
whole globe.  We first need to determine the approximate latitude and longitude bounds for our domain.&lt;br /&gt;
&lt;br /&gt;
We know the coordinates in the lower left corner from the &amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; parameters of the namelist.  We can estimate the&lt;br /&gt;
coordinates of the upper right corner by the approximate ratio 9e-6 degrees per meter.  So, the upper right corner of our domain is at approximately&lt;br /&gt;
-107.2675 longitude and 39.7286 latitude.  For the purposes of downloading data, we will expand this region to the range&lt;br /&gt;
-107.35 through -107.2 longitude and 39.6 through 39.75 latitude.&lt;br /&gt;
&lt;br /&gt;
==Downloading fuel category data==&lt;br /&gt;
&lt;br /&gt;
For the United States, Anderson 13 fuel category data is available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website.  Upon opening the national map, &lt;br /&gt;
click roughly on your are of interest, the map will zoom in, you will see a menu on the top of the screen.  Click on the earth icon, that should display a drop down menu, and select option &#039;Download Data&#039;&lt;br /&gt;
[[File:Landfire1.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
This will open a new window on the right. Click on &#039;x y&#039; icon that will open a form that lets you key in the the longitude and latitude range of your selection.  In this window, we will input the coordinates computed earlier, and below we will select &#039;LF_2014 (LF_140)&#039;, then &#039;Fuel&#039;, and &#039;us_140 13 Fire Behavior Fuel Models-Anderson, and click &#039;Add Area&#039; button.&lt;br /&gt;
[[File:landfire2.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window, click on &amp;quot;modify data request&amp;quot;.  This window lists all of the available data products for the selected region.  You want to check the box &lt;br /&gt;
next to &amp;quot;US_140 13 Fire Behavior Fuel Models-Anderson&amp;quot; and change the data format from &amp;quot;ArcGRID_with_attribs&amp;quot; to &amp;quot;GeoTIFF_with _attribs&amp;quot;. At the bottom make sure &amp;quot;Maximum size (MB) per piece:&amp;quot; is set to 250. Then go to the bottom of the page and click &amp;quot;Save Changes&amp;quot;.&lt;br /&gt;
[[File:landfire3.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Finally, click &amp;quot;Download&amp;quot;.  The file will be a compressed archive containing, among others, a GeoTIFF file.  The name of the file will be different for each request, &lt;br /&gt;
but in this example we have &amp;lt;tt&amp;gt;lf02588871.zip&amp;lt;/tt&amp;gt; containing the GeoTIFF file &amp;lt;tt&amp;gt;lf02588871.tif&amp;lt;/tt&amp;gt;, which can be found here, [[File:lf02588871.tif]].&lt;br /&gt;
&lt;br /&gt;
==Downloading high resolution elevation data==&lt;br /&gt;
&lt;br /&gt;
For the United States, elevation data is also available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website. Repeat the steps described above for downloading the fuel data, but instead of selecting &amp;quot;LF2014 (LF_140) US_140 13 Fire Behavior Models-Anderson, this time select: &amp;quot;Topographic&amp;quot; and &amp;quot;us Elevation&amp;quot;. &lt;br /&gt;
[[File:Landfire4.png]]&lt;br /&gt;
Again, we key in the coordinates determined before and click &amp;quot;Add Area&amp;quot;. &lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window click again &amp;quot;Modify Data Request&amp;quot;,  make sure us_Elevation is selected, change format to &amp;quot;Geotiff&amp;quot; and click &amp;quot;=Save Changes &amp;amp; Return to Summary&amp;quot;&lt;br /&gt;
[[File:Landfire5.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Converting fuel data=&lt;br /&gt;
&lt;br /&gt;
This section describes converting data from geotiff to geogrid format.  Alternatively, you can use the version of geogrid from our repository and read the geotiff file directly.  For details see [[WPS_with_GeoTIFF_support]].&lt;br /&gt;
&lt;br /&gt;
In order for geogrid to be able to read this data, we need to convert it into an intermediate format.  We will be using a utility program&lt;br /&gt;
released with autoWPS to accomplish this.  For information on how to obtain and compile this tool, see [[How_to_convert_data_for_Geogrid]].  We will place the &amp;lt;tt&amp;gt;convert_geotiff.x&amp;lt;/tt&amp;gt; binary and the GeoTIFF&lt;br /&gt;
data files in the main WPS directory.&lt;br /&gt;
To convert the fuel category data, we will create new directories inside the WPS directory called &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt;.  Inside the &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; directory, we&lt;br /&gt;
issue the following command to convert the fuel category data.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -c 13 -w 1 -u &amp;quot;fuel category&amp;quot; -d &amp;quot;Anderson 13 fire behavior categories&amp;quot; ../lf02588871.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The resulting &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file created as follows.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = albers_nad83&lt;br /&gt;
truelat1 = 29.500000&lt;br /&gt;
truelat2 = 45.500000&lt;br /&gt;
stdlon = -96.000000&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 606&lt;br /&gt;
known_lat = 39.747818&lt;br /&gt;
known_lon = -107.373398&lt;br /&gt;
dx = 3.000000e+01&lt;br /&gt;
dy = 3.000000e+01&lt;br /&gt;
type = categorical&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;fuel category&amp;quot;&lt;br /&gt;
description = &amp;quot;Anderson 13 fire behavior categories&amp;quot;&lt;br /&gt;
wordsize = 1&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
category_min = 1&lt;br /&gt;
category_max = 14&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We have chosen to set the word size to 1 byte because it can represent 256 categories, plenty for&lt;br /&gt;
this purpose.&lt;br /&gt;
Notice that the program has changed the number of categories to 14 and uses the last category&lt;br /&gt;
to indicate that the source data was out of the range 1-13.  For the fuel category data, this represents&lt;br /&gt;
that there is no fuel present, due to a lake, river, road, etc.  &lt;br /&gt;
&lt;br /&gt;
We can check that the projection information entered into the index file is correct, by running the &lt;br /&gt;
&amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; binary that is installed with libGeoTIFF.  In this case, &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; tells us &lt;br /&gt;
that the source file contains the following projection parameters.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Projection Method: CT_AlbersEqualArea&lt;br /&gt;
   ProjStdParallel1GeoKey: 29.500000 ( 29d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjStdParallel2GeoKey: 45.500000 ( 45d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLatGeoKey: 23.000000 ( 23d 0&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLongGeoKey: -96.000000 ( 96d 0&#039; 0.00&amp;quot;W)&lt;br /&gt;
   ProjFalseEastingGeoKey: 0.000000 m&lt;br /&gt;
   ProjFalseNorthingGeoKey: 0.000000 m&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
Projection Linear Units: 9001/metre (1.000000m)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    ( -963525.000, 1916445.000)  (-107.3734004,39.7478163)&lt;br /&gt;
Lower Left    ( -963525.000, 1898265.000)  (-107.3478974,39.5867431)&lt;br /&gt;
Upper Right   ( -948885.000, 1916445.000)  (-107.2021990,39.7632976)&lt;br /&gt;
Lower Right   ( -948885.000, 1898265.000)  (-107.1770727,39.6021889)&lt;br /&gt;
Center        ( -956205.000, 1907355.000)  (-107.2751374,39.6750401)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can see that the conversion detected the projection correctly.  The small difference in the&lt;br /&gt;
coordinates of the upper left corner reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; and that in the index file is&lt;br /&gt;
due to floating point error and is much less than the resolution of the data. &lt;br /&gt;
&lt;br /&gt;
Finally, we go to the &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt; directory to convert the &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; variable.  In this case,&lt;br /&gt;
we issue the following command.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -u meters -d &#039;National Elevation Dataset 1/3 arcsecond resolution&#039; ../09159064.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This produces the following &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = regular_ll&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 1621&lt;br /&gt;
known_lat = 39.750092&lt;br /&gt;
known_lon = -107.350090&lt;br /&gt;
dx = 9.259259e-05&lt;br /&gt;
dy = 9.259259e-05&lt;br /&gt;
type = continuous&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;meters&amp;quot;&lt;br /&gt;
description = &amp;quot;National Elevation Dataset 1/3 arcsecond resolution&amp;quot;&lt;br /&gt;
wordsize = 2&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Here we have used the default word size of 2 bytes and a scale factor of 1.0, &lt;br /&gt;
which can represent any elevation in the world&lt;br /&gt;
with 1 meter accuracy, which is approximately the accuracy of the source data.&lt;br /&gt;
&lt;br /&gt;
Again, we compare the projection parameters in the index file with that reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt;&lt;br /&gt;
and find that the conversion was correct.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;      Keyed_Information:&lt;br /&gt;
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic&lt;br /&gt;
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea&lt;br /&gt;
      GeographicTypeGeoKey (Short,1): GCS_NAD83&lt;br /&gt;
      GeogCitationGeoKey (Ascii,6): &amp;quot;NAD83&amp;quot;&lt;br /&gt;
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree&lt;br /&gt;
      End_Of_Keys.&lt;br /&gt;
   End_Of_Geotiff.&lt;br /&gt;
&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    (-107.3500926,39.7500926)&lt;br /&gt;
Lower Left    (-107.3500926,39.6000000)&lt;br /&gt;
Upper Right   (-107.2000000,39.7500926)&lt;br /&gt;
Lower Right   (-107.2000000,39.6000000)&lt;br /&gt;
Center        (-107.2750463,39.6750463)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the converted data can be found here, [[File:Landfire_data.tgz]], and here, [[File:Ned_data.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running geogrid=&lt;br /&gt;
&lt;br /&gt;
The geogrid binary will create a netcdf file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt;.  This file will contain all&lt;br /&gt;
of the static data necessary to run your simulation.  Before we can run the binary, however, we must tell&lt;br /&gt;
geogrid what data needs to be in these files, where it can find them, and what kind of preprocessing we wnat done.  This information is contained in a run-time configuration file called &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt;, which is&lt;br /&gt;
located in the &amp;lt;tt&amp;gt;geogrid&amp;lt;/tt&amp;gt; subdirectory.  The file that is released with WPS contains reasonable defaults&lt;br /&gt;
for the variables defined on the atmospheric grid, but we need to add two additional sections for the two fire&lt;br /&gt;
grid data sets that we have just created.  We will append the following sections to the file &lt;br /&gt;
&amp;lt;tt&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;===============================&lt;br /&gt;
name=NFUEL_CAT&lt;br /&gt;
        priority=1&lt;br /&gt;
	dest_type=categorical&lt;br /&gt;
	dominant_only=NFUEL_CAT&lt;br /&gt;
	z_dim_name=fuel_cat&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
	interp_option=default:nearest_neighbor&lt;br /&gt;
	abs_path=./landfire_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
name=ZSF&lt;br /&gt;
        priority = 1&lt;br /&gt;
        dest_type = continuous&lt;br /&gt;
        df_dx=DZDXF&lt;br /&gt;
        df_dy=DZDYF&lt;br /&gt;
        smooth_option = smth-desmth_special; smooth_passes=1&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
        interp_option = default:average_gcell(4.0)+four_pt+average_4pt&lt;br /&gt;
	abs_path=./ned_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
For &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt;, we will use simple nearest neighbor interpolation, while for &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, we will&lt;br /&gt;
use bilinear interpolation with smoothing.  Other configurations are possible.  See the [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/users_guide_chap3.htm#_Description_of_GEOGRID.TBL WPS users guide] for further information.  The full table used can be found [http://pastebin.com/kdymq5ff here].&lt;br /&gt;
&lt;br /&gt;
Once we make these changes to the &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt; file, and ensure that all of the directories are in the correct place (including the default geogrid dataset at &amp;lt;tt&amp;gt;../../wrfdata&amp;lt;/tt&amp;gt;), we can execute the geogrid binary.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./geogrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create a file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt; in the current directory, which can be found here,&lt;br /&gt;
[[File:geo_em.d01.nc.gz]].  The contents of this file can be viewed using your favorite NetCDF viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;geo_em.d01.nc&amp;quot; widths=&amp;quot;225px&amp;quot; heights=&amp;quot;225px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:nfuel_cat.png|The fuel category data interpolated to the model grid.The&lt;br /&gt;
File:zsf.png|The high resolution elevation (1/3&amp;quot;) data interpolated to the model grid.&lt;br /&gt;
File:hgt_m.png|The low resolution elevation data (30&amp;quot;) data interpolated to the atmospheric grid&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Here, we have visualized the fire grid variables, &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, as well as the &lt;br /&gt;
variable &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt;, which is the elevation data used by the atmospheric model.  We can compare&lt;br /&gt;
&amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt; to verify that our data conversion process worked.  The colormaps of these&lt;br /&gt;
two pictures have been aligned, so that we can make a quick visual check.  As we see, the two images do&lt;br /&gt;
have a similar structure and magnitude, but they do seem to suffer some misalignment.  Given that &lt;br /&gt;
the data came from two different sources, in two different projections, the error is relatively minor.  &lt;br /&gt;
Because WPS converts between projections in single precision, by default, there is likely a significant &lt;br /&gt;
issue with floating point error.  We may, in the future, consider making some changes so that this conversion is done in double precision.&lt;br /&gt;
&lt;br /&gt;
=Obtaining atmospheric data=&lt;br /&gt;
&lt;br /&gt;
There are a number of datasets available to initialize a WRF real run.  The &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/download/free_data.html WRF users page] lists&lt;br /&gt;
a few.  One challenge in running a fire simulation is finding a dataset of &lt;br /&gt;
sufficient resolution.  One (relatively) high resolution data source is the&lt;br /&gt;
North American Regional Reanalysis (NARR).  This is still only 32km resolution, so&lt;br /&gt;
no small scale weather patterns will appear in our simulation.  In general, we &lt;br /&gt;
will want to run a series of nested domains in order to catch some small scale weather&lt;br /&gt;
features; however, we will proceed with a single domain example.&lt;br /&gt;
&lt;br /&gt;
The NARR datasets are available after 3 months at the following website, &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/ http://nomads.ncdc.noaa.gov/data/narr/].&lt;br /&gt;
We will browse to the [http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/ directory] &lt;br /&gt;
containing the data for August 28, 2005. Our simulation runs from the hours 12-15 on this &lt;br /&gt;
day, so we will download the grib files for hours &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1200_000.grb 12] and &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1500_000.grb 15].&lt;br /&gt;
You can get these files also from here, [[File:narr-a_221_20050828_12-15.tgz]]. &lt;br /&gt;
&lt;br /&gt;
=Running ungrib=&lt;br /&gt;
&lt;br /&gt;
With the grib files downloaded, we need to link them into the WPS directory using the script&lt;br /&gt;
&amp;lt;tt&amp;gt;link_grib.csh&amp;lt;/tt&amp;gt;.  This script takes as arguments all of the grib files that are needed &lt;br /&gt;
for the simulation.  In this case, we can run the following command in the WPS directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./link_grib.csh &amp;lt;path to&amp;gt;/*.grb&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Substitute &amp;lt;path to&amp;gt; with the directory in which you have saved the grib files.  This command&lt;br /&gt;
creates a series of symbolic links with a predetermined naming sequence to all of the grib files&lt;br /&gt;
you pass as arguments.  You should now have two new soft links named &amp;lt;tt&amp;gt;GRIBFILE.AAA&amp;lt;/tt&amp;gt; and &lt;br /&gt;
&amp;lt;tt&amp;gt;GRIBFILE.AAB&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With the proper links in place, we need to tell ungrib what they contain.  This is done by copying a variable table into the main WPS directory.  Several variable tables are distributed with WPS which &lt;br /&gt;
describe common datasets.  You can find these in the directory &amp;lt;tt&amp;gt;WPS/ungrib/Variable_Tables&amp;lt;/tt&amp;gt;.&lt;br /&gt;
In particular, the file which corresponds to the NARR grib files is called &amp;lt;tt&amp;gt;Vtable.NARR&amp;lt;/tt&amp;gt;, so &lt;br /&gt;
we issue the following command to copy it into the current directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp ungrib/Variable_Tables/Vtable.NARR Vtable&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We are now ready to run the ungrib executable.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./ungrib.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create two files in the current directory named &amp;lt;tt&amp;gt;FILE:2005-08-28_12&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FILE:2005-08-28_15&amp;lt;/tt&amp;gt;.  You can download these files here, [[File:ungrib_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running metgrid=&lt;br /&gt;
&lt;br /&gt;
Metgrid will take the files created by ungrib and geogrid and combine them into a set of files.  At this point, all we need to do is run it.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./metgrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates two files named &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_12:00:00.nc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_15:00:00.nc&amp;lt;/tt&amp;gt;, which you can download here, [[File:metgrid_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running wrf=&lt;br /&gt;
&lt;br /&gt;
We are now finished with all steps involving WPS.  All we need to do is copy over the metgrid output&lt;br /&gt;
files over to our WRF real run directory at &amp;lt;tt&amp;gt;WRFV3/test/em_real&amp;lt;/tt&amp;gt; and configure our WRF namelist.&lt;br /&gt;
We will need to be sure that the domain description in &amp;lt;tt&amp;gt;namelist.input&amp;lt;/tt&amp;gt; matches that of &lt;br /&gt;
the &amp;lt;tt&amp;gt;namelist.wps&amp;lt;/tt&amp;gt; we created previously, otherwise WRF will refuse to run.  Pay particular attention&lt;br /&gt;
to the start/stop times and the grid sizes.  The fire ignition parameters are configured&lt;br /&gt;
in the same way as for the ideal case.  Relevant portion of the namelist we will use are given below.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt; &amp;amp;time_control&lt;br /&gt;
 run_days                            = 0,&lt;br /&gt;
 run_hours                           = 0,&lt;br /&gt;
 run_minutes                         = 2,&lt;br /&gt;
 run_seconds                         = 0,&lt;br /&gt;
 start_year                          = 2005,&lt;br /&gt;
 start_month                         = 08,&lt;br /&gt;
 start_day                           = 28,&lt;br /&gt;
 start_hour                          = 12,&lt;br /&gt;
 start_minute                        = 00,&lt;br /&gt;
 start_second                        = 00,&lt;br /&gt;
 end_year                            = 2005,&lt;br /&gt;
 end_month                           = 08,&lt;br /&gt;
 end_day                             = 28,&lt;br /&gt;
 end_hour                            = 15,&lt;br /&gt;
 end_minute                          = 00,&lt;br /&gt;
 end_second                          = 00,&lt;br /&gt;
 interval_seconds                    = 10800&lt;br /&gt;
 input_from_file                     = .true.,&lt;br /&gt;
 history_interval_s                  = 30,&lt;br /&gt;
 frames_per_outfile                  = 1000,&lt;br /&gt;
 restart                             = .false.,&lt;br /&gt;
 restart_interval                    = 1,&lt;br /&gt;
 io_form_history                     = 2&lt;br /&gt;
 io_form_restart                     = 2&lt;br /&gt;
 io_form_input                       = 2&lt;br /&gt;
 io_form_boundary                    = 2&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;domains&lt;br /&gt;
 time_step                           = 0,&lt;br /&gt;
 time_step_fract_num                 = 5,&lt;br /&gt;
 time_step_fract_den                 = 10,&lt;br /&gt;
 max_dom                             = 1,&lt;br /&gt;
 s_we                                = 1,&lt;br /&gt;
 e_we                                = 43,&lt;br /&gt;
 s_sn                                = 1,&lt;br /&gt;
 e_sn                                = 43,&lt;br /&gt;
 s_vert                              = 1,&lt;br /&gt;
 e_vert                              = 41,&lt;br /&gt;
 num_metgrid_levels                  = 30&lt;br /&gt;
 dx                                  = 60,&lt;br /&gt;
 dy                                  = 60,&lt;br /&gt;
 grid_id                             = 1,&lt;br /&gt;
 parent_id                           = 0,&lt;br /&gt;
 i_parent_start                      = 0,&lt;br /&gt;
 j_parent_start                      = 0,&lt;br /&gt;
 parent_grid_ratio                   = 1,&lt;br /&gt;
 parent_time_step_ratio              = 1,&lt;br /&gt;
 feedback                            = 1,&lt;br /&gt;
 smooth_option                       = 0&lt;br /&gt;
 sr_x                                = 10,&lt;br /&gt;
 sr_y                                = 10,&lt;br /&gt;
 sfcp_to_sfcp                        = .true.,&lt;br /&gt;
 p_top_requested                     = 10000&lt;br /&gt;
 /&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;bdy_control&lt;br /&gt;
 spec_bdy_width                      = 5,&lt;br /&gt;
 spec_zone                           = 1,&lt;br /&gt;
 relax_zone                          = 4,&lt;br /&gt;
 specified                           = .true.,&lt;br /&gt;
 periodic_x                          = .false.,&lt;br /&gt;
 symmetric_xs                        = .false.,&lt;br /&gt;
 symmetric_xe                        = .false.,&lt;br /&gt;
 open_xs                             = .false.,&lt;br /&gt;
 open_xe                             = .false.,&lt;br /&gt;
 periodic_y                          = .false.,&lt;br /&gt;
 symmetric_ys                        = .false.,&lt;br /&gt;
 symmetric_ye                        = .false.,&lt;br /&gt;
 open_ys                             = .false.,&lt;br /&gt;
 open_ye                             = .false.,&lt;br /&gt;
 nested                              = .false.,&lt;br /&gt;
 /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/thu8KDZF here].&lt;br /&gt;
&lt;br /&gt;
Once the namelist is properly configured we run the WRF real preprocessor.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./real.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates the initial and boundary files for the WRF simulation and fills all missing fields&lt;br /&gt;
from the grib data with reasonable defaults.  The files that it produces are &amp;lt;tt&amp;gt;wrfbdy_d01&amp;lt;/tt&amp;gt;&lt;br /&gt;
and &amp;lt;tt&amp;gt;wrfinput_d01&amp;lt;/tt&amp;gt;, which can be downloaded here [[File:wrf_real_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
Finally, we run the simulation.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./wrf.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The history file for this example can be downloaded here, [[File:wrf_real_history.tgz]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Data]]&lt;br /&gt;
[[Category:Howtos|Run WRF-Fire with real data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3027</id>
		<title>How to run WRF-SFIRE with real data</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3027"/>
		<updated>2016-11-07T19:51:46Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Downloading high resolution elevation data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
Running WRF-Fire with real data is a process very similar to running WRF with real data for weather simulations.&lt;br /&gt;
The [http://www.mmm.ucar.edu/wrf/users WRF users page] has many &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/contents.html documents] and &lt;br /&gt;
[http://www2.mmm.ucar.edu/wrf/users/supports/tutorial.html tutorials] outlining this process.  The purpose&lt;br /&gt;
of this page is to provide a tutorial for using real data with WRF-Fire starting from scratch.  We begin with a quick outline of the&lt;br /&gt;
steps involved including links to the output of each step.  The user can use these linked files to start from any step or to verify &lt;br /&gt;
their own results.  Due to platform and compiler differences your output might differ slightly from those provided.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This page refers to data sources for the USA only. For other countries, you will need to make appropriate modifications yourself.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Outline=&lt;br /&gt;
&lt;br /&gt;
# [[How_to_get_WRF-Fire|Obtain WRF-Fire source code]].&lt;br /&gt;
# [[How_to_compile_WRF-Fire|Compile target em_real]].&lt;br /&gt;
# [[#Compiling WPS|Compile WPS]].&lt;br /&gt;
# [[#Configuring_the_domain|Configure your domain]].&lt;br /&gt;
# [[#Obtaining data for geogrid|Download geogrid datasets]].&lt;br /&gt;
# [[#Converting fire data|Convert fire data to geogrid format]].&lt;br /&gt;
# [[#Running geogrid|Run the geogrid executable]].&lt;br /&gt;
# [[#Obtaining atmospheric data|Download atmospheric data]].&lt;br /&gt;
# [[#Running ungrib|Run the ungrib executable]].&lt;br /&gt;
# [[#Running metgrid|Run the metgrid executable]].&lt;br /&gt;
# [[#Running wrf|Run real.exe and wrf.exe]].&lt;br /&gt;
&lt;br /&gt;
=Compiling WPS=&lt;br /&gt;
&lt;br /&gt;
After you have compiled WRF, you then need to go into the subdirectory &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; and run &lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;.  This will present you with a list of configuration options similar to those given by WRF.&lt;br /&gt;
You will need to chose one with the same compiler that you used to compile WRF.  Generally, it is unnecessary to compile WPS with parallel support.&lt;br /&gt;
GRIB2 support is only necessary if your atmospheric data source requires it.  Once you have chosen a configuration, you can compile with&lt;br /&gt;
&amp;lt;pre&amp;gt;./compile &amp;gt;&amp;amp; compile.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to check for errors in the log file generated.&lt;br /&gt;
&lt;br /&gt;
=Configuring the domain=&lt;br /&gt;
&lt;br /&gt;
The physical domain is configured in the geogrid section of namelist.wps in the WPS directory.  In this section, you should define&lt;br /&gt;
the geographic projection with &amp;lt;tt&amp;gt;map_proj&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat1&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat2&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;stand_lon&amp;lt;/tt&amp;gt;.  Available projections&lt;br /&gt;
include &amp;lt;tt&amp;gt;&#039;lambert&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;polar&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;mercator&#039;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;&#039;lat-lon&#039;&amp;lt;/tt&amp;gt;.  The lower left corner of the domain is located at&lt;br /&gt;
&amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; longitude and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; latitude.  The computational grid is defined by &amp;lt;tt&amp;gt;e_we/e_sn&amp;lt;/tt&amp;gt;, the number of (staggered) grid&lt;br /&gt;
points in the west-east/south-north direction, and the grid resolution is defined by &amp;lt;tt&amp;gt;dx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;dy&amp;lt;/tt&amp;gt; in meters. &lt;br /&gt;
We also specify a path to where we will put the static dataset that geogrid will read from, and we specify the highest resolution (30 arc minutes) that this &lt;br /&gt;
data is released in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;geogrid&lt;br /&gt;
 e_we              =  43,&lt;br /&gt;
 e_sn              =  43,&lt;br /&gt;
 geog_data_res     = &#039;30s&#039;,&lt;br /&gt;
 dx = 60,&lt;br /&gt;
 dy = 60,&lt;br /&gt;
 map_proj  = &#039;lambert&#039;,&lt;br /&gt;
 ref_lat   =  39.70537,&lt;br /&gt;
 ref_lon   = -107.2907,&lt;br /&gt;
 truelat1  =  39.338,&lt;br /&gt;
 truelat2  =  39.338,&lt;br /&gt;
 stand_lon = -106.807,&lt;br /&gt;
 geog_data_path = &#039;../../wrfdata/geog&#039;&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The share section of the WPS namelist defines the fire subgrid refinement in &amp;lt;tt&amp;gt;subgrid_ratio_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;subgrid_ratio_y&amp;lt;/tt&amp;gt;.  This means &lt;br /&gt;
that the fire grid will be a 10 time refined grid at a resolution of 6 meters by 6 meters.  The &amp;lt;tt&amp;gt;start_date&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;end_data&amp;lt;/tt&amp;gt; parameters specify&lt;br /&gt;
the time window that the simulation will be run in.  Atmospheric data must be available at both temporal boundaries.  The &amp;lt;tt&amp;gt;interval_seconds&amp;lt;/tt&amp;gt; &lt;br /&gt;
parameter tells WPS the number of seconds between each atmospheric dataset.  For our example, we&lt;br /&gt;
will be using the NARR dataset which is released daily every three hours or 10,800 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;share&lt;br /&gt;
 wrf_core = &#039;ARW&#039;,&lt;br /&gt;
 max_dom = 1,&lt;br /&gt;
 start_date = &#039;2005-08-28_12:00:00&#039;,&lt;br /&gt;
 end_date   = &#039;2005-08-28_15:00:00&#039;,&lt;br /&gt;
 interval_seconds = 10800,&lt;br /&gt;
 io_form_geogrid = 2,&lt;br /&gt;
 subgrid_ratio_x = 10,&lt;br /&gt;
 subgrid_ratio_y = 10,&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/2u3YXkHS here].&lt;br /&gt;
&lt;br /&gt;
=Obtaining data for geogrid=&lt;br /&gt;
&lt;br /&gt;
First you must download and uncompress the standard [http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz geogrid input data].&lt;br /&gt;
This is a 429 MB compressed tarball that uncompresses to around 11 GB.  It contains all of the static data that geogrid needs for a standard&lt;br /&gt;
weather simulation; however, for a WRF-Fire simulation we need to fill in two additional fields that are too big to release in a single download for the&lt;br /&gt;
whole globe.  We first need to determine the approximate latitude and longitude bounds for our domain.&lt;br /&gt;
&lt;br /&gt;
We know the coordinates in the lower left corner from the &amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; parameters of the namelist.  We can estimate the&lt;br /&gt;
coordinates of the upper right corner by the approximate ratio 9e-6 degrees per meter.  So, the upper right corner of our domain is at approximately&lt;br /&gt;
-107.2675 longitude and 39.7286 latitude.  For the purposes of downloading data, we will expand this region to the range&lt;br /&gt;
-107.35 through -107.2 longitude and 39.6 through 39.75 latitude.&lt;br /&gt;
&lt;br /&gt;
==Downloading fuel category data==&lt;br /&gt;
&lt;br /&gt;
For the United States, Anderson 13 fuel category data is available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website.  Upon opening the national map, &lt;br /&gt;
click roughly on your are of interest, the map will zoom in, you will see a menu on the top of the screen.  Click on the earth icon, that should display a drop down menu, and select option &#039;Download Data&#039;&lt;br /&gt;
[[File:Landfire1.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
This will open a new window on the right. Click on &#039;x y&#039; icon that will open a form that lets you key in the the longitude and latitude range of your selection.  In this window, we will input the coordinates computed earlier, and below we will select &#039;LF_2014 (LF_140)&#039;, then &#039;Fuel&#039;, and &#039;us_140 13 Fire Behavior Fuel Models-Anderson, and click &#039;Add Area&#039; button.&lt;br /&gt;
[[File:landfire2.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window, click on &amp;quot;modify data request&amp;quot;.  This window lists all of the available data products for the selected region.  You want to check the box &lt;br /&gt;
next to &amp;quot;US_140 13 Fire Behavior Fuel Models-Anderson&amp;quot; and change the data format from &amp;quot;ArcGRID_with_attribs&amp;quot; to &amp;quot;GeoTIFF_with _attribs&amp;quot;. At the bottom make sure &amp;quot;Maximum size (MB) per piece:&amp;quot; is set to 250. Then go to the bottom of the page and click &amp;quot;Save Changes&amp;quot;.&lt;br /&gt;
[[File:landfire3.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Finally, click &amp;quot;Download&amp;quot;.  The file will be a compressed archive containing, among others, a GeoTIFF file.  The name of the file will be different for each request, &lt;br /&gt;
but in this example we have &amp;lt;tt&amp;gt;lf02588871.zip&amp;lt;/tt&amp;gt; containing the GeoTIFF file &amp;lt;tt&amp;gt;lf02588871.tif&amp;lt;/tt&amp;gt;, which can be found here, [[File:lf02588871.tif]].&lt;br /&gt;
&lt;br /&gt;
==Downloading high resolution elevation data==&lt;br /&gt;
&lt;br /&gt;
For the United States, elevation data is also available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website. Repeat the steps described above for downloading the fuel data, but instead of selecting &amp;quot;LF2014 (LF_140) US_140 13 Fire Behavior Models-Anderson, this time select: &amp;quot;Topographic&amp;quot; and &amp;quot;us Elevation&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
can be accessed at [http://seamless.usgs.gov/ http://seamless.usgs.gov/].  The interface is similar to that of the Landfire national map.  Click on the icon circled in blue.&lt;br /&gt;
[[File:Landfire4.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Again, we key in the coordinates determined before and click the modify data request button.  In the data product selection page, we select &amp;quot;National Elevation Dataset (NED) 1/3 Arc Second&amp;quot; and change&lt;br /&gt;
to GeoTIFF format.  Then download the data&lt;br /&gt;
set, which can be found here, [[File:09159064.tif]].&lt;br /&gt;
[[File:Ned data product.png|center|thumb|The NED data product selection page]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Converting fuel data=&lt;br /&gt;
&lt;br /&gt;
This section describes converting data from geotiff to geogrid format.  Alternatively, you can use the version of geogrid from our repository and read the geotiff file directly.  For details see [[WPS_with_GeoTIFF_support]].&lt;br /&gt;
&lt;br /&gt;
In order for geogrid to be able to read this data, we need to convert it into an intermediate format.  We will be using a utility program&lt;br /&gt;
released with autoWPS to accomplish this.  For information on how to obtain and compile this tool, see [[How_to_convert_data_for_Geogrid]].  We will place the &amp;lt;tt&amp;gt;convert_geotiff.x&amp;lt;/tt&amp;gt; binary and the GeoTIFF&lt;br /&gt;
data files in the main WPS directory.&lt;br /&gt;
To convert the fuel category data, we will create new directories inside the WPS directory called &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt;.  Inside the &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; directory, we&lt;br /&gt;
issue the following command to convert the fuel category data.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -c 13 -w 1 -u &amp;quot;fuel category&amp;quot; -d &amp;quot;Anderson 13 fire behavior categories&amp;quot; ../lf02588871.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The resulting &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file created as follows.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = albers_nad83&lt;br /&gt;
truelat1 = 29.500000&lt;br /&gt;
truelat2 = 45.500000&lt;br /&gt;
stdlon = -96.000000&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 606&lt;br /&gt;
known_lat = 39.747818&lt;br /&gt;
known_lon = -107.373398&lt;br /&gt;
dx = 3.000000e+01&lt;br /&gt;
dy = 3.000000e+01&lt;br /&gt;
type = categorical&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;fuel category&amp;quot;&lt;br /&gt;
description = &amp;quot;Anderson 13 fire behavior categories&amp;quot;&lt;br /&gt;
wordsize = 1&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
category_min = 1&lt;br /&gt;
category_max = 14&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We have chosen to set the word size to 1 byte because it can represent 256 categories, plenty for&lt;br /&gt;
this purpose.&lt;br /&gt;
Notice that the program has changed the number of categories to 14 and uses the last category&lt;br /&gt;
to indicate that the source data was out of the range 1-13.  For the fuel category data, this represents&lt;br /&gt;
that there is no fuel present, due to a lake, river, road, etc.  &lt;br /&gt;
&lt;br /&gt;
We can check that the projection information entered into the index file is correct, by running the &lt;br /&gt;
&amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; binary that is installed with libGeoTIFF.  In this case, &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; tells us &lt;br /&gt;
that the source file contains the following projection parameters.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Projection Method: CT_AlbersEqualArea&lt;br /&gt;
   ProjStdParallel1GeoKey: 29.500000 ( 29d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjStdParallel2GeoKey: 45.500000 ( 45d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLatGeoKey: 23.000000 ( 23d 0&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLongGeoKey: -96.000000 ( 96d 0&#039; 0.00&amp;quot;W)&lt;br /&gt;
   ProjFalseEastingGeoKey: 0.000000 m&lt;br /&gt;
   ProjFalseNorthingGeoKey: 0.000000 m&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
Projection Linear Units: 9001/metre (1.000000m)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    ( -963525.000, 1916445.000)  (-107.3734004,39.7478163)&lt;br /&gt;
Lower Left    ( -963525.000, 1898265.000)  (-107.3478974,39.5867431)&lt;br /&gt;
Upper Right   ( -948885.000, 1916445.000)  (-107.2021990,39.7632976)&lt;br /&gt;
Lower Right   ( -948885.000, 1898265.000)  (-107.1770727,39.6021889)&lt;br /&gt;
Center        ( -956205.000, 1907355.000)  (-107.2751374,39.6750401)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can see that the conversion detected the projection correctly.  The small difference in the&lt;br /&gt;
coordinates of the upper left corner reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; and that in the index file is&lt;br /&gt;
due to floating point error and is much less than the resolution of the data. &lt;br /&gt;
&lt;br /&gt;
Finally, we go to the &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt; directory to convert the &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; variable.  In this case,&lt;br /&gt;
we issue the following command.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -u meters -d &#039;National Elevation Dataset 1/3 arcsecond resolution&#039; ../09159064.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This produces the following &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = regular_ll&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 1621&lt;br /&gt;
known_lat = 39.750092&lt;br /&gt;
known_lon = -107.350090&lt;br /&gt;
dx = 9.259259e-05&lt;br /&gt;
dy = 9.259259e-05&lt;br /&gt;
type = continuous&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;meters&amp;quot;&lt;br /&gt;
description = &amp;quot;National Elevation Dataset 1/3 arcsecond resolution&amp;quot;&lt;br /&gt;
wordsize = 2&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Here we have used the default word size of 2 bytes and a scale factor of 1.0, &lt;br /&gt;
which can represent any elevation in the world&lt;br /&gt;
with 1 meter accuracy, which is approximately the accuracy of the source data.&lt;br /&gt;
&lt;br /&gt;
Again, we compare the projection parameters in the index file with that reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt;&lt;br /&gt;
and find that the conversion was correct.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;      Keyed_Information:&lt;br /&gt;
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic&lt;br /&gt;
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea&lt;br /&gt;
      GeographicTypeGeoKey (Short,1): GCS_NAD83&lt;br /&gt;
      GeogCitationGeoKey (Ascii,6): &amp;quot;NAD83&amp;quot;&lt;br /&gt;
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree&lt;br /&gt;
      End_Of_Keys.&lt;br /&gt;
   End_Of_Geotiff.&lt;br /&gt;
&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    (-107.3500926,39.7500926)&lt;br /&gt;
Lower Left    (-107.3500926,39.6000000)&lt;br /&gt;
Upper Right   (-107.2000000,39.7500926)&lt;br /&gt;
Lower Right   (-107.2000000,39.6000000)&lt;br /&gt;
Center        (-107.2750463,39.6750463)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the converted data can be found here, [[File:Landfire_data.tgz]], and here, [[File:Ned_data.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running geogrid=&lt;br /&gt;
&lt;br /&gt;
The geogrid binary will create a netcdf file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt;.  This file will contain all&lt;br /&gt;
of the static data necessary to run your simulation.  Before we can run the binary, however, we must tell&lt;br /&gt;
geogrid what data needs to be in these files, where it can find them, and what kind of preprocessing we wnat done.  This information is contained in a run-time configuration file called &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt;, which is&lt;br /&gt;
located in the &amp;lt;tt&amp;gt;geogrid&amp;lt;/tt&amp;gt; subdirectory.  The file that is released with WPS contains reasonable defaults&lt;br /&gt;
for the variables defined on the atmospheric grid, but we need to add two additional sections for the two fire&lt;br /&gt;
grid data sets that we have just created.  We will append the following sections to the file &lt;br /&gt;
&amp;lt;tt&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;===============================&lt;br /&gt;
name=NFUEL_CAT&lt;br /&gt;
        priority=1&lt;br /&gt;
	dest_type=categorical&lt;br /&gt;
	dominant_only=NFUEL_CAT&lt;br /&gt;
	z_dim_name=fuel_cat&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
	interp_option=default:nearest_neighbor&lt;br /&gt;
	abs_path=./landfire_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
name=ZSF&lt;br /&gt;
        priority = 1&lt;br /&gt;
        dest_type = continuous&lt;br /&gt;
        df_dx=DZDXF&lt;br /&gt;
        df_dy=DZDYF&lt;br /&gt;
        smooth_option = smth-desmth_special; smooth_passes=1&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
        interp_option = default:average_gcell(4.0)+four_pt+average_4pt&lt;br /&gt;
	abs_path=./ned_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
For &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt;, we will use simple nearest neighbor interpolation, while for &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, we will&lt;br /&gt;
use bilinear interpolation with smoothing.  Other configurations are possible.  See the [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/users_guide_chap3.htm#_Description_of_GEOGRID.TBL WPS users guide] for further information.  The full table used can be found [http://pastebin.com/kdymq5ff here].&lt;br /&gt;
&lt;br /&gt;
Once we make these changes to the &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt; file, and ensure that all of the directories are in the correct place (including the default geogrid dataset at &amp;lt;tt&amp;gt;../../wrfdata&amp;lt;/tt&amp;gt;), we can execute the geogrid binary.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./geogrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create a file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt; in the current directory, which can be found here,&lt;br /&gt;
[[File:geo_em.d01.nc.gz]].  The contents of this file can be viewed using your favorite NetCDF viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;geo_em.d01.nc&amp;quot; widths=&amp;quot;225px&amp;quot; heights=&amp;quot;225px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:nfuel_cat.png|The fuel category data interpolated to the model grid.The&lt;br /&gt;
File:zsf.png|The high resolution elevation (1/3&amp;quot;) data interpolated to the model grid.&lt;br /&gt;
File:hgt_m.png|The low resolution elevation data (30&amp;quot;) data interpolated to the atmospheric grid&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Here, we have visualized the fire grid variables, &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, as well as the &lt;br /&gt;
variable &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt;, which is the elevation data used by the atmospheric model.  We can compare&lt;br /&gt;
&amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt; to verify that our data conversion process worked.  The colormaps of these&lt;br /&gt;
two pictures have been aligned, so that we can make a quick visual check.  As we see, the two images do&lt;br /&gt;
have a similar structure and magnitude, but they do seem to suffer some misalignment.  Given that &lt;br /&gt;
the data came from two different sources, in two different projections, the error is relatively minor.  &lt;br /&gt;
Because WPS converts between projections in single precision, by default, there is likely a significant &lt;br /&gt;
issue with floating point error.  We may, in the future, consider making some changes so that this conversion is done in double precision.&lt;br /&gt;
&lt;br /&gt;
=Obtaining atmospheric data=&lt;br /&gt;
&lt;br /&gt;
There are a number of datasets available to initialize a WRF real run.  The &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/download/free_data.html WRF users page] lists&lt;br /&gt;
a few.  One challenge in running a fire simulation is finding a dataset of &lt;br /&gt;
sufficient resolution.  One (relatively) high resolution data source is the&lt;br /&gt;
North American Regional Reanalysis (NARR).  This is still only 32km resolution, so&lt;br /&gt;
no small scale weather patterns will appear in our simulation.  In general, we &lt;br /&gt;
will want to run a series of nested domains in order to catch some small scale weather&lt;br /&gt;
features; however, we will proceed with a single domain example.&lt;br /&gt;
&lt;br /&gt;
The NARR datasets are available after 3 months at the following website, &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/ http://nomads.ncdc.noaa.gov/data/narr/].&lt;br /&gt;
We will browse to the [http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/ directory] &lt;br /&gt;
containing the data for August 28, 2005. Our simulation runs from the hours 12-15 on this &lt;br /&gt;
day, so we will download the grib files for hours &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1200_000.grb 12] and &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1500_000.grb 15].&lt;br /&gt;
You can get these files also from here, [[File:narr-a_221_20050828_12-15.tgz]]. &lt;br /&gt;
&lt;br /&gt;
=Running ungrib=&lt;br /&gt;
&lt;br /&gt;
With the grib files downloaded, we need to link them into the WPS directory using the script&lt;br /&gt;
&amp;lt;tt&amp;gt;link_grib.csh&amp;lt;/tt&amp;gt;.  This script takes as arguments all of the grib files that are needed &lt;br /&gt;
for the simulation.  In this case, we can run the following command in the WPS directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./link_grib.csh &amp;lt;path to&amp;gt;/*.grb&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Substitute &amp;lt;path to&amp;gt; with the directory in which you have saved the grib files.  This command&lt;br /&gt;
creates a series of symbolic links with a predetermined naming sequence to all of the grib files&lt;br /&gt;
you pass as arguments.  You should now have two new soft links named &amp;lt;tt&amp;gt;GRIBFILE.AAA&amp;lt;/tt&amp;gt; and &lt;br /&gt;
&amp;lt;tt&amp;gt;GRIBFILE.AAB&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With the proper links in place, we need to tell ungrib what they contain.  This is done by copying a variable table into the main WPS directory.  Several variable tables are distributed with WPS which &lt;br /&gt;
describe common datasets.  You can find these in the directory &amp;lt;tt&amp;gt;WPS/ungrib/Variable_Tables&amp;lt;/tt&amp;gt;.&lt;br /&gt;
In particular, the file which corresponds to the NARR grib files is called &amp;lt;tt&amp;gt;Vtable.NARR&amp;lt;/tt&amp;gt;, so &lt;br /&gt;
we issue the following command to copy it into the current directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp ungrib/Variable_Tables/Vtable.NARR Vtable&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We are now ready to run the ungrib executable.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./ungrib.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create two files in the current directory named &amp;lt;tt&amp;gt;FILE:2005-08-28_12&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FILE:2005-08-28_15&amp;lt;/tt&amp;gt;.  You can download these files here, [[File:ungrib_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running metgrid=&lt;br /&gt;
&lt;br /&gt;
Metgrid will take the files created by ungrib and geogrid and combine them into a set of files.  At this point, all we need to do is run it.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./metgrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates two files named &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_12:00:00.nc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_15:00:00.nc&amp;lt;/tt&amp;gt;, which you can download here, [[File:metgrid_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running wrf=&lt;br /&gt;
&lt;br /&gt;
We are now finished with all steps involving WPS.  All we need to do is copy over the metgrid output&lt;br /&gt;
files over to our WRF real run directory at &amp;lt;tt&amp;gt;WRFV3/test/em_real&amp;lt;/tt&amp;gt; and configure our WRF namelist.&lt;br /&gt;
We will need to be sure that the domain description in &amp;lt;tt&amp;gt;namelist.input&amp;lt;/tt&amp;gt; matches that of &lt;br /&gt;
the &amp;lt;tt&amp;gt;namelist.wps&amp;lt;/tt&amp;gt; we created previously, otherwise WRF will refuse to run.  Pay particular attention&lt;br /&gt;
to the start/stop times and the grid sizes.  The fire ignition parameters are configured&lt;br /&gt;
in the same way as for the ideal case.  Relevant portion of the namelist we will use are given below.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt; &amp;amp;time_control&lt;br /&gt;
 run_days                            = 0,&lt;br /&gt;
 run_hours                           = 0,&lt;br /&gt;
 run_minutes                         = 2,&lt;br /&gt;
 run_seconds                         = 0,&lt;br /&gt;
 start_year                          = 2005,&lt;br /&gt;
 start_month                         = 08,&lt;br /&gt;
 start_day                           = 28,&lt;br /&gt;
 start_hour                          = 12,&lt;br /&gt;
 start_minute                        = 00,&lt;br /&gt;
 start_second                        = 00,&lt;br /&gt;
 end_year                            = 2005,&lt;br /&gt;
 end_month                           = 08,&lt;br /&gt;
 end_day                             = 28,&lt;br /&gt;
 end_hour                            = 15,&lt;br /&gt;
 end_minute                          = 00,&lt;br /&gt;
 end_second                          = 00,&lt;br /&gt;
 interval_seconds                    = 10800&lt;br /&gt;
 input_from_file                     = .true.,&lt;br /&gt;
 history_interval_s                  = 30,&lt;br /&gt;
 frames_per_outfile                  = 1000,&lt;br /&gt;
 restart                             = .false.,&lt;br /&gt;
 restart_interval                    = 1,&lt;br /&gt;
 io_form_history                     = 2&lt;br /&gt;
 io_form_restart                     = 2&lt;br /&gt;
 io_form_input                       = 2&lt;br /&gt;
 io_form_boundary                    = 2&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;domains&lt;br /&gt;
 time_step                           = 0,&lt;br /&gt;
 time_step_fract_num                 = 5,&lt;br /&gt;
 time_step_fract_den                 = 10,&lt;br /&gt;
 max_dom                             = 1,&lt;br /&gt;
 s_we                                = 1,&lt;br /&gt;
 e_we                                = 43,&lt;br /&gt;
 s_sn                                = 1,&lt;br /&gt;
 e_sn                                = 43,&lt;br /&gt;
 s_vert                              = 1,&lt;br /&gt;
 e_vert                              = 41,&lt;br /&gt;
 num_metgrid_levels                  = 30&lt;br /&gt;
 dx                                  = 60,&lt;br /&gt;
 dy                                  = 60,&lt;br /&gt;
 grid_id                             = 1,&lt;br /&gt;
 parent_id                           = 0,&lt;br /&gt;
 i_parent_start                      = 0,&lt;br /&gt;
 j_parent_start                      = 0,&lt;br /&gt;
 parent_grid_ratio                   = 1,&lt;br /&gt;
 parent_time_step_ratio              = 1,&lt;br /&gt;
 feedback                            = 1,&lt;br /&gt;
 smooth_option                       = 0&lt;br /&gt;
 sr_x                                = 10,&lt;br /&gt;
 sr_y                                = 10,&lt;br /&gt;
 sfcp_to_sfcp                        = .true.,&lt;br /&gt;
 p_top_requested                     = 10000&lt;br /&gt;
 /&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;bdy_control&lt;br /&gt;
 spec_bdy_width                      = 5,&lt;br /&gt;
 spec_zone                           = 1,&lt;br /&gt;
 relax_zone                          = 4,&lt;br /&gt;
 specified                           = .true.,&lt;br /&gt;
 periodic_x                          = .false.,&lt;br /&gt;
 symmetric_xs                        = .false.,&lt;br /&gt;
 symmetric_xe                        = .false.,&lt;br /&gt;
 open_xs                             = .false.,&lt;br /&gt;
 open_xe                             = .false.,&lt;br /&gt;
 periodic_y                          = .false.,&lt;br /&gt;
 symmetric_ys                        = .false.,&lt;br /&gt;
 symmetric_ye                        = .false.,&lt;br /&gt;
 open_ys                             = .false.,&lt;br /&gt;
 open_ye                             = .false.,&lt;br /&gt;
 nested                              = .false.,&lt;br /&gt;
 /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/thu8KDZF here].&lt;br /&gt;
&lt;br /&gt;
Once the namelist is properly configured we run the WRF real preprocessor.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./real.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates the initial and boundary files for the WRF simulation and fills all missing fields&lt;br /&gt;
from the grib data with reasonable defaults.  The files that it produces are &amp;lt;tt&amp;gt;wrfbdy_d01&amp;lt;/tt&amp;gt;&lt;br /&gt;
and &amp;lt;tt&amp;gt;wrfinput_d01&amp;lt;/tt&amp;gt;, which can be downloaded here [[File:wrf_real_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
Finally, we run the simulation.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./wrf.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The history file for this example can be downloaded here, [[File:wrf_real_history.tgz]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Data]]&lt;br /&gt;
[[Category:Howtos|Run WRF-Fire with real data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:Landfire4.png&amp;diff=3026</id>
		<title>File:Landfire4.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:Landfire4.png&amp;diff=3026"/>
		<updated>2016-11-07T19:47:06Z</updated>

		<summary type="html">&lt;p&gt;Adamko: Landfire menu for elevation retrieval&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Landfire menu for elevation retrieval&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3025</id>
		<title>How to run WRF-SFIRE with real data</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3025"/>
		<updated>2016-11-07T19:46:33Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Downloading high resolution elevation data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
Running WRF-Fire with real data is a process very similar to running WRF with real data for weather simulations.&lt;br /&gt;
The [http://www.mmm.ucar.edu/wrf/users WRF users page] has many &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/contents.html documents] and &lt;br /&gt;
[http://www2.mmm.ucar.edu/wrf/users/supports/tutorial.html tutorials] outlining this process.  The purpose&lt;br /&gt;
of this page is to provide a tutorial for using real data with WRF-Fire starting from scratch.  We begin with a quick outline of the&lt;br /&gt;
steps involved including links to the output of each step.  The user can use these linked files to start from any step or to verify &lt;br /&gt;
their own results.  Due to platform and compiler differences your output might differ slightly from those provided.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This page refers to data sources for the USA only. For other countries, you will need to make appropriate modifications yourself.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Outline=&lt;br /&gt;
&lt;br /&gt;
# [[How_to_get_WRF-Fire|Obtain WRF-Fire source code]].&lt;br /&gt;
# [[How_to_compile_WRF-Fire|Compile target em_real]].&lt;br /&gt;
# [[#Compiling WPS|Compile WPS]].&lt;br /&gt;
# [[#Configuring_the_domain|Configure your domain]].&lt;br /&gt;
# [[#Obtaining data for geogrid|Download geogrid datasets]].&lt;br /&gt;
# [[#Converting fire data|Convert fire data to geogrid format]].&lt;br /&gt;
# [[#Running geogrid|Run the geogrid executable]].&lt;br /&gt;
# [[#Obtaining atmospheric data|Download atmospheric data]].&lt;br /&gt;
# [[#Running ungrib|Run the ungrib executable]].&lt;br /&gt;
# [[#Running metgrid|Run the metgrid executable]].&lt;br /&gt;
# [[#Running wrf|Run real.exe and wrf.exe]].&lt;br /&gt;
&lt;br /&gt;
=Compiling WPS=&lt;br /&gt;
&lt;br /&gt;
After you have compiled WRF, you then need to go into the subdirectory &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; and run &lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;.  This will present you with a list of configuration options similar to those given by WRF.&lt;br /&gt;
You will need to chose one with the same compiler that you used to compile WRF.  Generally, it is unnecessary to compile WPS with parallel support.&lt;br /&gt;
GRIB2 support is only necessary if your atmospheric data source requires it.  Once you have chosen a configuration, you can compile with&lt;br /&gt;
&amp;lt;pre&amp;gt;./compile &amp;gt;&amp;amp; compile.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to check for errors in the log file generated.&lt;br /&gt;
&lt;br /&gt;
=Configuring the domain=&lt;br /&gt;
&lt;br /&gt;
The physical domain is configured in the geogrid section of namelist.wps in the WPS directory.  In this section, you should define&lt;br /&gt;
the geographic projection with &amp;lt;tt&amp;gt;map_proj&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat1&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat2&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;stand_lon&amp;lt;/tt&amp;gt;.  Available projections&lt;br /&gt;
include &amp;lt;tt&amp;gt;&#039;lambert&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;polar&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;mercator&#039;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;&#039;lat-lon&#039;&amp;lt;/tt&amp;gt;.  The lower left corner of the domain is located at&lt;br /&gt;
&amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; longitude and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; latitude.  The computational grid is defined by &amp;lt;tt&amp;gt;e_we/e_sn&amp;lt;/tt&amp;gt;, the number of (staggered) grid&lt;br /&gt;
points in the west-east/south-north direction, and the grid resolution is defined by &amp;lt;tt&amp;gt;dx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;dy&amp;lt;/tt&amp;gt; in meters. &lt;br /&gt;
We also specify a path to where we will put the static dataset that geogrid will read from, and we specify the highest resolution (30 arc minutes) that this &lt;br /&gt;
data is released in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;geogrid&lt;br /&gt;
 e_we              =  43,&lt;br /&gt;
 e_sn              =  43,&lt;br /&gt;
 geog_data_res     = &#039;30s&#039;,&lt;br /&gt;
 dx = 60,&lt;br /&gt;
 dy = 60,&lt;br /&gt;
 map_proj  = &#039;lambert&#039;,&lt;br /&gt;
 ref_lat   =  39.70537,&lt;br /&gt;
 ref_lon   = -107.2907,&lt;br /&gt;
 truelat1  =  39.338,&lt;br /&gt;
 truelat2  =  39.338,&lt;br /&gt;
 stand_lon = -106.807,&lt;br /&gt;
 geog_data_path = &#039;../../wrfdata/geog&#039;&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The share section of the WPS namelist defines the fire subgrid refinement in &amp;lt;tt&amp;gt;subgrid_ratio_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;subgrid_ratio_y&amp;lt;/tt&amp;gt;.  This means &lt;br /&gt;
that the fire grid will be a 10 time refined grid at a resolution of 6 meters by 6 meters.  The &amp;lt;tt&amp;gt;start_date&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;end_data&amp;lt;/tt&amp;gt; parameters specify&lt;br /&gt;
the time window that the simulation will be run in.  Atmospheric data must be available at both temporal boundaries.  The &amp;lt;tt&amp;gt;interval_seconds&amp;lt;/tt&amp;gt; &lt;br /&gt;
parameter tells WPS the number of seconds between each atmospheric dataset.  For our example, we&lt;br /&gt;
will be using the NARR dataset which is released daily every three hours or 10,800 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;share&lt;br /&gt;
 wrf_core = &#039;ARW&#039;,&lt;br /&gt;
 max_dom = 1,&lt;br /&gt;
 start_date = &#039;2005-08-28_12:00:00&#039;,&lt;br /&gt;
 end_date   = &#039;2005-08-28_15:00:00&#039;,&lt;br /&gt;
 interval_seconds = 10800,&lt;br /&gt;
 io_form_geogrid = 2,&lt;br /&gt;
 subgrid_ratio_x = 10,&lt;br /&gt;
 subgrid_ratio_y = 10,&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/2u3YXkHS here].&lt;br /&gt;
&lt;br /&gt;
=Obtaining data for geogrid=&lt;br /&gt;
&lt;br /&gt;
First you must download and uncompress the standard [http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz geogrid input data].&lt;br /&gt;
This is a 429 MB compressed tarball that uncompresses to around 11 GB.  It contains all of the static data that geogrid needs for a standard&lt;br /&gt;
weather simulation; however, for a WRF-Fire simulation we need to fill in two additional fields that are too big to release in a single download for the&lt;br /&gt;
whole globe.  We first need to determine the approximate latitude and longitude bounds for our domain.&lt;br /&gt;
&lt;br /&gt;
We know the coordinates in the lower left corner from the &amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; parameters of the namelist.  We can estimate the&lt;br /&gt;
coordinates of the upper right corner by the approximate ratio 9e-6 degrees per meter.  So, the upper right corner of our domain is at approximately&lt;br /&gt;
-107.2675 longitude and 39.7286 latitude.  For the purposes of downloading data, we will expand this region to the range&lt;br /&gt;
-107.35 through -107.2 longitude and 39.6 through 39.75 latitude.&lt;br /&gt;
&lt;br /&gt;
==Downloading fuel category data==&lt;br /&gt;
&lt;br /&gt;
For the United States, Anderson 13 fuel category data is available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website.  Upon opening the national map, &lt;br /&gt;
click roughly on your are of interest, the map will zoom in, you will see a menu on the top of the screen.  Click on the earth icon, that should display a drop down menu, and select option &#039;Download Data&#039;&lt;br /&gt;
[[File:Landfire1.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
This will open a new window on the right. Click on &#039;x y&#039; icon that will open a form that lets you key in the the longitude and latitude range of your selection.  In this window, we will input the coordinates computed earlier, and below we will select &#039;LF_2014 (LF_140)&#039;, then &#039;Fuel&#039;, and &#039;us_140 13 Fire Behavior Fuel Models-Anderson, and click &#039;Add Area&#039; button.&lt;br /&gt;
[[File:landfire2.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window, click on &amp;quot;modify data request&amp;quot;.  This window lists all of the available data products for the selected region.  You want to check the box &lt;br /&gt;
next to &amp;quot;US_140 13 Fire Behavior Fuel Models-Anderson&amp;quot; and change the data format from &amp;quot;ArcGRID_with_attribs&amp;quot; to &amp;quot;GeoTIFF_with _attribs&amp;quot;. At the bottom make sure &amp;quot;Maximum size (MB) per piece:&amp;quot; is set to 250. Then go to the bottom of the page and click &amp;quot;Save Changes&amp;quot;.&lt;br /&gt;
[[File:landfire3.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Finally, click &amp;quot;Download&amp;quot;.  The file will be a compressed archive containing, among others, a GeoTIFF file.  The name of the file will be different for each request, &lt;br /&gt;
but in this example we have &amp;lt;tt&amp;gt;lf02588871.zip&amp;lt;/tt&amp;gt; containing the GeoTIFF file &amp;lt;tt&amp;gt;lf02588871.tif&amp;lt;/tt&amp;gt;, which can be found here, [[File:lf02588871.tif]].&lt;br /&gt;
&lt;br /&gt;
==Downloading high resolution elevation data==&lt;br /&gt;
&lt;br /&gt;
For the United States, elevation data is also available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website. Repeat the steps described above for downloading the fuel data, but instead of selecting &amp;quot;LF2014 (LF_140) US_140 13 Fire Behavior Models-Anderson, this time select: &amp;quot;Topographic&amp;quot; and &amp;quot;us Elevation&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
can be accessed at [http://seamless.usgs.gov/ http://seamless.usgs.gov/].  The interface is similar to that of the Landfire national map.  Click on the icon circled in blue.&lt;br /&gt;
[[File:Landfire4.png.]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Again, we key in the coordinates determined before and click the modify data request button.  In the data product selection page, we select &amp;quot;National Elevation Dataset (NED) 1/3 Arc Second&amp;quot; and change&lt;br /&gt;
to GeoTIFF format.  Then download the data&lt;br /&gt;
set, which can be found here, [[File:09159064.tif]].&lt;br /&gt;
[[File:Ned data product.png|center|thumb|The NED data product selection page]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Converting fuel data=&lt;br /&gt;
&lt;br /&gt;
This section describes converting data from geotiff to geogrid format.  Alternatively, you can use the version of geogrid from our repository and read the geotiff file directly.  For details see [[WPS_with_GeoTIFF_support]].&lt;br /&gt;
&lt;br /&gt;
In order for geogrid to be able to read this data, we need to convert it into an intermediate format.  We will be using a utility program&lt;br /&gt;
released with autoWPS to accomplish this.  For information on how to obtain and compile this tool, see [[How_to_convert_data_for_Geogrid]].  We will place the &amp;lt;tt&amp;gt;convert_geotiff.x&amp;lt;/tt&amp;gt; binary and the GeoTIFF&lt;br /&gt;
data files in the main WPS directory.&lt;br /&gt;
To convert the fuel category data, we will create new directories inside the WPS directory called &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt;.  Inside the &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; directory, we&lt;br /&gt;
issue the following command to convert the fuel category data.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -c 13 -w 1 -u &amp;quot;fuel category&amp;quot; -d &amp;quot;Anderson 13 fire behavior categories&amp;quot; ../lf02588871.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The resulting &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file created as follows.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = albers_nad83&lt;br /&gt;
truelat1 = 29.500000&lt;br /&gt;
truelat2 = 45.500000&lt;br /&gt;
stdlon = -96.000000&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 606&lt;br /&gt;
known_lat = 39.747818&lt;br /&gt;
known_lon = -107.373398&lt;br /&gt;
dx = 3.000000e+01&lt;br /&gt;
dy = 3.000000e+01&lt;br /&gt;
type = categorical&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;fuel category&amp;quot;&lt;br /&gt;
description = &amp;quot;Anderson 13 fire behavior categories&amp;quot;&lt;br /&gt;
wordsize = 1&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
category_min = 1&lt;br /&gt;
category_max = 14&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We have chosen to set the word size to 1 byte because it can represent 256 categories, plenty for&lt;br /&gt;
this purpose.&lt;br /&gt;
Notice that the program has changed the number of categories to 14 and uses the last category&lt;br /&gt;
to indicate that the source data was out of the range 1-13.  For the fuel category data, this represents&lt;br /&gt;
that there is no fuel present, due to a lake, river, road, etc.  &lt;br /&gt;
&lt;br /&gt;
We can check that the projection information entered into the index file is correct, by running the &lt;br /&gt;
&amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; binary that is installed with libGeoTIFF.  In this case, &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; tells us &lt;br /&gt;
that the source file contains the following projection parameters.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Projection Method: CT_AlbersEqualArea&lt;br /&gt;
   ProjStdParallel1GeoKey: 29.500000 ( 29d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjStdParallel2GeoKey: 45.500000 ( 45d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLatGeoKey: 23.000000 ( 23d 0&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLongGeoKey: -96.000000 ( 96d 0&#039; 0.00&amp;quot;W)&lt;br /&gt;
   ProjFalseEastingGeoKey: 0.000000 m&lt;br /&gt;
   ProjFalseNorthingGeoKey: 0.000000 m&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
Projection Linear Units: 9001/metre (1.000000m)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    ( -963525.000, 1916445.000)  (-107.3734004,39.7478163)&lt;br /&gt;
Lower Left    ( -963525.000, 1898265.000)  (-107.3478974,39.5867431)&lt;br /&gt;
Upper Right   ( -948885.000, 1916445.000)  (-107.2021990,39.7632976)&lt;br /&gt;
Lower Right   ( -948885.000, 1898265.000)  (-107.1770727,39.6021889)&lt;br /&gt;
Center        ( -956205.000, 1907355.000)  (-107.2751374,39.6750401)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can see that the conversion detected the projection correctly.  The small difference in the&lt;br /&gt;
coordinates of the upper left corner reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; and that in the index file is&lt;br /&gt;
due to floating point error and is much less than the resolution of the data. &lt;br /&gt;
&lt;br /&gt;
Finally, we go to the &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt; directory to convert the &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; variable.  In this case,&lt;br /&gt;
we issue the following command.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -u meters -d &#039;National Elevation Dataset 1/3 arcsecond resolution&#039; ../09159064.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This produces the following &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = regular_ll&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 1621&lt;br /&gt;
known_lat = 39.750092&lt;br /&gt;
known_lon = -107.350090&lt;br /&gt;
dx = 9.259259e-05&lt;br /&gt;
dy = 9.259259e-05&lt;br /&gt;
type = continuous&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;meters&amp;quot;&lt;br /&gt;
description = &amp;quot;National Elevation Dataset 1/3 arcsecond resolution&amp;quot;&lt;br /&gt;
wordsize = 2&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Here we have used the default word size of 2 bytes and a scale factor of 1.0, &lt;br /&gt;
which can represent any elevation in the world&lt;br /&gt;
with 1 meter accuracy, which is approximately the accuracy of the source data.&lt;br /&gt;
&lt;br /&gt;
Again, we compare the projection parameters in the index file with that reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt;&lt;br /&gt;
and find that the conversion was correct.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;      Keyed_Information:&lt;br /&gt;
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic&lt;br /&gt;
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea&lt;br /&gt;
      GeographicTypeGeoKey (Short,1): GCS_NAD83&lt;br /&gt;
      GeogCitationGeoKey (Ascii,6): &amp;quot;NAD83&amp;quot;&lt;br /&gt;
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree&lt;br /&gt;
      End_Of_Keys.&lt;br /&gt;
   End_Of_Geotiff.&lt;br /&gt;
&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    (-107.3500926,39.7500926)&lt;br /&gt;
Lower Left    (-107.3500926,39.6000000)&lt;br /&gt;
Upper Right   (-107.2000000,39.7500926)&lt;br /&gt;
Lower Right   (-107.2000000,39.6000000)&lt;br /&gt;
Center        (-107.2750463,39.6750463)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the converted data can be found here, [[File:Landfire_data.tgz]], and here, [[File:Ned_data.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running geogrid=&lt;br /&gt;
&lt;br /&gt;
The geogrid binary will create a netcdf file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt;.  This file will contain all&lt;br /&gt;
of the static data necessary to run your simulation.  Before we can run the binary, however, we must tell&lt;br /&gt;
geogrid what data needs to be in these files, where it can find them, and what kind of preprocessing we wnat done.  This information is contained in a run-time configuration file called &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt;, which is&lt;br /&gt;
located in the &amp;lt;tt&amp;gt;geogrid&amp;lt;/tt&amp;gt; subdirectory.  The file that is released with WPS contains reasonable defaults&lt;br /&gt;
for the variables defined on the atmospheric grid, but we need to add two additional sections for the two fire&lt;br /&gt;
grid data sets that we have just created.  We will append the following sections to the file &lt;br /&gt;
&amp;lt;tt&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;===============================&lt;br /&gt;
name=NFUEL_CAT&lt;br /&gt;
        priority=1&lt;br /&gt;
	dest_type=categorical&lt;br /&gt;
	dominant_only=NFUEL_CAT&lt;br /&gt;
	z_dim_name=fuel_cat&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
	interp_option=default:nearest_neighbor&lt;br /&gt;
	abs_path=./landfire_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
name=ZSF&lt;br /&gt;
        priority = 1&lt;br /&gt;
        dest_type = continuous&lt;br /&gt;
        df_dx=DZDXF&lt;br /&gt;
        df_dy=DZDYF&lt;br /&gt;
        smooth_option = smth-desmth_special; smooth_passes=1&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
        interp_option = default:average_gcell(4.0)+four_pt+average_4pt&lt;br /&gt;
	abs_path=./ned_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
For &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt;, we will use simple nearest neighbor interpolation, while for &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, we will&lt;br /&gt;
use bilinear interpolation with smoothing.  Other configurations are possible.  See the [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/users_guide_chap3.htm#_Description_of_GEOGRID.TBL WPS users guide] for further information.  The full table used can be found [http://pastebin.com/kdymq5ff here].&lt;br /&gt;
&lt;br /&gt;
Once we make these changes to the &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt; file, and ensure that all of the directories are in the correct place (including the default geogrid dataset at &amp;lt;tt&amp;gt;../../wrfdata&amp;lt;/tt&amp;gt;), we can execute the geogrid binary.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./geogrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create a file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt; in the current directory, which can be found here,&lt;br /&gt;
[[File:geo_em.d01.nc.gz]].  The contents of this file can be viewed using your favorite NetCDF viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;geo_em.d01.nc&amp;quot; widths=&amp;quot;225px&amp;quot; heights=&amp;quot;225px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:nfuel_cat.png|The fuel category data interpolated to the model grid.The&lt;br /&gt;
File:zsf.png|The high resolution elevation (1/3&amp;quot;) data interpolated to the model grid.&lt;br /&gt;
File:hgt_m.png|The low resolution elevation data (30&amp;quot;) data interpolated to the atmospheric grid&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Here, we have visualized the fire grid variables, &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, as well as the &lt;br /&gt;
variable &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt;, which is the elevation data used by the atmospheric model.  We can compare&lt;br /&gt;
&amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt; to verify that our data conversion process worked.  The colormaps of these&lt;br /&gt;
two pictures have been aligned, so that we can make a quick visual check.  As we see, the two images do&lt;br /&gt;
have a similar structure and magnitude, but they do seem to suffer some misalignment.  Given that &lt;br /&gt;
the data came from two different sources, in two different projections, the error is relatively minor.  &lt;br /&gt;
Because WPS converts between projections in single precision, by default, there is likely a significant &lt;br /&gt;
issue with floating point error.  We may, in the future, consider making some changes so that this conversion is done in double precision.&lt;br /&gt;
&lt;br /&gt;
=Obtaining atmospheric data=&lt;br /&gt;
&lt;br /&gt;
There are a number of datasets available to initialize a WRF real run.  The &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/download/free_data.html WRF users page] lists&lt;br /&gt;
a few.  One challenge in running a fire simulation is finding a dataset of &lt;br /&gt;
sufficient resolution.  One (relatively) high resolution data source is the&lt;br /&gt;
North American Regional Reanalysis (NARR).  This is still only 32km resolution, so&lt;br /&gt;
no small scale weather patterns will appear in our simulation.  In general, we &lt;br /&gt;
will want to run a series of nested domains in order to catch some small scale weather&lt;br /&gt;
features; however, we will proceed with a single domain example.&lt;br /&gt;
&lt;br /&gt;
The NARR datasets are available after 3 months at the following website, &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/ http://nomads.ncdc.noaa.gov/data/narr/].&lt;br /&gt;
We will browse to the [http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/ directory] &lt;br /&gt;
containing the data for August 28, 2005. Our simulation runs from the hours 12-15 on this &lt;br /&gt;
day, so we will download the grib files for hours &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1200_000.grb 12] and &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1500_000.grb 15].&lt;br /&gt;
You can get these files also from here, [[File:narr-a_221_20050828_12-15.tgz]]. &lt;br /&gt;
&lt;br /&gt;
=Running ungrib=&lt;br /&gt;
&lt;br /&gt;
With the grib files downloaded, we need to link them into the WPS directory using the script&lt;br /&gt;
&amp;lt;tt&amp;gt;link_grib.csh&amp;lt;/tt&amp;gt;.  This script takes as arguments all of the grib files that are needed &lt;br /&gt;
for the simulation.  In this case, we can run the following command in the WPS directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./link_grib.csh &amp;lt;path to&amp;gt;/*.grb&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Substitute &amp;lt;path to&amp;gt; with the directory in which you have saved the grib files.  This command&lt;br /&gt;
creates a series of symbolic links with a predetermined naming sequence to all of the grib files&lt;br /&gt;
you pass as arguments.  You should now have two new soft links named &amp;lt;tt&amp;gt;GRIBFILE.AAA&amp;lt;/tt&amp;gt; and &lt;br /&gt;
&amp;lt;tt&amp;gt;GRIBFILE.AAB&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With the proper links in place, we need to tell ungrib what they contain.  This is done by copying a variable table into the main WPS directory.  Several variable tables are distributed with WPS which &lt;br /&gt;
describe common datasets.  You can find these in the directory &amp;lt;tt&amp;gt;WPS/ungrib/Variable_Tables&amp;lt;/tt&amp;gt;.&lt;br /&gt;
In particular, the file which corresponds to the NARR grib files is called &amp;lt;tt&amp;gt;Vtable.NARR&amp;lt;/tt&amp;gt;, so &lt;br /&gt;
we issue the following command to copy it into the current directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp ungrib/Variable_Tables/Vtable.NARR Vtable&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We are now ready to run the ungrib executable.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./ungrib.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create two files in the current directory named &amp;lt;tt&amp;gt;FILE:2005-08-28_12&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FILE:2005-08-28_15&amp;lt;/tt&amp;gt;.  You can download these files here, [[File:ungrib_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running metgrid=&lt;br /&gt;
&lt;br /&gt;
Metgrid will take the files created by ungrib and geogrid and combine them into a set of files.  At this point, all we need to do is run it.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./metgrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates two files named &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_12:00:00.nc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_15:00:00.nc&amp;lt;/tt&amp;gt;, which you can download here, [[File:metgrid_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running wrf=&lt;br /&gt;
&lt;br /&gt;
We are now finished with all steps involving WPS.  All we need to do is copy over the metgrid output&lt;br /&gt;
files over to our WRF real run directory at &amp;lt;tt&amp;gt;WRFV3/test/em_real&amp;lt;/tt&amp;gt; and configure our WRF namelist.&lt;br /&gt;
We will need to be sure that the domain description in &amp;lt;tt&amp;gt;namelist.input&amp;lt;/tt&amp;gt; matches that of &lt;br /&gt;
the &amp;lt;tt&amp;gt;namelist.wps&amp;lt;/tt&amp;gt; we created previously, otherwise WRF will refuse to run.  Pay particular attention&lt;br /&gt;
to the start/stop times and the grid sizes.  The fire ignition parameters are configured&lt;br /&gt;
in the same way as for the ideal case.  Relevant portion of the namelist we will use are given below.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt; &amp;amp;time_control&lt;br /&gt;
 run_days                            = 0,&lt;br /&gt;
 run_hours                           = 0,&lt;br /&gt;
 run_minutes                         = 2,&lt;br /&gt;
 run_seconds                         = 0,&lt;br /&gt;
 start_year                          = 2005,&lt;br /&gt;
 start_month                         = 08,&lt;br /&gt;
 start_day                           = 28,&lt;br /&gt;
 start_hour                          = 12,&lt;br /&gt;
 start_minute                        = 00,&lt;br /&gt;
 start_second                        = 00,&lt;br /&gt;
 end_year                            = 2005,&lt;br /&gt;
 end_month                           = 08,&lt;br /&gt;
 end_day                             = 28,&lt;br /&gt;
 end_hour                            = 15,&lt;br /&gt;
 end_minute                          = 00,&lt;br /&gt;
 end_second                          = 00,&lt;br /&gt;
 interval_seconds                    = 10800&lt;br /&gt;
 input_from_file                     = .true.,&lt;br /&gt;
 history_interval_s                  = 30,&lt;br /&gt;
 frames_per_outfile                  = 1000,&lt;br /&gt;
 restart                             = .false.,&lt;br /&gt;
 restart_interval                    = 1,&lt;br /&gt;
 io_form_history                     = 2&lt;br /&gt;
 io_form_restart                     = 2&lt;br /&gt;
 io_form_input                       = 2&lt;br /&gt;
 io_form_boundary                    = 2&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;domains&lt;br /&gt;
 time_step                           = 0,&lt;br /&gt;
 time_step_fract_num                 = 5,&lt;br /&gt;
 time_step_fract_den                 = 10,&lt;br /&gt;
 max_dom                             = 1,&lt;br /&gt;
 s_we                                = 1,&lt;br /&gt;
 e_we                                = 43,&lt;br /&gt;
 s_sn                                = 1,&lt;br /&gt;
 e_sn                                = 43,&lt;br /&gt;
 s_vert                              = 1,&lt;br /&gt;
 e_vert                              = 41,&lt;br /&gt;
 num_metgrid_levels                  = 30&lt;br /&gt;
 dx                                  = 60,&lt;br /&gt;
 dy                                  = 60,&lt;br /&gt;
 grid_id                             = 1,&lt;br /&gt;
 parent_id                           = 0,&lt;br /&gt;
 i_parent_start                      = 0,&lt;br /&gt;
 j_parent_start                      = 0,&lt;br /&gt;
 parent_grid_ratio                   = 1,&lt;br /&gt;
 parent_time_step_ratio              = 1,&lt;br /&gt;
 feedback                            = 1,&lt;br /&gt;
 smooth_option                       = 0&lt;br /&gt;
 sr_x                                = 10,&lt;br /&gt;
 sr_y                                = 10,&lt;br /&gt;
 sfcp_to_sfcp                        = .true.,&lt;br /&gt;
 p_top_requested                     = 10000&lt;br /&gt;
 /&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;bdy_control&lt;br /&gt;
 spec_bdy_width                      = 5,&lt;br /&gt;
 spec_zone                           = 1,&lt;br /&gt;
 relax_zone                          = 4,&lt;br /&gt;
 specified                           = .true.,&lt;br /&gt;
 periodic_x                          = .false.,&lt;br /&gt;
 symmetric_xs                        = .false.,&lt;br /&gt;
 symmetric_xe                        = .false.,&lt;br /&gt;
 open_xs                             = .false.,&lt;br /&gt;
 open_xe                             = .false.,&lt;br /&gt;
 periodic_y                          = .false.,&lt;br /&gt;
 symmetric_ys                        = .false.,&lt;br /&gt;
 symmetric_ye                        = .false.,&lt;br /&gt;
 open_ys                             = .false.,&lt;br /&gt;
 open_ye                             = .false.,&lt;br /&gt;
 nested                              = .false.,&lt;br /&gt;
 /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/thu8KDZF here].&lt;br /&gt;
&lt;br /&gt;
Once the namelist is properly configured we run the WRF real preprocessor.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./real.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates the initial and boundary files for the WRF simulation and fills all missing fields&lt;br /&gt;
from the grib data with reasonable defaults.  The files that it produces are &amp;lt;tt&amp;gt;wrfbdy_d01&amp;lt;/tt&amp;gt;&lt;br /&gt;
and &amp;lt;tt&amp;gt;wrfinput_d01&amp;lt;/tt&amp;gt;, which can be downloaded here [[File:wrf_real_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
Finally, we run the simulation.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./wrf.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The history file for this example can be downloaded here, [[File:wrf_real_history.tgz]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Data]]&lt;br /&gt;
[[Category:Howtos|Run WRF-Fire with real data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3024</id>
		<title>How to run WRF-SFIRE with real data</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3024"/>
		<updated>2016-11-07T19:39:13Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Downloading fuel category data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
Running WRF-Fire with real data is a process very similar to running WRF with real data for weather simulations.&lt;br /&gt;
The [http://www.mmm.ucar.edu/wrf/users WRF users page] has many &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/contents.html documents] and &lt;br /&gt;
[http://www2.mmm.ucar.edu/wrf/users/supports/tutorial.html tutorials] outlining this process.  The purpose&lt;br /&gt;
of this page is to provide a tutorial for using real data with WRF-Fire starting from scratch.  We begin with a quick outline of the&lt;br /&gt;
steps involved including links to the output of each step.  The user can use these linked files to start from any step or to verify &lt;br /&gt;
their own results.  Due to platform and compiler differences your output might differ slightly from those provided.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This page refers to data sources for the USA only. For other countries, you will need to make appropriate modifications yourself.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Outline=&lt;br /&gt;
&lt;br /&gt;
# [[How_to_get_WRF-Fire|Obtain WRF-Fire source code]].&lt;br /&gt;
# [[How_to_compile_WRF-Fire|Compile target em_real]].&lt;br /&gt;
# [[#Compiling WPS|Compile WPS]].&lt;br /&gt;
# [[#Configuring_the_domain|Configure your domain]].&lt;br /&gt;
# [[#Obtaining data for geogrid|Download geogrid datasets]].&lt;br /&gt;
# [[#Converting fire data|Convert fire data to geogrid format]].&lt;br /&gt;
# [[#Running geogrid|Run the geogrid executable]].&lt;br /&gt;
# [[#Obtaining atmospheric data|Download atmospheric data]].&lt;br /&gt;
# [[#Running ungrib|Run the ungrib executable]].&lt;br /&gt;
# [[#Running metgrid|Run the metgrid executable]].&lt;br /&gt;
# [[#Running wrf|Run real.exe and wrf.exe]].&lt;br /&gt;
&lt;br /&gt;
=Compiling WPS=&lt;br /&gt;
&lt;br /&gt;
After you have compiled WRF, you then need to go into the subdirectory &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; and run &lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;.  This will present you with a list of configuration options similar to those given by WRF.&lt;br /&gt;
You will need to chose one with the same compiler that you used to compile WRF.  Generally, it is unnecessary to compile WPS with parallel support.&lt;br /&gt;
GRIB2 support is only necessary if your atmospheric data source requires it.  Once you have chosen a configuration, you can compile with&lt;br /&gt;
&amp;lt;pre&amp;gt;./compile &amp;gt;&amp;amp; compile.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to check for errors in the log file generated.&lt;br /&gt;
&lt;br /&gt;
=Configuring the domain=&lt;br /&gt;
&lt;br /&gt;
The physical domain is configured in the geogrid section of namelist.wps in the WPS directory.  In this section, you should define&lt;br /&gt;
the geographic projection with &amp;lt;tt&amp;gt;map_proj&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat1&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat2&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;stand_lon&amp;lt;/tt&amp;gt;.  Available projections&lt;br /&gt;
include &amp;lt;tt&amp;gt;&#039;lambert&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;polar&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;mercator&#039;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;&#039;lat-lon&#039;&amp;lt;/tt&amp;gt;.  The lower left corner of the domain is located at&lt;br /&gt;
&amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; longitude and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; latitude.  The computational grid is defined by &amp;lt;tt&amp;gt;e_we/e_sn&amp;lt;/tt&amp;gt;, the number of (staggered) grid&lt;br /&gt;
points in the west-east/south-north direction, and the grid resolution is defined by &amp;lt;tt&amp;gt;dx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;dy&amp;lt;/tt&amp;gt; in meters. &lt;br /&gt;
We also specify a path to where we will put the static dataset that geogrid will read from, and we specify the highest resolution (30 arc minutes) that this &lt;br /&gt;
data is released in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;geogrid&lt;br /&gt;
 e_we              =  43,&lt;br /&gt;
 e_sn              =  43,&lt;br /&gt;
 geog_data_res     = &#039;30s&#039;,&lt;br /&gt;
 dx = 60,&lt;br /&gt;
 dy = 60,&lt;br /&gt;
 map_proj  = &#039;lambert&#039;,&lt;br /&gt;
 ref_lat   =  39.70537,&lt;br /&gt;
 ref_lon   = -107.2907,&lt;br /&gt;
 truelat1  =  39.338,&lt;br /&gt;
 truelat2  =  39.338,&lt;br /&gt;
 stand_lon = -106.807,&lt;br /&gt;
 geog_data_path = &#039;../../wrfdata/geog&#039;&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The share section of the WPS namelist defines the fire subgrid refinement in &amp;lt;tt&amp;gt;subgrid_ratio_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;subgrid_ratio_y&amp;lt;/tt&amp;gt;.  This means &lt;br /&gt;
that the fire grid will be a 10 time refined grid at a resolution of 6 meters by 6 meters.  The &amp;lt;tt&amp;gt;start_date&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;end_data&amp;lt;/tt&amp;gt; parameters specify&lt;br /&gt;
the time window that the simulation will be run in.  Atmospheric data must be available at both temporal boundaries.  The &amp;lt;tt&amp;gt;interval_seconds&amp;lt;/tt&amp;gt; &lt;br /&gt;
parameter tells WPS the number of seconds between each atmospheric dataset.  For our example, we&lt;br /&gt;
will be using the NARR dataset which is released daily every three hours or 10,800 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;share&lt;br /&gt;
 wrf_core = &#039;ARW&#039;,&lt;br /&gt;
 max_dom = 1,&lt;br /&gt;
 start_date = &#039;2005-08-28_12:00:00&#039;,&lt;br /&gt;
 end_date   = &#039;2005-08-28_15:00:00&#039;,&lt;br /&gt;
 interval_seconds = 10800,&lt;br /&gt;
 io_form_geogrid = 2,&lt;br /&gt;
 subgrid_ratio_x = 10,&lt;br /&gt;
 subgrid_ratio_y = 10,&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/2u3YXkHS here].&lt;br /&gt;
&lt;br /&gt;
=Obtaining data for geogrid=&lt;br /&gt;
&lt;br /&gt;
First you must download and uncompress the standard [http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz geogrid input data].&lt;br /&gt;
This is a 429 MB compressed tarball that uncompresses to around 11 GB.  It contains all of the static data that geogrid needs for a standard&lt;br /&gt;
weather simulation; however, for a WRF-Fire simulation we need to fill in two additional fields that are too big to release in a single download for the&lt;br /&gt;
whole globe.  We first need to determine the approximate latitude and longitude bounds for our domain.&lt;br /&gt;
&lt;br /&gt;
We know the coordinates in the lower left corner from the &amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; parameters of the namelist.  We can estimate the&lt;br /&gt;
coordinates of the upper right corner by the approximate ratio 9e-6 degrees per meter.  So, the upper right corner of our domain is at approximately&lt;br /&gt;
-107.2675 longitude and 39.7286 latitude.  For the purposes of downloading data, we will expand this region to the range&lt;br /&gt;
-107.35 through -107.2 longitude and 39.6 through 39.75 latitude.&lt;br /&gt;
&lt;br /&gt;
==Downloading fuel category data==&lt;br /&gt;
&lt;br /&gt;
For the United States, Anderson 13 fuel category data is available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website.  Upon opening the national map, &lt;br /&gt;
click roughly on your are of interest, the map will zoom in, you will see a menu on the top of the screen.  Click on the earth icon, that should display a drop down menu, and select option &#039;Download Data&#039;&lt;br /&gt;
[[File:Landfire1.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
This will open a new window on the right. Click on &#039;x y&#039; icon that will open a form that lets you key in the the longitude and latitude range of your selection.  In this window, we will input the coordinates computed earlier, and below we will select &#039;LF_2014 (LF_140)&#039;, then &#039;Fuel&#039;, and &#039;us_140 13 Fire Behavior Fuel Models-Anderson, and click &#039;Add Area&#039; button.&lt;br /&gt;
[[File:landfire2.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window, click on &amp;quot;modify data request&amp;quot;.  This window lists all of the available data products for the selected region.  You want to check the box &lt;br /&gt;
next to &amp;quot;US_140 13 Fire Behavior Fuel Models-Anderson&amp;quot; and change the data format from &amp;quot;ArcGRID_with_attribs&amp;quot; to &amp;quot;GeoTIFF_with _attribs&amp;quot;. At the bottom make sure &amp;quot;Maximum size (MB) per piece:&amp;quot; is set to 250. Then go to the bottom of the page and click &amp;quot;Save Changes&amp;quot;.&lt;br /&gt;
[[File:landfire3.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Finally, click &amp;quot;Download&amp;quot;.  The file will be a compressed archive containing, among others, a GeoTIFF file.  The name of the file will be different for each request, &lt;br /&gt;
but in this example we have &amp;lt;tt&amp;gt;lf02588871.zip&amp;lt;/tt&amp;gt; containing the GeoTIFF file &amp;lt;tt&amp;gt;lf02588871.tif&amp;lt;/tt&amp;gt;, which can be found here, [[File:lf02588871.tif]].&lt;br /&gt;
&lt;br /&gt;
==Downloading high resolution elevation data==&lt;br /&gt;
&lt;br /&gt;
Another USGS website serves topographical data of sufficient resolution for our 6 meter resolution fire grid.  This dataset is called the National Elevation Dataset (NED) and &lt;br /&gt;
can be accessed at [http://seamless.usgs.gov/ http://seamless.usgs.gov/].  The interface is similar to that of the Landfire national map.  Click on the icon circled in blue.&lt;br /&gt;
[[File:Ned_menu.png|center|thumb|The NED menu.]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Again, we key in the coordinates determined before and click the modify data request button.  In the data product selection page, we select &amp;quot;National Elevation Dataset (NED) 1/3 Arc Second&amp;quot; and change&lt;br /&gt;
to GeoTIFF format.  Then download the data&lt;br /&gt;
set, which can be found here, [[File:09159064.tif]].&lt;br /&gt;
[[File:Ned data product.png|center|thumb|The NED data product selection page]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Converting fuel data=&lt;br /&gt;
&lt;br /&gt;
This section describes converting data from geotiff to geogrid format.  Alternatively, you can use the version of geogrid from our repository and read the geotiff file directly.  For details see [[WPS_with_GeoTIFF_support]].&lt;br /&gt;
&lt;br /&gt;
In order for geogrid to be able to read this data, we need to convert it into an intermediate format.  We will be using a utility program&lt;br /&gt;
released with autoWPS to accomplish this.  For information on how to obtain and compile this tool, see [[How_to_convert_data_for_Geogrid]].  We will place the &amp;lt;tt&amp;gt;convert_geotiff.x&amp;lt;/tt&amp;gt; binary and the GeoTIFF&lt;br /&gt;
data files in the main WPS directory.&lt;br /&gt;
To convert the fuel category data, we will create new directories inside the WPS directory called &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt;.  Inside the &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; directory, we&lt;br /&gt;
issue the following command to convert the fuel category data.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -c 13 -w 1 -u &amp;quot;fuel category&amp;quot; -d &amp;quot;Anderson 13 fire behavior categories&amp;quot; ../lf02588871.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The resulting &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file created as follows.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = albers_nad83&lt;br /&gt;
truelat1 = 29.500000&lt;br /&gt;
truelat2 = 45.500000&lt;br /&gt;
stdlon = -96.000000&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 606&lt;br /&gt;
known_lat = 39.747818&lt;br /&gt;
known_lon = -107.373398&lt;br /&gt;
dx = 3.000000e+01&lt;br /&gt;
dy = 3.000000e+01&lt;br /&gt;
type = categorical&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;fuel category&amp;quot;&lt;br /&gt;
description = &amp;quot;Anderson 13 fire behavior categories&amp;quot;&lt;br /&gt;
wordsize = 1&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
category_min = 1&lt;br /&gt;
category_max = 14&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We have chosen to set the word size to 1 byte because it can represent 256 categories, plenty for&lt;br /&gt;
this purpose.&lt;br /&gt;
Notice that the program has changed the number of categories to 14 and uses the last category&lt;br /&gt;
to indicate that the source data was out of the range 1-13.  For the fuel category data, this represents&lt;br /&gt;
that there is no fuel present, due to a lake, river, road, etc.  &lt;br /&gt;
&lt;br /&gt;
We can check that the projection information entered into the index file is correct, by running the &lt;br /&gt;
&amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; binary that is installed with libGeoTIFF.  In this case, &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; tells us &lt;br /&gt;
that the source file contains the following projection parameters.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Projection Method: CT_AlbersEqualArea&lt;br /&gt;
   ProjStdParallel1GeoKey: 29.500000 ( 29d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjStdParallel2GeoKey: 45.500000 ( 45d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLatGeoKey: 23.000000 ( 23d 0&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLongGeoKey: -96.000000 ( 96d 0&#039; 0.00&amp;quot;W)&lt;br /&gt;
   ProjFalseEastingGeoKey: 0.000000 m&lt;br /&gt;
   ProjFalseNorthingGeoKey: 0.000000 m&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
Projection Linear Units: 9001/metre (1.000000m)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    ( -963525.000, 1916445.000)  (-107.3734004,39.7478163)&lt;br /&gt;
Lower Left    ( -963525.000, 1898265.000)  (-107.3478974,39.5867431)&lt;br /&gt;
Upper Right   ( -948885.000, 1916445.000)  (-107.2021990,39.7632976)&lt;br /&gt;
Lower Right   ( -948885.000, 1898265.000)  (-107.1770727,39.6021889)&lt;br /&gt;
Center        ( -956205.000, 1907355.000)  (-107.2751374,39.6750401)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can see that the conversion detected the projection correctly.  The small difference in the&lt;br /&gt;
coordinates of the upper left corner reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; and that in the index file is&lt;br /&gt;
due to floating point error and is much less than the resolution of the data. &lt;br /&gt;
&lt;br /&gt;
Finally, we go to the &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt; directory to convert the &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; variable.  In this case,&lt;br /&gt;
we issue the following command.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -u meters -d &#039;National Elevation Dataset 1/3 arcsecond resolution&#039; ../09159064.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This produces the following &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = regular_ll&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 1621&lt;br /&gt;
known_lat = 39.750092&lt;br /&gt;
known_lon = -107.350090&lt;br /&gt;
dx = 9.259259e-05&lt;br /&gt;
dy = 9.259259e-05&lt;br /&gt;
type = continuous&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;meters&amp;quot;&lt;br /&gt;
description = &amp;quot;National Elevation Dataset 1/3 arcsecond resolution&amp;quot;&lt;br /&gt;
wordsize = 2&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Here we have used the default word size of 2 bytes and a scale factor of 1.0, &lt;br /&gt;
which can represent any elevation in the world&lt;br /&gt;
with 1 meter accuracy, which is approximately the accuracy of the source data.&lt;br /&gt;
&lt;br /&gt;
Again, we compare the projection parameters in the index file with that reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt;&lt;br /&gt;
and find that the conversion was correct.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;      Keyed_Information:&lt;br /&gt;
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic&lt;br /&gt;
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea&lt;br /&gt;
      GeographicTypeGeoKey (Short,1): GCS_NAD83&lt;br /&gt;
      GeogCitationGeoKey (Ascii,6): &amp;quot;NAD83&amp;quot;&lt;br /&gt;
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree&lt;br /&gt;
      End_Of_Keys.&lt;br /&gt;
   End_Of_Geotiff.&lt;br /&gt;
&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    (-107.3500926,39.7500926)&lt;br /&gt;
Lower Left    (-107.3500926,39.6000000)&lt;br /&gt;
Upper Right   (-107.2000000,39.7500926)&lt;br /&gt;
Lower Right   (-107.2000000,39.6000000)&lt;br /&gt;
Center        (-107.2750463,39.6750463)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the converted data can be found here, [[File:Landfire_data.tgz]], and here, [[File:Ned_data.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running geogrid=&lt;br /&gt;
&lt;br /&gt;
The geogrid binary will create a netcdf file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt;.  This file will contain all&lt;br /&gt;
of the static data necessary to run your simulation.  Before we can run the binary, however, we must tell&lt;br /&gt;
geogrid what data needs to be in these files, where it can find them, and what kind of preprocessing we wnat done.  This information is contained in a run-time configuration file called &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt;, which is&lt;br /&gt;
located in the &amp;lt;tt&amp;gt;geogrid&amp;lt;/tt&amp;gt; subdirectory.  The file that is released with WPS contains reasonable defaults&lt;br /&gt;
for the variables defined on the atmospheric grid, but we need to add two additional sections for the two fire&lt;br /&gt;
grid data sets that we have just created.  We will append the following sections to the file &lt;br /&gt;
&amp;lt;tt&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;===============================&lt;br /&gt;
name=NFUEL_CAT&lt;br /&gt;
        priority=1&lt;br /&gt;
	dest_type=categorical&lt;br /&gt;
	dominant_only=NFUEL_CAT&lt;br /&gt;
	z_dim_name=fuel_cat&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
	interp_option=default:nearest_neighbor&lt;br /&gt;
	abs_path=./landfire_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
name=ZSF&lt;br /&gt;
        priority = 1&lt;br /&gt;
        dest_type = continuous&lt;br /&gt;
        df_dx=DZDXF&lt;br /&gt;
        df_dy=DZDYF&lt;br /&gt;
        smooth_option = smth-desmth_special; smooth_passes=1&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
        interp_option = default:average_gcell(4.0)+four_pt+average_4pt&lt;br /&gt;
	abs_path=./ned_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
For &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt;, we will use simple nearest neighbor interpolation, while for &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, we will&lt;br /&gt;
use bilinear interpolation with smoothing.  Other configurations are possible.  See the [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/users_guide_chap3.htm#_Description_of_GEOGRID.TBL WPS users guide] for further information.  The full table used can be found [http://pastebin.com/kdymq5ff here].&lt;br /&gt;
&lt;br /&gt;
Once we make these changes to the &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt; file, and ensure that all of the directories are in the correct place (including the default geogrid dataset at &amp;lt;tt&amp;gt;../../wrfdata&amp;lt;/tt&amp;gt;), we can execute the geogrid binary.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./geogrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create a file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt; in the current directory, which can be found here,&lt;br /&gt;
[[File:geo_em.d01.nc.gz]].  The contents of this file can be viewed using your favorite NetCDF viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;geo_em.d01.nc&amp;quot; widths=&amp;quot;225px&amp;quot; heights=&amp;quot;225px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:nfuel_cat.png|The fuel category data interpolated to the model grid.The&lt;br /&gt;
File:zsf.png|The high resolution elevation (1/3&amp;quot;) data interpolated to the model grid.&lt;br /&gt;
File:hgt_m.png|The low resolution elevation data (30&amp;quot;) data interpolated to the atmospheric grid&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Here, we have visualized the fire grid variables, &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, as well as the &lt;br /&gt;
variable &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt;, which is the elevation data used by the atmospheric model.  We can compare&lt;br /&gt;
&amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt; to verify that our data conversion process worked.  The colormaps of these&lt;br /&gt;
two pictures have been aligned, so that we can make a quick visual check.  As we see, the two images do&lt;br /&gt;
have a similar structure and magnitude, but they do seem to suffer some misalignment.  Given that &lt;br /&gt;
the data came from two different sources, in two different projections, the error is relatively minor.  &lt;br /&gt;
Because WPS converts between projections in single precision, by default, there is likely a significant &lt;br /&gt;
issue with floating point error.  We may, in the future, consider making some changes so that this conversion is done in double precision.&lt;br /&gt;
&lt;br /&gt;
=Obtaining atmospheric data=&lt;br /&gt;
&lt;br /&gt;
There are a number of datasets available to initialize a WRF real run.  The &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/download/free_data.html WRF users page] lists&lt;br /&gt;
a few.  One challenge in running a fire simulation is finding a dataset of &lt;br /&gt;
sufficient resolution.  One (relatively) high resolution data source is the&lt;br /&gt;
North American Regional Reanalysis (NARR).  This is still only 32km resolution, so&lt;br /&gt;
no small scale weather patterns will appear in our simulation.  In general, we &lt;br /&gt;
will want to run a series of nested domains in order to catch some small scale weather&lt;br /&gt;
features; however, we will proceed with a single domain example.&lt;br /&gt;
&lt;br /&gt;
The NARR datasets are available after 3 months at the following website, &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/ http://nomads.ncdc.noaa.gov/data/narr/].&lt;br /&gt;
We will browse to the [http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/ directory] &lt;br /&gt;
containing the data for August 28, 2005. Our simulation runs from the hours 12-15 on this &lt;br /&gt;
day, so we will download the grib files for hours &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1200_000.grb 12] and &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1500_000.grb 15].&lt;br /&gt;
You can get these files also from here, [[File:narr-a_221_20050828_12-15.tgz]]. &lt;br /&gt;
&lt;br /&gt;
=Running ungrib=&lt;br /&gt;
&lt;br /&gt;
With the grib files downloaded, we need to link them into the WPS directory using the script&lt;br /&gt;
&amp;lt;tt&amp;gt;link_grib.csh&amp;lt;/tt&amp;gt;.  This script takes as arguments all of the grib files that are needed &lt;br /&gt;
for the simulation.  In this case, we can run the following command in the WPS directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./link_grib.csh &amp;lt;path to&amp;gt;/*.grb&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Substitute &amp;lt;path to&amp;gt; with the directory in which you have saved the grib files.  This command&lt;br /&gt;
creates a series of symbolic links with a predetermined naming sequence to all of the grib files&lt;br /&gt;
you pass as arguments.  You should now have two new soft links named &amp;lt;tt&amp;gt;GRIBFILE.AAA&amp;lt;/tt&amp;gt; and &lt;br /&gt;
&amp;lt;tt&amp;gt;GRIBFILE.AAB&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With the proper links in place, we need to tell ungrib what they contain.  This is done by copying a variable table into the main WPS directory.  Several variable tables are distributed with WPS which &lt;br /&gt;
describe common datasets.  You can find these in the directory &amp;lt;tt&amp;gt;WPS/ungrib/Variable_Tables&amp;lt;/tt&amp;gt;.&lt;br /&gt;
In particular, the file which corresponds to the NARR grib files is called &amp;lt;tt&amp;gt;Vtable.NARR&amp;lt;/tt&amp;gt;, so &lt;br /&gt;
we issue the following command to copy it into the current directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp ungrib/Variable_Tables/Vtable.NARR Vtable&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We are now ready to run the ungrib executable.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./ungrib.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create two files in the current directory named &amp;lt;tt&amp;gt;FILE:2005-08-28_12&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FILE:2005-08-28_15&amp;lt;/tt&amp;gt;.  You can download these files here, [[File:ungrib_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running metgrid=&lt;br /&gt;
&lt;br /&gt;
Metgrid will take the files created by ungrib and geogrid and combine them into a set of files.  At this point, all we need to do is run it.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./metgrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates two files named &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_12:00:00.nc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_15:00:00.nc&amp;lt;/tt&amp;gt;, which you can download here, [[File:metgrid_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running wrf=&lt;br /&gt;
&lt;br /&gt;
We are now finished with all steps involving WPS.  All we need to do is copy over the metgrid output&lt;br /&gt;
files over to our WRF real run directory at &amp;lt;tt&amp;gt;WRFV3/test/em_real&amp;lt;/tt&amp;gt; and configure our WRF namelist.&lt;br /&gt;
We will need to be sure that the domain description in &amp;lt;tt&amp;gt;namelist.input&amp;lt;/tt&amp;gt; matches that of &lt;br /&gt;
the &amp;lt;tt&amp;gt;namelist.wps&amp;lt;/tt&amp;gt; we created previously, otherwise WRF will refuse to run.  Pay particular attention&lt;br /&gt;
to the start/stop times and the grid sizes.  The fire ignition parameters are configured&lt;br /&gt;
in the same way as for the ideal case.  Relevant portion of the namelist we will use are given below.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt; &amp;amp;time_control&lt;br /&gt;
 run_days                            = 0,&lt;br /&gt;
 run_hours                           = 0,&lt;br /&gt;
 run_minutes                         = 2,&lt;br /&gt;
 run_seconds                         = 0,&lt;br /&gt;
 start_year                          = 2005,&lt;br /&gt;
 start_month                         = 08,&lt;br /&gt;
 start_day                           = 28,&lt;br /&gt;
 start_hour                          = 12,&lt;br /&gt;
 start_minute                        = 00,&lt;br /&gt;
 start_second                        = 00,&lt;br /&gt;
 end_year                            = 2005,&lt;br /&gt;
 end_month                           = 08,&lt;br /&gt;
 end_day                             = 28,&lt;br /&gt;
 end_hour                            = 15,&lt;br /&gt;
 end_minute                          = 00,&lt;br /&gt;
 end_second                          = 00,&lt;br /&gt;
 interval_seconds                    = 10800&lt;br /&gt;
 input_from_file                     = .true.,&lt;br /&gt;
 history_interval_s                  = 30,&lt;br /&gt;
 frames_per_outfile                  = 1000,&lt;br /&gt;
 restart                             = .false.,&lt;br /&gt;
 restart_interval                    = 1,&lt;br /&gt;
 io_form_history                     = 2&lt;br /&gt;
 io_form_restart                     = 2&lt;br /&gt;
 io_form_input                       = 2&lt;br /&gt;
 io_form_boundary                    = 2&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;domains&lt;br /&gt;
 time_step                           = 0,&lt;br /&gt;
 time_step_fract_num                 = 5,&lt;br /&gt;
 time_step_fract_den                 = 10,&lt;br /&gt;
 max_dom                             = 1,&lt;br /&gt;
 s_we                                = 1,&lt;br /&gt;
 e_we                                = 43,&lt;br /&gt;
 s_sn                                = 1,&lt;br /&gt;
 e_sn                                = 43,&lt;br /&gt;
 s_vert                              = 1,&lt;br /&gt;
 e_vert                              = 41,&lt;br /&gt;
 num_metgrid_levels                  = 30&lt;br /&gt;
 dx                                  = 60,&lt;br /&gt;
 dy                                  = 60,&lt;br /&gt;
 grid_id                             = 1,&lt;br /&gt;
 parent_id                           = 0,&lt;br /&gt;
 i_parent_start                      = 0,&lt;br /&gt;
 j_parent_start                      = 0,&lt;br /&gt;
 parent_grid_ratio                   = 1,&lt;br /&gt;
 parent_time_step_ratio              = 1,&lt;br /&gt;
 feedback                            = 1,&lt;br /&gt;
 smooth_option                       = 0&lt;br /&gt;
 sr_x                                = 10,&lt;br /&gt;
 sr_y                                = 10,&lt;br /&gt;
 sfcp_to_sfcp                        = .true.,&lt;br /&gt;
 p_top_requested                     = 10000&lt;br /&gt;
 /&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;bdy_control&lt;br /&gt;
 spec_bdy_width                      = 5,&lt;br /&gt;
 spec_zone                           = 1,&lt;br /&gt;
 relax_zone                          = 4,&lt;br /&gt;
 specified                           = .true.,&lt;br /&gt;
 periodic_x                          = .false.,&lt;br /&gt;
 symmetric_xs                        = .false.,&lt;br /&gt;
 symmetric_xe                        = .false.,&lt;br /&gt;
 open_xs                             = .false.,&lt;br /&gt;
 open_xe                             = .false.,&lt;br /&gt;
 periodic_y                          = .false.,&lt;br /&gt;
 symmetric_ys                        = .false.,&lt;br /&gt;
 symmetric_ye                        = .false.,&lt;br /&gt;
 open_ys                             = .false.,&lt;br /&gt;
 open_ye                             = .false.,&lt;br /&gt;
 nested                              = .false.,&lt;br /&gt;
 /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/thu8KDZF here].&lt;br /&gt;
&lt;br /&gt;
Once the namelist is properly configured we run the WRF real preprocessor.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./real.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates the initial and boundary files for the WRF simulation and fills all missing fields&lt;br /&gt;
from the grib data with reasonable defaults.  The files that it produces are &amp;lt;tt&amp;gt;wrfbdy_d01&amp;lt;/tt&amp;gt;&lt;br /&gt;
and &amp;lt;tt&amp;gt;wrfinput_d01&amp;lt;/tt&amp;gt;, which can be downloaded here [[File:wrf_real_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
Finally, we run the simulation.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./wrf.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The history file for this example can be downloaded here, [[File:wrf_real_history.tgz]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Data]]&lt;br /&gt;
[[Category:Howtos|Run WRF-Fire with real data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3023</id>
		<title>How to run WRF-SFIRE with real data</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3023"/>
		<updated>2016-11-07T19:37:58Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Downloading fuel category data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
Running WRF-Fire with real data is a process very similar to running WRF with real data for weather simulations.&lt;br /&gt;
The [http://www.mmm.ucar.edu/wrf/users WRF users page] has many &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/contents.html documents] and &lt;br /&gt;
[http://www2.mmm.ucar.edu/wrf/users/supports/tutorial.html tutorials] outlining this process.  The purpose&lt;br /&gt;
of this page is to provide a tutorial for using real data with WRF-Fire starting from scratch.  We begin with a quick outline of the&lt;br /&gt;
steps involved including links to the output of each step.  The user can use these linked files to start from any step or to verify &lt;br /&gt;
their own results.  Due to platform and compiler differences your output might differ slightly from those provided.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This page refers to data sources for the USA only. For other countries, you will need to make appropriate modifications yourself.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Outline=&lt;br /&gt;
&lt;br /&gt;
# [[How_to_get_WRF-Fire|Obtain WRF-Fire source code]].&lt;br /&gt;
# [[How_to_compile_WRF-Fire|Compile target em_real]].&lt;br /&gt;
# [[#Compiling WPS|Compile WPS]].&lt;br /&gt;
# [[#Configuring_the_domain|Configure your domain]].&lt;br /&gt;
# [[#Obtaining data for geogrid|Download geogrid datasets]].&lt;br /&gt;
# [[#Converting fire data|Convert fire data to geogrid format]].&lt;br /&gt;
# [[#Running geogrid|Run the geogrid executable]].&lt;br /&gt;
# [[#Obtaining atmospheric data|Download atmospheric data]].&lt;br /&gt;
# [[#Running ungrib|Run the ungrib executable]].&lt;br /&gt;
# [[#Running metgrid|Run the metgrid executable]].&lt;br /&gt;
# [[#Running wrf|Run real.exe and wrf.exe]].&lt;br /&gt;
&lt;br /&gt;
=Compiling WPS=&lt;br /&gt;
&lt;br /&gt;
After you have compiled WRF, you then need to go into the subdirectory &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; and run &lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;.  This will present you with a list of configuration options similar to those given by WRF.&lt;br /&gt;
You will need to chose one with the same compiler that you used to compile WRF.  Generally, it is unnecessary to compile WPS with parallel support.&lt;br /&gt;
GRIB2 support is only necessary if your atmospheric data source requires it.  Once you have chosen a configuration, you can compile with&lt;br /&gt;
&amp;lt;pre&amp;gt;./compile &amp;gt;&amp;amp; compile.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to check for errors in the log file generated.&lt;br /&gt;
&lt;br /&gt;
=Configuring the domain=&lt;br /&gt;
&lt;br /&gt;
The physical domain is configured in the geogrid section of namelist.wps in the WPS directory.  In this section, you should define&lt;br /&gt;
the geographic projection with &amp;lt;tt&amp;gt;map_proj&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat1&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat2&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;stand_lon&amp;lt;/tt&amp;gt;.  Available projections&lt;br /&gt;
include &amp;lt;tt&amp;gt;&#039;lambert&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;polar&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;mercator&#039;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;&#039;lat-lon&#039;&amp;lt;/tt&amp;gt;.  The lower left corner of the domain is located at&lt;br /&gt;
&amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; longitude and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; latitude.  The computational grid is defined by &amp;lt;tt&amp;gt;e_we/e_sn&amp;lt;/tt&amp;gt;, the number of (staggered) grid&lt;br /&gt;
points in the west-east/south-north direction, and the grid resolution is defined by &amp;lt;tt&amp;gt;dx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;dy&amp;lt;/tt&amp;gt; in meters. &lt;br /&gt;
We also specify a path to where we will put the static dataset that geogrid will read from, and we specify the highest resolution (30 arc minutes) that this &lt;br /&gt;
data is released in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;geogrid&lt;br /&gt;
 e_we              =  43,&lt;br /&gt;
 e_sn              =  43,&lt;br /&gt;
 geog_data_res     = &#039;30s&#039;,&lt;br /&gt;
 dx = 60,&lt;br /&gt;
 dy = 60,&lt;br /&gt;
 map_proj  = &#039;lambert&#039;,&lt;br /&gt;
 ref_lat   =  39.70537,&lt;br /&gt;
 ref_lon   = -107.2907,&lt;br /&gt;
 truelat1  =  39.338,&lt;br /&gt;
 truelat2  =  39.338,&lt;br /&gt;
 stand_lon = -106.807,&lt;br /&gt;
 geog_data_path = &#039;../../wrfdata/geog&#039;&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The share section of the WPS namelist defines the fire subgrid refinement in &amp;lt;tt&amp;gt;subgrid_ratio_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;subgrid_ratio_y&amp;lt;/tt&amp;gt;.  This means &lt;br /&gt;
that the fire grid will be a 10 time refined grid at a resolution of 6 meters by 6 meters.  The &amp;lt;tt&amp;gt;start_date&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;end_data&amp;lt;/tt&amp;gt; parameters specify&lt;br /&gt;
the time window that the simulation will be run in.  Atmospheric data must be available at both temporal boundaries.  The &amp;lt;tt&amp;gt;interval_seconds&amp;lt;/tt&amp;gt; &lt;br /&gt;
parameter tells WPS the number of seconds between each atmospheric dataset.  For our example, we&lt;br /&gt;
will be using the NARR dataset which is released daily every three hours or 10,800 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;share&lt;br /&gt;
 wrf_core = &#039;ARW&#039;,&lt;br /&gt;
 max_dom = 1,&lt;br /&gt;
 start_date = &#039;2005-08-28_12:00:00&#039;,&lt;br /&gt;
 end_date   = &#039;2005-08-28_15:00:00&#039;,&lt;br /&gt;
 interval_seconds = 10800,&lt;br /&gt;
 io_form_geogrid = 2,&lt;br /&gt;
 subgrid_ratio_x = 10,&lt;br /&gt;
 subgrid_ratio_y = 10,&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/2u3YXkHS here].&lt;br /&gt;
&lt;br /&gt;
=Obtaining data for geogrid=&lt;br /&gt;
&lt;br /&gt;
First you must download and uncompress the standard [http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz geogrid input data].&lt;br /&gt;
This is a 429 MB compressed tarball that uncompresses to around 11 GB.  It contains all of the static data that geogrid needs for a standard&lt;br /&gt;
weather simulation; however, for a WRF-Fire simulation we need to fill in two additional fields that are too big to release in a single download for the&lt;br /&gt;
whole globe.  We first need to determine the approximate latitude and longitude bounds for our domain.&lt;br /&gt;
&lt;br /&gt;
We know the coordinates in the lower left corner from the &amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; parameters of the namelist.  We can estimate the&lt;br /&gt;
coordinates of the upper right corner by the approximate ratio 9e-6 degrees per meter.  So, the upper right corner of our domain is at approximately&lt;br /&gt;
-107.2675 longitude and 39.7286 latitude.  For the purposes of downloading data, we will expand this region to the range&lt;br /&gt;
-107.35 through -107.2 longitude and 39.6 through 39.75 latitude.&lt;br /&gt;
&lt;br /&gt;
==Downloading fuel category data==&lt;br /&gt;
&lt;br /&gt;
For the United States, Anderson 13 fuel category data is available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website.  Upon opening the national map, &lt;br /&gt;
click roughly on your are of interest, the map will zoom in, you will see a menu on the top of the screen.  Click on the earth icon, that should display a drop down menu, and select option &#039;Download Data&#039;&lt;br /&gt;
[[File:Landfire1.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
This will open a new window on the right. Click on &#039;x y&#039; icon that will open a form that lets you key in the the longitude and latitude range of your selection.  In this window, we will input the coordinates computed earlier, and below we will select &#039;LF_2014 (LF_140)&#039;, then &#039;Fuel&#039;, and &#039;us_140 13 Fire Behavior Fuel Models-Anderson, and click &#039;Add Area&#039; button.&lt;br /&gt;
[[File:landfire2.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window, click on &amp;quot;modify data request&amp;quot;.  This window lists all of the available data products for the selected region.  You want to check the box &lt;br /&gt;
next to &amp;quot;US_140 13 Fire Behavior Fuel Models-Anderson&amp;quot; and change the data format from &amp;quot;ArcGRID_with_attribs&amp;quot; to &amp;quot;GeoTIFF_with _attribs&amp;quot;. At the bottom make sure &amp;quot;Maximum size (MB) per piece:&amp;quot; is set to 250. Then go to the bottom of the page and click &amp;quot;Save Changes&amp;quot;.&lt;br /&gt;
[[File:landfir3.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Finally, click &amp;quot;Download&amp;quot;.  The file will be a compressed archive containing, among others, a GeoTIFF file.  The name of the file will be different for each request, &lt;br /&gt;
but in this example we have &amp;lt;tt&amp;gt;lf02588871.zip&amp;lt;/tt&amp;gt; containing the GeoTIFF file &amp;lt;tt&amp;gt;lf02588871.tif&amp;lt;/tt&amp;gt;, which can be found here, [[File:lf02588871.tif]].&lt;br /&gt;
&lt;br /&gt;
==Downloading high resolution elevation data==&lt;br /&gt;
&lt;br /&gt;
Another USGS website serves topographical data of sufficient resolution for our 6 meter resolution fire grid.  This dataset is called the National Elevation Dataset (NED) and &lt;br /&gt;
can be accessed at [http://seamless.usgs.gov/ http://seamless.usgs.gov/].  The interface is similar to that of the Landfire national map.  Click on the icon circled in blue.&lt;br /&gt;
[[File:Ned_menu.png|center|thumb|The NED menu.]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Again, we key in the coordinates determined before and click the modify data request button.  In the data product selection page, we select &amp;quot;National Elevation Dataset (NED) 1/3 Arc Second&amp;quot; and change&lt;br /&gt;
to GeoTIFF format.  Then download the data&lt;br /&gt;
set, which can be found here, [[File:09159064.tif]].&lt;br /&gt;
[[File:Ned data product.png|center|thumb|The NED data product selection page]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Converting fuel data=&lt;br /&gt;
&lt;br /&gt;
This section describes converting data from geotiff to geogrid format.  Alternatively, you can use the version of geogrid from our repository and read the geotiff file directly.  For details see [[WPS_with_GeoTIFF_support]].&lt;br /&gt;
&lt;br /&gt;
In order for geogrid to be able to read this data, we need to convert it into an intermediate format.  We will be using a utility program&lt;br /&gt;
released with autoWPS to accomplish this.  For information on how to obtain and compile this tool, see [[How_to_convert_data_for_Geogrid]].  We will place the &amp;lt;tt&amp;gt;convert_geotiff.x&amp;lt;/tt&amp;gt; binary and the GeoTIFF&lt;br /&gt;
data files in the main WPS directory.&lt;br /&gt;
To convert the fuel category data, we will create new directories inside the WPS directory called &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt;.  Inside the &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; directory, we&lt;br /&gt;
issue the following command to convert the fuel category data.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -c 13 -w 1 -u &amp;quot;fuel category&amp;quot; -d &amp;quot;Anderson 13 fire behavior categories&amp;quot; ../lf02588871.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The resulting &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file created as follows.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = albers_nad83&lt;br /&gt;
truelat1 = 29.500000&lt;br /&gt;
truelat2 = 45.500000&lt;br /&gt;
stdlon = -96.000000&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 606&lt;br /&gt;
known_lat = 39.747818&lt;br /&gt;
known_lon = -107.373398&lt;br /&gt;
dx = 3.000000e+01&lt;br /&gt;
dy = 3.000000e+01&lt;br /&gt;
type = categorical&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;fuel category&amp;quot;&lt;br /&gt;
description = &amp;quot;Anderson 13 fire behavior categories&amp;quot;&lt;br /&gt;
wordsize = 1&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
category_min = 1&lt;br /&gt;
category_max = 14&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We have chosen to set the word size to 1 byte because it can represent 256 categories, plenty for&lt;br /&gt;
this purpose.&lt;br /&gt;
Notice that the program has changed the number of categories to 14 and uses the last category&lt;br /&gt;
to indicate that the source data was out of the range 1-13.  For the fuel category data, this represents&lt;br /&gt;
that there is no fuel present, due to a lake, river, road, etc.  &lt;br /&gt;
&lt;br /&gt;
We can check that the projection information entered into the index file is correct, by running the &lt;br /&gt;
&amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; binary that is installed with libGeoTIFF.  In this case, &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; tells us &lt;br /&gt;
that the source file contains the following projection parameters.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Projection Method: CT_AlbersEqualArea&lt;br /&gt;
   ProjStdParallel1GeoKey: 29.500000 ( 29d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjStdParallel2GeoKey: 45.500000 ( 45d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLatGeoKey: 23.000000 ( 23d 0&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLongGeoKey: -96.000000 ( 96d 0&#039; 0.00&amp;quot;W)&lt;br /&gt;
   ProjFalseEastingGeoKey: 0.000000 m&lt;br /&gt;
   ProjFalseNorthingGeoKey: 0.000000 m&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
Projection Linear Units: 9001/metre (1.000000m)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    ( -963525.000, 1916445.000)  (-107.3734004,39.7478163)&lt;br /&gt;
Lower Left    ( -963525.000, 1898265.000)  (-107.3478974,39.5867431)&lt;br /&gt;
Upper Right   ( -948885.000, 1916445.000)  (-107.2021990,39.7632976)&lt;br /&gt;
Lower Right   ( -948885.000, 1898265.000)  (-107.1770727,39.6021889)&lt;br /&gt;
Center        ( -956205.000, 1907355.000)  (-107.2751374,39.6750401)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can see that the conversion detected the projection correctly.  The small difference in the&lt;br /&gt;
coordinates of the upper left corner reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; and that in the index file is&lt;br /&gt;
due to floating point error and is much less than the resolution of the data. &lt;br /&gt;
&lt;br /&gt;
Finally, we go to the &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt; directory to convert the &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; variable.  In this case,&lt;br /&gt;
we issue the following command.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -u meters -d &#039;National Elevation Dataset 1/3 arcsecond resolution&#039; ../09159064.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This produces the following &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = regular_ll&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 1621&lt;br /&gt;
known_lat = 39.750092&lt;br /&gt;
known_lon = -107.350090&lt;br /&gt;
dx = 9.259259e-05&lt;br /&gt;
dy = 9.259259e-05&lt;br /&gt;
type = continuous&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;meters&amp;quot;&lt;br /&gt;
description = &amp;quot;National Elevation Dataset 1/3 arcsecond resolution&amp;quot;&lt;br /&gt;
wordsize = 2&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Here we have used the default word size of 2 bytes and a scale factor of 1.0, &lt;br /&gt;
which can represent any elevation in the world&lt;br /&gt;
with 1 meter accuracy, which is approximately the accuracy of the source data.&lt;br /&gt;
&lt;br /&gt;
Again, we compare the projection parameters in the index file with that reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt;&lt;br /&gt;
and find that the conversion was correct.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;      Keyed_Information:&lt;br /&gt;
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic&lt;br /&gt;
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea&lt;br /&gt;
      GeographicTypeGeoKey (Short,1): GCS_NAD83&lt;br /&gt;
      GeogCitationGeoKey (Ascii,6): &amp;quot;NAD83&amp;quot;&lt;br /&gt;
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree&lt;br /&gt;
      End_Of_Keys.&lt;br /&gt;
   End_Of_Geotiff.&lt;br /&gt;
&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    (-107.3500926,39.7500926)&lt;br /&gt;
Lower Left    (-107.3500926,39.6000000)&lt;br /&gt;
Upper Right   (-107.2000000,39.7500926)&lt;br /&gt;
Lower Right   (-107.2000000,39.6000000)&lt;br /&gt;
Center        (-107.2750463,39.6750463)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the converted data can be found here, [[File:Landfire_data.tgz]], and here, [[File:Ned_data.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running geogrid=&lt;br /&gt;
&lt;br /&gt;
The geogrid binary will create a netcdf file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt;.  This file will contain all&lt;br /&gt;
of the static data necessary to run your simulation.  Before we can run the binary, however, we must tell&lt;br /&gt;
geogrid what data needs to be in these files, where it can find them, and what kind of preprocessing we wnat done.  This information is contained in a run-time configuration file called &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt;, which is&lt;br /&gt;
located in the &amp;lt;tt&amp;gt;geogrid&amp;lt;/tt&amp;gt; subdirectory.  The file that is released with WPS contains reasonable defaults&lt;br /&gt;
for the variables defined on the atmospheric grid, but we need to add two additional sections for the two fire&lt;br /&gt;
grid data sets that we have just created.  We will append the following sections to the file &lt;br /&gt;
&amp;lt;tt&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;===============================&lt;br /&gt;
name=NFUEL_CAT&lt;br /&gt;
        priority=1&lt;br /&gt;
	dest_type=categorical&lt;br /&gt;
	dominant_only=NFUEL_CAT&lt;br /&gt;
	z_dim_name=fuel_cat&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
	interp_option=default:nearest_neighbor&lt;br /&gt;
	abs_path=./landfire_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
name=ZSF&lt;br /&gt;
        priority = 1&lt;br /&gt;
        dest_type = continuous&lt;br /&gt;
        df_dx=DZDXF&lt;br /&gt;
        df_dy=DZDYF&lt;br /&gt;
        smooth_option = smth-desmth_special; smooth_passes=1&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
        interp_option = default:average_gcell(4.0)+four_pt+average_4pt&lt;br /&gt;
	abs_path=./ned_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
For &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt;, we will use simple nearest neighbor interpolation, while for &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, we will&lt;br /&gt;
use bilinear interpolation with smoothing.  Other configurations are possible.  See the [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/users_guide_chap3.htm#_Description_of_GEOGRID.TBL WPS users guide] for further information.  The full table used can be found [http://pastebin.com/kdymq5ff here].&lt;br /&gt;
&lt;br /&gt;
Once we make these changes to the &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt; file, and ensure that all of the directories are in the correct place (including the default geogrid dataset at &amp;lt;tt&amp;gt;../../wrfdata&amp;lt;/tt&amp;gt;), we can execute the geogrid binary.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./geogrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create a file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt; in the current directory, which can be found here,&lt;br /&gt;
[[File:geo_em.d01.nc.gz]].  The contents of this file can be viewed using your favorite NetCDF viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;geo_em.d01.nc&amp;quot; widths=&amp;quot;225px&amp;quot; heights=&amp;quot;225px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:nfuel_cat.png|The fuel category data interpolated to the model grid.The&lt;br /&gt;
File:zsf.png|The high resolution elevation (1/3&amp;quot;) data interpolated to the model grid.&lt;br /&gt;
File:hgt_m.png|The low resolution elevation data (30&amp;quot;) data interpolated to the atmospheric grid&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Here, we have visualized the fire grid variables, &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, as well as the &lt;br /&gt;
variable &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt;, which is the elevation data used by the atmospheric model.  We can compare&lt;br /&gt;
&amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt; to verify that our data conversion process worked.  The colormaps of these&lt;br /&gt;
two pictures have been aligned, so that we can make a quick visual check.  As we see, the two images do&lt;br /&gt;
have a similar structure and magnitude, but they do seem to suffer some misalignment.  Given that &lt;br /&gt;
the data came from two different sources, in two different projections, the error is relatively minor.  &lt;br /&gt;
Because WPS converts between projections in single precision, by default, there is likely a significant &lt;br /&gt;
issue with floating point error.  We may, in the future, consider making some changes so that this conversion is done in double precision.&lt;br /&gt;
&lt;br /&gt;
=Obtaining atmospheric data=&lt;br /&gt;
&lt;br /&gt;
There are a number of datasets available to initialize a WRF real run.  The &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/download/free_data.html WRF users page] lists&lt;br /&gt;
a few.  One challenge in running a fire simulation is finding a dataset of &lt;br /&gt;
sufficient resolution.  One (relatively) high resolution data source is the&lt;br /&gt;
North American Regional Reanalysis (NARR).  This is still only 32km resolution, so&lt;br /&gt;
no small scale weather patterns will appear in our simulation.  In general, we &lt;br /&gt;
will want to run a series of nested domains in order to catch some small scale weather&lt;br /&gt;
features; however, we will proceed with a single domain example.&lt;br /&gt;
&lt;br /&gt;
The NARR datasets are available after 3 months at the following website, &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/ http://nomads.ncdc.noaa.gov/data/narr/].&lt;br /&gt;
We will browse to the [http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/ directory] &lt;br /&gt;
containing the data for August 28, 2005. Our simulation runs from the hours 12-15 on this &lt;br /&gt;
day, so we will download the grib files for hours &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1200_000.grb 12] and &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1500_000.grb 15].&lt;br /&gt;
You can get these files also from here, [[File:narr-a_221_20050828_12-15.tgz]]. &lt;br /&gt;
&lt;br /&gt;
=Running ungrib=&lt;br /&gt;
&lt;br /&gt;
With the grib files downloaded, we need to link them into the WPS directory using the script&lt;br /&gt;
&amp;lt;tt&amp;gt;link_grib.csh&amp;lt;/tt&amp;gt;.  This script takes as arguments all of the grib files that are needed &lt;br /&gt;
for the simulation.  In this case, we can run the following command in the WPS directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./link_grib.csh &amp;lt;path to&amp;gt;/*.grb&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Substitute &amp;lt;path to&amp;gt; with the directory in which you have saved the grib files.  This command&lt;br /&gt;
creates a series of symbolic links with a predetermined naming sequence to all of the grib files&lt;br /&gt;
you pass as arguments.  You should now have two new soft links named &amp;lt;tt&amp;gt;GRIBFILE.AAA&amp;lt;/tt&amp;gt; and &lt;br /&gt;
&amp;lt;tt&amp;gt;GRIBFILE.AAB&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With the proper links in place, we need to tell ungrib what they contain.  This is done by copying a variable table into the main WPS directory.  Several variable tables are distributed with WPS which &lt;br /&gt;
describe common datasets.  You can find these in the directory &amp;lt;tt&amp;gt;WPS/ungrib/Variable_Tables&amp;lt;/tt&amp;gt;.&lt;br /&gt;
In particular, the file which corresponds to the NARR grib files is called &amp;lt;tt&amp;gt;Vtable.NARR&amp;lt;/tt&amp;gt;, so &lt;br /&gt;
we issue the following command to copy it into the current directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp ungrib/Variable_Tables/Vtable.NARR Vtable&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We are now ready to run the ungrib executable.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./ungrib.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create two files in the current directory named &amp;lt;tt&amp;gt;FILE:2005-08-28_12&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FILE:2005-08-28_15&amp;lt;/tt&amp;gt;.  You can download these files here, [[File:ungrib_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running metgrid=&lt;br /&gt;
&lt;br /&gt;
Metgrid will take the files created by ungrib and geogrid and combine them into a set of files.  At this point, all we need to do is run it.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./metgrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates two files named &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_12:00:00.nc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_15:00:00.nc&amp;lt;/tt&amp;gt;, which you can download here, [[File:metgrid_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running wrf=&lt;br /&gt;
&lt;br /&gt;
We are now finished with all steps involving WPS.  All we need to do is copy over the metgrid output&lt;br /&gt;
files over to our WRF real run directory at &amp;lt;tt&amp;gt;WRFV3/test/em_real&amp;lt;/tt&amp;gt; and configure our WRF namelist.&lt;br /&gt;
We will need to be sure that the domain description in &amp;lt;tt&amp;gt;namelist.input&amp;lt;/tt&amp;gt; matches that of &lt;br /&gt;
the &amp;lt;tt&amp;gt;namelist.wps&amp;lt;/tt&amp;gt; we created previously, otherwise WRF will refuse to run.  Pay particular attention&lt;br /&gt;
to the start/stop times and the grid sizes.  The fire ignition parameters are configured&lt;br /&gt;
in the same way as for the ideal case.  Relevant portion of the namelist we will use are given below.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt; &amp;amp;time_control&lt;br /&gt;
 run_days                            = 0,&lt;br /&gt;
 run_hours                           = 0,&lt;br /&gt;
 run_minutes                         = 2,&lt;br /&gt;
 run_seconds                         = 0,&lt;br /&gt;
 start_year                          = 2005,&lt;br /&gt;
 start_month                         = 08,&lt;br /&gt;
 start_day                           = 28,&lt;br /&gt;
 start_hour                          = 12,&lt;br /&gt;
 start_minute                        = 00,&lt;br /&gt;
 start_second                        = 00,&lt;br /&gt;
 end_year                            = 2005,&lt;br /&gt;
 end_month                           = 08,&lt;br /&gt;
 end_day                             = 28,&lt;br /&gt;
 end_hour                            = 15,&lt;br /&gt;
 end_minute                          = 00,&lt;br /&gt;
 end_second                          = 00,&lt;br /&gt;
 interval_seconds                    = 10800&lt;br /&gt;
 input_from_file                     = .true.,&lt;br /&gt;
 history_interval_s                  = 30,&lt;br /&gt;
 frames_per_outfile                  = 1000,&lt;br /&gt;
 restart                             = .false.,&lt;br /&gt;
 restart_interval                    = 1,&lt;br /&gt;
 io_form_history                     = 2&lt;br /&gt;
 io_form_restart                     = 2&lt;br /&gt;
 io_form_input                       = 2&lt;br /&gt;
 io_form_boundary                    = 2&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;domains&lt;br /&gt;
 time_step                           = 0,&lt;br /&gt;
 time_step_fract_num                 = 5,&lt;br /&gt;
 time_step_fract_den                 = 10,&lt;br /&gt;
 max_dom                             = 1,&lt;br /&gt;
 s_we                                = 1,&lt;br /&gt;
 e_we                                = 43,&lt;br /&gt;
 s_sn                                = 1,&lt;br /&gt;
 e_sn                                = 43,&lt;br /&gt;
 s_vert                              = 1,&lt;br /&gt;
 e_vert                              = 41,&lt;br /&gt;
 num_metgrid_levels                  = 30&lt;br /&gt;
 dx                                  = 60,&lt;br /&gt;
 dy                                  = 60,&lt;br /&gt;
 grid_id                             = 1,&lt;br /&gt;
 parent_id                           = 0,&lt;br /&gt;
 i_parent_start                      = 0,&lt;br /&gt;
 j_parent_start                      = 0,&lt;br /&gt;
 parent_grid_ratio                   = 1,&lt;br /&gt;
 parent_time_step_ratio              = 1,&lt;br /&gt;
 feedback                            = 1,&lt;br /&gt;
 smooth_option                       = 0&lt;br /&gt;
 sr_x                                = 10,&lt;br /&gt;
 sr_y                                = 10,&lt;br /&gt;
 sfcp_to_sfcp                        = .true.,&lt;br /&gt;
 p_top_requested                     = 10000&lt;br /&gt;
 /&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;bdy_control&lt;br /&gt;
 spec_bdy_width                      = 5,&lt;br /&gt;
 spec_zone                           = 1,&lt;br /&gt;
 relax_zone                          = 4,&lt;br /&gt;
 specified                           = .true.,&lt;br /&gt;
 periodic_x                          = .false.,&lt;br /&gt;
 symmetric_xs                        = .false.,&lt;br /&gt;
 symmetric_xe                        = .false.,&lt;br /&gt;
 open_xs                             = .false.,&lt;br /&gt;
 open_xe                             = .false.,&lt;br /&gt;
 periodic_y                          = .false.,&lt;br /&gt;
 symmetric_ys                        = .false.,&lt;br /&gt;
 symmetric_ye                        = .false.,&lt;br /&gt;
 open_ys                             = .false.,&lt;br /&gt;
 open_ye                             = .false.,&lt;br /&gt;
 nested                              = .false.,&lt;br /&gt;
 /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/thu8KDZF here].&lt;br /&gt;
&lt;br /&gt;
Once the namelist is properly configured we run the WRF real preprocessor.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./real.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates the initial and boundary files for the WRF simulation and fills all missing fields&lt;br /&gt;
from the grib data with reasonable defaults.  The files that it produces are &amp;lt;tt&amp;gt;wrfbdy_d01&amp;lt;/tt&amp;gt;&lt;br /&gt;
and &amp;lt;tt&amp;gt;wrfinput_d01&amp;lt;/tt&amp;gt;, which can be downloaded here [[File:wrf_real_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
Finally, we run the simulation.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./wrf.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The history file for this example can be downloaded here, [[File:wrf_real_history.tgz]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Data]]&lt;br /&gt;
[[Category:Howtos|Run WRF-Fire with real data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:Landfire3.png&amp;diff=3022</id>
		<title>File:Landfire3.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:Landfire3.png&amp;diff=3022"/>
		<updated>2016-11-07T19:36:07Z</updated>

		<summary type="html">&lt;p&gt;Adamko: Landfire third menu with data format selection&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Landfire third menu with data format selection&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:Landfire2.png&amp;diff=3021</id>
		<title>File:Landfire2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:Landfire2.png&amp;diff=3021"/>
		<updated>2016-11-07T19:30:38Z</updated>

		<summary type="html">&lt;p&gt;Adamko: Landfire second menu with lat lon and data selection&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Landfire second menu with lat lon and data selection&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3020</id>
		<title>How to run WRF-SFIRE with real data</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3020"/>
		<updated>2016-11-07T19:27:04Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Downloading fuel category data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
Running WRF-Fire with real data is a process very similar to running WRF with real data for weather simulations.&lt;br /&gt;
The [http://www.mmm.ucar.edu/wrf/users WRF users page] has many &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/contents.html documents] and &lt;br /&gt;
[http://www2.mmm.ucar.edu/wrf/users/supports/tutorial.html tutorials] outlining this process.  The purpose&lt;br /&gt;
of this page is to provide a tutorial for using real data with WRF-Fire starting from scratch.  We begin with a quick outline of the&lt;br /&gt;
steps involved including links to the output of each step.  The user can use these linked files to start from any step or to verify &lt;br /&gt;
their own results.  Due to platform and compiler differences your output might differ slightly from those provided.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This page refers to data sources for the USA only. For other countries, you will need to make appropriate modifications yourself.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Outline=&lt;br /&gt;
&lt;br /&gt;
# [[How_to_get_WRF-Fire|Obtain WRF-Fire source code]].&lt;br /&gt;
# [[How_to_compile_WRF-Fire|Compile target em_real]].&lt;br /&gt;
# [[#Compiling WPS|Compile WPS]].&lt;br /&gt;
# [[#Configuring_the_domain|Configure your domain]].&lt;br /&gt;
# [[#Obtaining data for geogrid|Download geogrid datasets]].&lt;br /&gt;
# [[#Converting fire data|Convert fire data to geogrid format]].&lt;br /&gt;
# [[#Running geogrid|Run the geogrid executable]].&lt;br /&gt;
# [[#Obtaining atmospheric data|Download atmospheric data]].&lt;br /&gt;
# [[#Running ungrib|Run the ungrib executable]].&lt;br /&gt;
# [[#Running metgrid|Run the metgrid executable]].&lt;br /&gt;
# [[#Running wrf|Run real.exe and wrf.exe]].&lt;br /&gt;
&lt;br /&gt;
=Compiling WPS=&lt;br /&gt;
&lt;br /&gt;
After you have compiled WRF, you then need to go into the subdirectory &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; and run &lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;.  This will present you with a list of configuration options similar to those given by WRF.&lt;br /&gt;
You will need to chose one with the same compiler that you used to compile WRF.  Generally, it is unnecessary to compile WPS with parallel support.&lt;br /&gt;
GRIB2 support is only necessary if your atmospheric data source requires it.  Once you have chosen a configuration, you can compile with&lt;br /&gt;
&amp;lt;pre&amp;gt;./compile &amp;gt;&amp;amp; compile.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to check for errors in the log file generated.&lt;br /&gt;
&lt;br /&gt;
=Configuring the domain=&lt;br /&gt;
&lt;br /&gt;
The physical domain is configured in the geogrid section of namelist.wps in the WPS directory.  In this section, you should define&lt;br /&gt;
the geographic projection with &amp;lt;tt&amp;gt;map_proj&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat1&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat2&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;stand_lon&amp;lt;/tt&amp;gt;.  Available projections&lt;br /&gt;
include &amp;lt;tt&amp;gt;&#039;lambert&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;polar&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;mercator&#039;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;&#039;lat-lon&#039;&amp;lt;/tt&amp;gt;.  The lower left corner of the domain is located at&lt;br /&gt;
&amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; longitude and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; latitude.  The computational grid is defined by &amp;lt;tt&amp;gt;e_we/e_sn&amp;lt;/tt&amp;gt;, the number of (staggered) grid&lt;br /&gt;
points in the west-east/south-north direction, and the grid resolution is defined by &amp;lt;tt&amp;gt;dx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;dy&amp;lt;/tt&amp;gt; in meters. &lt;br /&gt;
We also specify a path to where we will put the static dataset that geogrid will read from, and we specify the highest resolution (30 arc minutes) that this &lt;br /&gt;
data is released in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;geogrid&lt;br /&gt;
 e_we              =  43,&lt;br /&gt;
 e_sn              =  43,&lt;br /&gt;
 geog_data_res     = &#039;30s&#039;,&lt;br /&gt;
 dx = 60,&lt;br /&gt;
 dy = 60,&lt;br /&gt;
 map_proj  = &#039;lambert&#039;,&lt;br /&gt;
 ref_lat   =  39.70537,&lt;br /&gt;
 ref_lon   = -107.2907,&lt;br /&gt;
 truelat1  =  39.338,&lt;br /&gt;
 truelat2  =  39.338,&lt;br /&gt;
 stand_lon = -106.807,&lt;br /&gt;
 geog_data_path = &#039;../../wrfdata/geog&#039;&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The share section of the WPS namelist defines the fire subgrid refinement in &amp;lt;tt&amp;gt;subgrid_ratio_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;subgrid_ratio_y&amp;lt;/tt&amp;gt;.  This means &lt;br /&gt;
that the fire grid will be a 10 time refined grid at a resolution of 6 meters by 6 meters.  The &amp;lt;tt&amp;gt;start_date&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;end_data&amp;lt;/tt&amp;gt; parameters specify&lt;br /&gt;
the time window that the simulation will be run in.  Atmospheric data must be available at both temporal boundaries.  The &amp;lt;tt&amp;gt;interval_seconds&amp;lt;/tt&amp;gt; &lt;br /&gt;
parameter tells WPS the number of seconds between each atmospheric dataset.  For our example, we&lt;br /&gt;
will be using the NARR dataset which is released daily every three hours or 10,800 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;share&lt;br /&gt;
 wrf_core = &#039;ARW&#039;,&lt;br /&gt;
 max_dom = 1,&lt;br /&gt;
 start_date = &#039;2005-08-28_12:00:00&#039;,&lt;br /&gt;
 end_date   = &#039;2005-08-28_15:00:00&#039;,&lt;br /&gt;
 interval_seconds = 10800,&lt;br /&gt;
 io_form_geogrid = 2,&lt;br /&gt;
 subgrid_ratio_x = 10,&lt;br /&gt;
 subgrid_ratio_y = 10,&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/2u3YXkHS here].&lt;br /&gt;
&lt;br /&gt;
=Obtaining data for geogrid=&lt;br /&gt;
&lt;br /&gt;
First you must download and uncompress the standard [http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz geogrid input data].&lt;br /&gt;
This is a 429 MB compressed tarball that uncompresses to around 11 GB.  It contains all of the static data that geogrid needs for a standard&lt;br /&gt;
weather simulation; however, for a WRF-Fire simulation we need to fill in two additional fields that are too big to release in a single download for the&lt;br /&gt;
whole globe.  We first need to determine the approximate latitude and longitude bounds for our domain.&lt;br /&gt;
&lt;br /&gt;
We know the coordinates in the lower left corner from the &amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; parameters of the namelist.  We can estimate the&lt;br /&gt;
coordinates of the upper right corner by the approximate ratio 9e-6 degrees per meter.  So, the upper right corner of our domain is at approximately&lt;br /&gt;
-107.2675 longitude and 39.7286 latitude.  For the purposes of downloading data, we will expand this region to the range&lt;br /&gt;
-107.35 through -107.2 longitude and 39.6 through 39.75 latitude.&lt;br /&gt;
&lt;br /&gt;
==Downloading fuel category data==&lt;br /&gt;
&lt;br /&gt;
For the United States, Anderson 13 fuel category data is available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website.  Upon opening the national map, &lt;br /&gt;
click roughly on your are of interest, the map will zoom in, you will see a menu on the top of the screen.  Click on the earth icon, that should display a drop down menu, and select option &#039;Download Data&#039;&lt;br /&gt;
[[File:Landfire1.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
This will open a new window on the right. Click on &#039;x y&#039; icon that will open a form that lets you key in the the longitude and latitude range of your selection.  In this window, we will input the coordinates computed earlier, and below we will select &#039;LF_2014 (LF_140)&#039;, then &#039;Fuel&#039;, and &#039;us_140 13 Fire Behavior Fuel Models-Anderson, and click &#039;Add Area&#039; button.&lt;br /&gt;
[[File:landfire2.png]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window, click on &amp;quot;modify data request&amp;quot;.  This window lists all of the available data products for the selected region.  You want to check the box &lt;br /&gt;
next to &amp;quot;US_140 13 Fire Behavior Fuel Models-Anderson&amp;quot; and change the data format from &amp;quot;ArcGRID_with_attribs&amp;quot; to &amp;quot;GeoTIFF_with _attribs&amp;quot;. At the bottom make sure &amp;quot;Maximum size (MB) per piece:&amp;quot; is set to 250. Then go to the bottom of the page and click &amp;quot;Save Changes&amp;quot;.&lt;br /&gt;
[[File:landfire_data_products.png|center|thumb|Data product selection.]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Finally, click &amp;quot;Download&amp;quot;.  The file will be a compressed archive containing, among others, a GeoTIFF file.  The name of the file will be different for each request, &lt;br /&gt;
but in this example we have &amp;lt;tt&amp;gt;lf02588871.zip&amp;lt;/tt&amp;gt; containing the GeoTIFF file &amp;lt;tt&amp;gt;lf02588871.tif&amp;lt;/tt&amp;gt;, which can be found here, [[File:lf02588871.tif]].&lt;br /&gt;
&lt;br /&gt;
==Downloading high resolution elevation data==&lt;br /&gt;
&lt;br /&gt;
Another USGS website serves topographical data of sufficient resolution for our 6 meter resolution fire grid.  This dataset is called the National Elevation Dataset (NED) and &lt;br /&gt;
can be accessed at [http://seamless.usgs.gov/ http://seamless.usgs.gov/].  The interface is similar to that of the Landfire national map.  Click on the icon circled in blue.&lt;br /&gt;
[[File:Ned_menu.png|center|thumb|The NED menu.]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Again, we key in the coordinates determined before and click the modify data request button.  In the data product selection page, we select &amp;quot;National Elevation Dataset (NED) 1/3 Arc Second&amp;quot; and change&lt;br /&gt;
to GeoTIFF format.  Then download the data&lt;br /&gt;
set, which can be found here, [[File:09159064.tif]].&lt;br /&gt;
[[File:Ned data product.png|center|thumb|The NED data product selection page]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Converting fuel data=&lt;br /&gt;
&lt;br /&gt;
This section describes converting data from geotiff to geogrid format.  Alternatively, you can use the version of geogrid from our repository and read the geotiff file directly.  For details see [[WPS_with_GeoTIFF_support]].&lt;br /&gt;
&lt;br /&gt;
In order for geogrid to be able to read this data, we need to convert it into an intermediate format.  We will be using a utility program&lt;br /&gt;
released with autoWPS to accomplish this.  For information on how to obtain and compile this tool, see [[How_to_convert_data_for_Geogrid]].  We will place the &amp;lt;tt&amp;gt;convert_geotiff.x&amp;lt;/tt&amp;gt; binary and the GeoTIFF&lt;br /&gt;
data files in the main WPS directory.&lt;br /&gt;
To convert the fuel category data, we will create new directories inside the WPS directory called &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt;.  Inside the &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; directory, we&lt;br /&gt;
issue the following command to convert the fuel category data.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -c 13 -w 1 -u &amp;quot;fuel category&amp;quot; -d &amp;quot;Anderson 13 fire behavior categories&amp;quot; ../lf02588871.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The resulting &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file created as follows.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = albers_nad83&lt;br /&gt;
truelat1 = 29.500000&lt;br /&gt;
truelat2 = 45.500000&lt;br /&gt;
stdlon = -96.000000&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 606&lt;br /&gt;
known_lat = 39.747818&lt;br /&gt;
known_lon = -107.373398&lt;br /&gt;
dx = 3.000000e+01&lt;br /&gt;
dy = 3.000000e+01&lt;br /&gt;
type = categorical&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;fuel category&amp;quot;&lt;br /&gt;
description = &amp;quot;Anderson 13 fire behavior categories&amp;quot;&lt;br /&gt;
wordsize = 1&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
category_min = 1&lt;br /&gt;
category_max = 14&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We have chosen to set the word size to 1 byte because it can represent 256 categories, plenty for&lt;br /&gt;
this purpose.&lt;br /&gt;
Notice that the program has changed the number of categories to 14 and uses the last category&lt;br /&gt;
to indicate that the source data was out of the range 1-13.  For the fuel category data, this represents&lt;br /&gt;
that there is no fuel present, due to a lake, river, road, etc.  &lt;br /&gt;
&lt;br /&gt;
We can check that the projection information entered into the index file is correct, by running the &lt;br /&gt;
&amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; binary that is installed with libGeoTIFF.  In this case, &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; tells us &lt;br /&gt;
that the source file contains the following projection parameters.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Projection Method: CT_AlbersEqualArea&lt;br /&gt;
   ProjStdParallel1GeoKey: 29.500000 ( 29d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjStdParallel2GeoKey: 45.500000 ( 45d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLatGeoKey: 23.000000 ( 23d 0&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLongGeoKey: -96.000000 ( 96d 0&#039; 0.00&amp;quot;W)&lt;br /&gt;
   ProjFalseEastingGeoKey: 0.000000 m&lt;br /&gt;
   ProjFalseNorthingGeoKey: 0.000000 m&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
Projection Linear Units: 9001/metre (1.000000m)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    ( -963525.000, 1916445.000)  (-107.3734004,39.7478163)&lt;br /&gt;
Lower Left    ( -963525.000, 1898265.000)  (-107.3478974,39.5867431)&lt;br /&gt;
Upper Right   ( -948885.000, 1916445.000)  (-107.2021990,39.7632976)&lt;br /&gt;
Lower Right   ( -948885.000, 1898265.000)  (-107.1770727,39.6021889)&lt;br /&gt;
Center        ( -956205.000, 1907355.000)  (-107.2751374,39.6750401)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can see that the conversion detected the projection correctly.  The small difference in the&lt;br /&gt;
coordinates of the upper left corner reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; and that in the index file is&lt;br /&gt;
due to floating point error and is much less than the resolution of the data. &lt;br /&gt;
&lt;br /&gt;
Finally, we go to the &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt; directory to convert the &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; variable.  In this case,&lt;br /&gt;
we issue the following command.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -u meters -d &#039;National Elevation Dataset 1/3 arcsecond resolution&#039; ../09159064.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This produces the following &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = regular_ll&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 1621&lt;br /&gt;
known_lat = 39.750092&lt;br /&gt;
known_lon = -107.350090&lt;br /&gt;
dx = 9.259259e-05&lt;br /&gt;
dy = 9.259259e-05&lt;br /&gt;
type = continuous&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;meters&amp;quot;&lt;br /&gt;
description = &amp;quot;National Elevation Dataset 1/3 arcsecond resolution&amp;quot;&lt;br /&gt;
wordsize = 2&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Here we have used the default word size of 2 bytes and a scale factor of 1.0, &lt;br /&gt;
which can represent any elevation in the world&lt;br /&gt;
with 1 meter accuracy, which is approximately the accuracy of the source data.&lt;br /&gt;
&lt;br /&gt;
Again, we compare the projection parameters in the index file with that reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt;&lt;br /&gt;
and find that the conversion was correct.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;      Keyed_Information:&lt;br /&gt;
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic&lt;br /&gt;
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea&lt;br /&gt;
      GeographicTypeGeoKey (Short,1): GCS_NAD83&lt;br /&gt;
      GeogCitationGeoKey (Ascii,6): &amp;quot;NAD83&amp;quot;&lt;br /&gt;
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree&lt;br /&gt;
      End_Of_Keys.&lt;br /&gt;
   End_Of_Geotiff.&lt;br /&gt;
&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    (-107.3500926,39.7500926)&lt;br /&gt;
Lower Left    (-107.3500926,39.6000000)&lt;br /&gt;
Upper Right   (-107.2000000,39.7500926)&lt;br /&gt;
Lower Right   (-107.2000000,39.6000000)&lt;br /&gt;
Center        (-107.2750463,39.6750463)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the converted data can be found here, [[File:Landfire_data.tgz]], and here, [[File:Ned_data.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running geogrid=&lt;br /&gt;
&lt;br /&gt;
The geogrid binary will create a netcdf file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt;.  This file will contain all&lt;br /&gt;
of the static data necessary to run your simulation.  Before we can run the binary, however, we must tell&lt;br /&gt;
geogrid what data needs to be in these files, where it can find them, and what kind of preprocessing we wnat done.  This information is contained in a run-time configuration file called &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt;, which is&lt;br /&gt;
located in the &amp;lt;tt&amp;gt;geogrid&amp;lt;/tt&amp;gt; subdirectory.  The file that is released with WPS contains reasonable defaults&lt;br /&gt;
for the variables defined on the atmospheric grid, but we need to add two additional sections for the two fire&lt;br /&gt;
grid data sets that we have just created.  We will append the following sections to the file &lt;br /&gt;
&amp;lt;tt&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;===============================&lt;br /&gt;
name=NFUEL_CAT&lt;br /&gt;
        priority=1&lt;br /&gt;
	dest_type=categorical&lt;br /&gt;
	dominant_only=NFUEL_CAT&lt;br /&gt;
	z_dim_name=fuel_cat&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
	interp_option=default:nearest_neighbor&lt;br /&gt;
	abs_path=./landfire_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
name=ZSF&lt;br /&gt;
        priority = 1&lt;br /&gt;
        dest_type = continuous&lt;br /&gt;
        df_dx=DZDXF&lt;br /&gt;
        df_dy=DZDYF&lt;br /&gt;
        smooth_option = smth-desmth_special; smooth_passes=1&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
        interp_option = default:average_gcell(4.0)+four_pt+average_4pt&lt;br /&gt;
	abs_path=./ned_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
For &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt;, we will use simple nearest neighbor interpolation, while for &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, we will&lt;br /&gt;
use bilinear interpolation with smoothing.  Other configurations are possible.  See the [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/users_guide_chap3.htm#_Description_of_GEOGRID.TBL WPS users guide] for further information.  The full table used can be found [http://pastebin.com/kdymq5ff here].&lt;br /&gt;
&lt;br /&gt;
Once we make these changes to the &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt; file, and ensure that all of the directories are in the correct place (including the default geogrid dataset at &amp;lt;tt&amp;gt;../../wrfdata&amp;lt;/tt&amp;gt;), we can execute the geogrid binary.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./geogrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create a file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt; in the current directory, which can be found here,&lt;br /&gt;
[[File:geo_em.d01.nc.gz]].  The contents of this file can be viewed using your favorite NetCDF viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;geo_em.d01.nc&amp;quot; widths=&amp;quot;225px&amp;quot; heights=&amp;quot;225px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:nfuel_cat.png|The fuel category data interpolated to the model grid.The&lt;br /&gt;
File:zsf.png|The high resolution elevation (1/3&amp;quot;) data interpolated to the model grid.&lt;br /&gt;
File:hgt_m.png|The low resolution elevation data (30&amp;quot;) data interpolated to the atmospheric grid&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Here, we have visualized the fire grid variables, &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, as well as the &lt;br /&gt;
variable &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt;, which is the elevation data used by the atmospheric model.  We can compare&lt;br /&gt;
&amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt; to verify that our data conversion process worked.  The colormaps of these&lt;br /&gt;
two pictures have been aligned, so that we can make a quick visual check.  As we see, the two images do&lt;br /&gt;
have a similar structure and magnitude, but they do seem to suffer some misalignment.  Given that &lt;br /&gt;
the data came from two different sources, in two different projections, the error is relatively minor.  &lt;br /&gt;
Because WPS converts between projections in single precision, by default, there is likely a significant &lt;br /&gt;
issue with floating point error.  We may, in the future, consider making some changes so that this conversion is done in double precision.&lt;br /&gt;
&lt;br /&gt;
=Obtaining atmospheric data=&lt;br /&gt;
&lt;br /&gt;
There are a number of datasets available to initialize a WRF real run.  The &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/download/free_data.html WRF users page] lists&lt;br /&gt;
a few.  One challenge in running a fire simulation is finding a dataset of &lt;br /&gt;
sufficient resolution.  One (relatively) high resolution data source is the&lt;br /&gt;
North American Regional Reanalysis (NARR).  This is still only 32km resolution, so&lt;br /&gt;
no small scale weather patterns will appear in our simulation.  In general, we &lt;br /&gt;
will want to run a series of nested domains in order to catch some small scale weather&lt;br /&gt;
features; however, we will proceed with a single domain example.&lt;br /&gt;
&lt;br /&gt;
The NARR datasets are available after 3 months at the following website, &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/ http://nomads.ncdc.noaa.gov/data/narr/].&lt;br /&gt;
We will browse to the [http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/ directory] &lt;br /&gt;
containing the data for August 28, 2005. Our simulation runs from the hours 12-15 on this &lt;br /&gt;
day, so we will download the grib files for hours &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1200_000.grb 12] and &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1500_000.grb 15].&lt;br /&gt;
You can get these files also from here, [[File:narr-a_221_20050828_12-15.tgz]]. &lt;br /&gt;
&lt;br /&gt;
=Running ungrib=&lt;br /&gt;
&lt;br /&gt;
With the grib files downloaded, we need to link them into the WPS directory using the script&lt;br /&gt;
&amp;lt;tt&amp;gt;link_grib.csh&amp;lt;/tt&amp;gt;.  This script takes as arguments all of the grib files that are needed &lt;br /&gt;
for the simulation.  In this case, we can run the following command in the WPS directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./link_grib.csh &amp;lt;path to&amp;gt;/*.grb&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Substitute &amp;lt;path to&amp;gt; with the directory in which you have saved the grib files.  This command&lt;br /&gt;
creates a series of symbolic links with a predetermined naming sequence to all of the grib files&lt;br /&gt;
you pass as arguments.  You should now have two new soft links named &amp;lt;tt&amp;gt;GRIBFILE.AAA&amp;lt;/tt&amp;gt; and &lt;br /&gt;
&amp;lt;tt&amp;gt;GRIBFILE.AAB&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With the proper links in place, we need to tell ungrib what they contain.  This is done by copying a variable table into the main WPS directory.  Several variable tables are distributed with WPS which &lt;br /&gt;
describe common datasets.  You can find these in the directory &amp;lt;tt&amp;gt;WPS/ungrib/Variable_Tables&amp;lt;/tt&amp;gt;.&lt;br /&gt;
In particular, the file which corresponds to the NARR grib files is called &amp;lt;tt&amp;gt;Vtable.NARR&amp;lt;/tt&amp;gt;, so &lt;br /&gt;
we issue the following command to copy it into the current directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp ungrib/Variable_Tables/Vtable.NARR Vtable&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We are now ready to run the ungrib executable.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./ungrib.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create two files in the current directory named &amp;lt;tt&amp;gt;FILE:2005-08-28_12&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FILE:2005-08-28_15&amp;lt;/tt&amp;gt;.  You can download these files here, [[File:ungrib_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running metgrid=&lt;br /&gt;
&lt;br /&gt;
Metgrid will take the files created by ungrib and geogrid and combine them into a set of files.  At this point, all we need to do is run it.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./metgrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates two files named &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_12:00:00.nc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_15:00:00.nc&amp;lt;/tt&amp;gt;, which you can download here, [[File:metgrid_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running wrf=&lt;br /&gt;
&lt;br /&gt;
We are now finished with all steps involving WPS.  All we need to do is copy over the metgrid output&lt;br /&gt;
files over to our WRF real run directory at &amp;lt;tt&amp;gt;WRFV3/test/em_real&amp;lt;/tt&amp;gt; and configure our WRF namelist.&lt;br /&gt;
We will need to be sure that the domain description in &amp;lt;tt&amp;gt;namelist.input&amp;lt;/tt&amp;gt; matches that of &lt;br /&gt;
the &amp;lt;tt&amp;gt;namelist.wps&amp;lt;/tt&amp;gt; we created previously, otherwise WRF will refuse to run.  Pay particular attention&lt;br /&gt;
to the start/stop times and the grid sizes.  The fire ignition parameters are configured&lt;br /&gt;
in the same way as for the ideal case.  Relevant portion of the namelist we will use are given below.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt; &amp;amp;time_control&lt;br /&gt;
 run_days                            = 0,&lt;br /&gt;
 run_hours                           = 0,&lt;br /&gt;
 run_minutes                         = 2,&lt;br /&gt;
 run_seconds                         = 0,&lt;br /&gt;
 start_year                          = 2005,&lt;br /&gt;
 start_month                         = 08,&lt;br /&gt;
 start_day                           = 28,&lt;br /&gt;
 start_hour                          = 12,&lt;br /&gt;
 start_minute                        = 00,&lt;br /&gt;
 start_second                        = 00,&lt;br /&gt;
 end_year                            = 2005,&lt;br /&gt;
 end_month                           = 08,&lt;br /&gt;
 end_day                             = 28,&lt;br /&gt;
 end_hour                            = 15,&lt;br /&gt;
 end_minute                          = 00,&lt;br /&gt;
 end_second                          = 00,&lt;br /&gt;
 interval_seconds                    = 10800&lt;br /&gt;
 input_from_file                     = .true.,&lt;br /&gt;
 history_interval_s                  = 30,&lt;br /&gt;
 frames_per_outfile                  = 1000,&lt;br /&gt;
 restart                             = .false.,&lt;br /&gt;
 restart_interval                    = 1,&lt;br /&gt;
 io_form_history                     = 2&lt;br /&gt;
 io_form_restart                     = 2&lt;br /&gt;
 io_form_input                       = 2&lt;br /&gt;
 io_form_boundary                    = 2&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;domains&lt;br /&gt;
 time_step                           = 0,&lt;br /&gt;
 time_step_fract_num                 = 5,&lt;br /&gt;
 time_step_fract_den                 = 10,&lt;br /&gt;
 max_dom                             = 1,&lt;br /&gt;
 s_we                                = 1,&lt;br /&gt;
 e_we                                = 43,&lt;br /&gt;
 s_sn                                = 1,&lt;br /&gt;
 e_sn                                = 43,&lt;br /&gt;
 s_vert                              = 1,&lt;br /&gt;
 e_vert                              = 41,&lt;br /&gt;
 num_metgrid_levels                  = 30&lt;br /&gt;
 dx                                  = 60,&lt;br /&gt;
 dy                                  = 60,&lt;br /&gt;
 grid_id                             = 1,&lt;br /&gt;
 parent_id                           = 0,&lt;br /&gt;
 i_parent_start                      = 0,&lt;br /&gt;
 j_parent_start                      = 0,&lt;br /&gt;
 parent_grid_ratio                   = 1,&lt;br /&gt;
 parent_time_step_ratio              = 1,&lt;br /&gt;
 feedback                            = 1,&lt;br /&gt;
 smooth_option                       = 0&lt;br /&gt;
 sr_x                                = 10,&lt;br /&gt;
 sr_y                                = 10,&lt;br /&gt;
 sfcp_to_sfcp                        = .true.,&lt;br /&gt;
 p_top_requested                     = 10000&lt;br /&gt;
 /&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;bdy_control&lt;br /&gt;
 spec_bdy_width                      = 5,&lt;br /&gt;
 spec_zone                           = 1,&lt;br /&gt;
 relax_zone                          = 4,&lt;br /&gt;
 specified                           = .true.,&lt;br /&gt;
 periodic_x                          = .false.,&lt;br /&gt;
 symmetric_xs                        = .false.,&lt;br /&gt;
 symmetric_xe                        = .false.,&lt;br /&gt;
 open_xs                             = .false.,&lt;br /&gt;
 open_xe                             = .false.,&lt;br /&gt;
 periodic_y                          = .false.,&lt;br /&gt;
 symmetric_ys                        = .false.,&lt;br /&gt;
 symmetric_ye                        = .false.,&lt;br /&gt;
 open_ys                             = .false.,&lt;br /&gt;
 open_ye                             = .false.,&lt;br /&gt;
 nested                              = .false.,&lt;br /&gt;
 /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/thu8KDZF here].&lt;br /&gt;
&lt;br /&gt;
Once the namelist is properly configured we run the WRF real preprocessor.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./real.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates the initial and boundary files for the WRF simulation and fills all missing fields&lt;br /&gt;
from the grib data with reasonable defaults.  The files that it produces are &amp;lt;tt&amp;gt;wrfbdy_d01&amp;lt;/tt&amp;gt;&lt;br /&gt;
and &amp;lt;tt&amp;gt;wrfinput_d01&amp;lt;/tt&amp;gt;, which can be downloaded here [[File:wrf_real_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
Finally, we run the simulation.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./wrf.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The history file for this example can be downloaded here, [[File:wrf_real_history.tgz]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Data]]&lt;br /&gt;
[[Category:Howtos|Run WRF-Fire with real data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:Landfire1.png&amp;diff=3019</id>
		<title>File:Landfire1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:Landfire1.png&amp;diff=3019"/>
		<updated>2016-11-07T19:01:43Z</updated>

		<summary type="html">&lt;p&gt;Adamko: Landfire menu&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Landfire menu&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3018</id>
		<title>How to run WRF-SFIRE with real data</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_run_WRF-SFIRE_with_real_data&amp;diff=3018"/>
		<updated>2016-11-07T19:01:12Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Downloading fuel category data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
Running WRF-Fire with real data is a process very similar to running WRF with real data for weather simulations.&lt;br /&gt;
The [http://www.mmm.ucar.edu/wrf/users WRF users page] has many &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/contents.html documents] and &lt;br /&gt;
[http://www2.mmm.ucar.edu/wrf/users/supports/tutorial.html tutorials] outlining this process.  The purpose&lt;br /&gt;
of this page is to provide a tutorial for using real data with WRF-Fire starting from scratch.  We begin with a quick outline of the&lt;br /&gt;
steps involved including links to the output of each step.  The user can use these linked files to start from any step or to verify &lt;br /&gt;
their own results.  Due to platform and compiler differences your output might differ slightly from those provided.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This page refers to data sources for the USA only. For other countries, you will need to make appropriate modifications yourself.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Outline=&lt;br /&gt;
&lt;br /&gt;
# [[How_to_get_WRF-Fire|Obtain WRF-Fire source code]].&lt;br /&gt;
# [[How_to_compile_WRF-Fire|Compile target em_real]].&lt;br /&gt;
# [[#Compiling WPS|Compile WPS]].&lt;br /&gt;
# [[#Configuring_the_domain|Configure your domain]].&lt;br /&gt;
# [[#Obtaining data for geogrid|Download geogrid datasets]].&lt;br /&gt;
# [[#Converting fire data|Convert fire data to geogrid format]].&lt;br /&gt;
# [[#Running geogrid|Run the geogrid executable]].&lt;br /&gt;
# [[#Obtaining atmospheric data|Download atmospheric data]].&lt;br /&gt;
# [[#Running ungrib|Run the ungrib executable]].&lt;br /&gt;
# [[#Running metgrid|Run the metgrid executable]].&lt;br /&gt;
# [[#Running wrf|Run real.exe and wrf.exe]].&lt;br /&gt;
&lt;br /&gt;
=Compiling WPS=&lt;br /&gt;
&lt;br /&gt;
After you have compiled WRF, you then need to go into the subdirectory &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; and run &lt;br /&gt;
&amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt;.  This will present you with a list of configuration options similar to those given by WRF.&lt;br /&gt;
You will need to chose one with the same compiler that you used to compile WRF.  Generally, it is unnecessary to compile WPS with parallel support.&lt;br /&gt;
GRIB2 support is only necessary if your atmospheric data source requires it.  Once you have chosen a configuration, you can compile with&lt;br /&gt;
&amp;lt;pre&amp;gt;./compile &amp;gt;&amp;amp; compile.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
Make sure to check for errors in the log file generated.&lt;br /&gt;
&lt;br /&gt;
=Configuring the domain=&lt;br /&gt;
&lt;br /&gt;
The physical domain is configured in the geogrid section of namelist.wps in the WPS directory.  In this section, you should define&lt;br /&gt;
the geographic projection with &amp;lt;tt&amp;gt;map_proj&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat1&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;truelat2&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;stand_lon&amp;lt;/tt&amp;gt;.  Available projections&lt;br /&gt;
include &amp;lt;tt&amp;gt;&#039;lambert&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;polar&#039;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&#039;mercator&#039;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;&#039;lat-lon&#039;&amp;lt;/tt&amp;gt;.  The lower left corner of the domain is located at&lt;br /&gt;
&amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; longitude and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; latitude.  The computational grid is defined by &amp;lt;tt&amp;gt;e_we/e_sn&amp;lt;/tt&amp;gt;, the number of (staggered) grid&lt;br /&gt;
points in the west-east/south-north direction, and the grid resolution is defined by &amp;lt;tt&amp;gt;dx&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;dy&amp;lt;/tt&amp;gt; in meters. &lt;br /&gt;
We also specify a path to where we will put the static dataset that geogrid will read from, and we specify the highest resolution (30 arc minutes) that this &lt;br /&gt;
data is released in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;geogrid&lt;br /&gt;
 e_we              =  43,&lt;br /&gt;
 e_sn              =  43,&lt;br /&gt;
 geog_data_res     = &#039;30s&#039;,&lt;br /&gt;
 dx = 60,&lt;br /&gt;
 dy = 60,&lt;br /&gt;
 map_proj  = &#039;lambert&#039;,&lt;br /&gt;
 ref_lat   =  39.70537,&lt;br /&gt;
 ref_lon   = -107.2907,&lt;br /&gt;
 truelat1  =  39.338,&lt;br /&gt;
 truelat2  =  39.338,&lt;br /&gt;
 stand_lon = -106.807,&lt;br /&gt;
 geog_data_path = &#039;../../wrfdata/geog&#039;&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The share section of the WPS namelist defines the fire subgrid refinement in &amp;lt;tt&amp;gt;subgrid_ratio_x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;subgrid_ratio_y&amp;lt;/tt&amp;gt;.  This means &lt;br /&gt;
that the fire grid will be a 10 time refined grid at a resolution of 6 meters by 6 meters.  The &amp;lt;tt&amp;gt;start_date&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;end_data&amp;lt;/tt&amp;gt; parameters specify&lt;br /&gt;
the time window that the simulation will be run in.  Atmospheric data must be available at both temporal boundaries.  The &amp;lt;tt&amp;gt;interval_seconds&amp;lt;/tt&amp;gt; &lt;br /&gt;
parameter tells WPS the number of seconds between each atmospheric dataset.  For our example, we&lt;br /&gt;
will be using the NARR dataset which is released daily every three hours or 10,800 seconds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&amp;amp;share&lt;br /&gt;
 wrf_core = &#039;ARW&#039;,&lt;br /&gt;
 max_dom = 1,&lt;br /&gt;
 start_date = &#039;2005-08-28_12:00:00&#039;,&lt;br /&gt;
 end_date   = &#039;2005-08-28_15:00:00&#039;,&lt;br /&gt;
 interval_seconds = 10800,&lt;br /&gt;
 io_form_geogrid = 2,&lt;br /&gt;
 subgrid_ratio_x = 10,&lt;br /&gt;
 subgrid_ratio_y = 10,&lt;br /&gt;
/&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/2u3YXkHS here].&lt;br /&gt;
&lt;br /&gt;
=Obtaining data for geogrid=&lt;br /&gt;
&lt;br /&gt;
First you must download and uncompress the standard [http://www.mmm.ucar.edu/wrf/src/wps_files/geog_v3.1.tar.gz geogrid input data].&lt;br /&gt;
This is a 429 MB compressed tarball that uncompresses to around 11 GB.  It contains all of the static data that geogrid needs for a standard&lt;br /&gt;
weather simulation; however, for a WRF-Fire simulation we need to fill in two additional fields that are too big to release in a single download for the&lt;br /&gt;
whole globe.  We first need to determine the approximate latitude and longitude bounds for our domain.&lt;br /&gt;
&lt;br /&gt;
We know the coordinates in the lower left corner from the &amp;lt;tt&amp;gt;ref_lon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ref_lat&amp;lt;/tt&amp;gt; parameters of the namelist.  We can estimate the&lt;br /&gt;
coordinates of the upper right corner by the approximate ratio 9e-6 degrees per meter.  So, the upper right corner of our domain is at approximately&lt;br /&gt;
-107.2675 longitude and 39.7286 latitude.  For the purposes of downloading data, we will expand this region to the range&lt;br /&gt;
-107.35 through -107.2 longitude and 39.6 through 39.75 latitude.&lt;br /&gt;
&lt;br /&gt;
==Downloading fuel category data==&lt;br /&gt;
&lt;br /&gt;
For the United States, Anderson 13 fuel category data is available at the [http://landfire.cr.usgs.gov/viewer/ landfire] website.  Upon opening the national map, &lt;br /&gt;
click roughly on your are of interest, the map will zoom in, you will see a menu on the top of the screen.  Click on the earth icon, that should display a drop down menu&lt;br /&gt;
[[File:Landfire_menu.png|center|thumb|The landfire menu.]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
This will open a window that lets you key in the the longitude and latitude range of your selection.  In this window, we will input the coordinates computed earlier.&lt;br /&gt;
[[File:landfire_selection.png|center|thumb|Domain selection.]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
In the next window, click on &amp;quot;modify data request&amp;quot;.  This window lists all of the available data products for the selected region.  You want to check the box &lt;br /&gt;
next to &amp;quot;LANDFIRE 13 Anderson Fire Behavior Fuel Models&amp;quot; and change the data format to &amp;quot;GeoTIFF&amp;quot;.  Then go to the bottom of the page and click &amp;quot;Save Changes&amp;quot;.&lt;br /&gt;
[[File:landfire_data_products.png|center|thumb|Data product selection.]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Finally, click &amp;quot;Download&amp;quot;.  The file will be a compressed archive containing, among others, a GeoTIFF file.  The name of the file will be different for each request, &lt;br /&gt;
but in this example we have &amp;lt;tt&amp;gt;lf02588871.zip&amp;lt;/tt&amp;gt; containing the GeoTIFF file &amp;lt;tt&amp;gt;lf02588871.tif&amp;lt;/tt&amp;gt;, which can be found here, [[File:lf02588871.tif]].&lt;br /&gt;
&lt;br /&gt;
==Downloading high resolution elevation data==&lt;br /&gt;
&lt;br /&gt;
Another USGS website serves topographical data of sufficient resolution for our 6 meter resolution fire grid.  This dataset is called the National Elevation Dataset (NED) and &lt;br /&gt;
can be accessed at [http://seamless.usgs.gov/ http://seamless.usgs.gov/].  The interface is similar to that of the Landfire national map.  Click on the icon circled in blue.&lt;br /&gt;
[[File:Ned_menu.png|center|thumb|The NED menu.]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
Again, we key in the coordinates determined before and click the modify data request button.  In the data product selection page, we select &amp;quot;National Elevation Dataset (NED) 1/3 Arc Second&amp;quot; and change&lt;br /&gt;
to GeoTIFF format.  Then download the data&lt;br /&gt;
set, which can be found here, [[File:09159064.tif]].&lt;br /&gt;
[[File:Ned data product.png|center|thumb|The NED data product selection page]]&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear: both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Converting fuel data=&lt;br /&gt;
&lt;br /&gt;
This section describes converting data from geotiff to geogrid format.  Alternatively, you can use the version of geogrid from our repository and read the geotiff file directly.  For details see [[WPS_with_GeoTIFF_support]].&lt;br /&gt;
&lt;br /&gt;
In order for geogrid to be able to read this data, we need to convert it into an intermediate format.  We will be using a utility program&lt;br /&gt;
released with autoWPS to accomplish this.  For information on how to obtain and compile this tool, see [[How_to_convert_data_for_Geogrid]].  We will place the &amp;lt;tt&amp;gt;convert_geotiff.x&amp;lt;/tt&amp;gt; binary and the GeoTIFF&lt;br /&gt;
data files in the main WPS directory.&lt;br /&gt;
To convert the fuel category data, we will create new directories inside the WPS directory called &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt;.  Inside the &amp;lt;tt&amp;gt;landfire_data&amp;lt;/tt&amp;gt; directory, we&lt;br /&gt;
issue the following command to convert the fuel category data.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -c 13 -w 1 -u &amp;quot;fuel category&amp;quot; -d &amp;quot;Anderson 13 fire behavior categories&amp;quot; ../lf02588871.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The resulting &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file created as follows.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = albers_nad83&lt;br /&gt;
truelat1 = 29.500000&lt;br /&gt;
truelat2 = 45.500000&lt;br /&gt;
stdlon = -96.000000&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 606&lt;br /&gt;
known_lat = 39.747818&lt;br /&gt;
known_lon = -107.373398&lt;br /&gt;
dx = 3.000000e+01&lt;br /&gt;
dy = 3.000000e+01&lt;br /&gt;
type = categorical&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;fuel category&amp;quot;&lt;br /&gt;
description = &amp;quot;Anderson 13 fire behavior categories&amp;quot;&lt;br /&gt;
wordsize = 1&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
category_min = 1&lt;br /&gt;
category_max = 14&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We have chosen to set the word size to 1 byte because it can represent 256 categories, plenty for&lt;br /&gt;
this purpose.&lt;br /&gt;
Notice that the program has changed the number of categories to 14 and uses the last category&lt;br /&gt;
to indicate that the source data was out of the range 1-13.  For the fuel category data, this represents&lt;br /&gt;
that there is no fuel present, due to a lake, river, road, etc.  &lt;br /&gt;
&lt;br /&gt;
We can check that the projection information entered into the index file is correct, by running the &lt;br /&gt;
&amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; binary that is installed with libGeoTIFF.  In this case, &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; tells us &lt;br /&gt;
that the source file contains the following projection parameters.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;Projection Method: CT_AlbersEqualArea&lt;br /&gt;
   ProjStdParallel1GeoKey: 29.500000 ( 29d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjStdParallel2GeoKey: 45.500000 ( 45d30&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLatGeoKey: 23.000000 ( 23d 0&#039; 0.00&amp;quot;N)&lt;br /&gt;
   ProjNatOriginLongGeoKey: -96.000000 ( 96d 0&#039; 0.00&amp;quot;W)&lt;br /&gt;
   ProjFalseEastingGeoKey: 0.000000 m&lt;br /&gt;
   ProjFalseNorthingGeoKey: 0.000000 m&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
Projection Linear Units: 9001/metre (1.000000m)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    ( -963525.000, 1916445.000)  (-107.3734004,39.7478163)&lt;br /&gt;
Lower Left    ( -963525.000, 1898265.000)  (-107.3478974,39.5867431)&lt;br /&gt;
Upper Right   ( -948885.000, 1916445.000)  (-107.2021990,39.7632976)&lt;br /&gt;
Lower Right   ( -948885.000, 1898265.000)  (-107.1770727,39.6021889)&lt;br /&gt;
Center        ( -956205.000, 1907355.000)  (-107.2751374,39.6750401)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can see that the conversion detected the projection correctly.  The small difference in the&lt;br /&gt;
coordinates of the upper left corner reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt; and that in the index file is&lt;br /&gt;
due to floating point error and is much less than the resolution of the data. &lt;br /&gt;
&lt;br /&gt;
Finally, we go to the &amp;lt;tt&amp;gt;ned_data&amp;lt;/tt&amp;gt; directory to convert the &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; variable.  In this case,&lt;br /&gt;
we issue the following command.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;../convert_geotiff.x -u meters -d &#039;National Elevation Dataset 1/3 arcsecond resolution&#039; ../09159064.tif&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This produces the following &amp;lt;tt&amp;gt;index&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;projection = regular_ll&lt;br /&gt;
known_x = 1&lt;br /&gt;
known_y = 1621&lt;br /&gt;
known_lat = 39.750092&lt;br /&gt;
known_lon = -107.350090&lt;br /&gt;
dx = 9.259259e-05&lt;br /&gt;
dy = 9.259259e-05&lt;br /&gt;
type = continuous&lt;br /&gt;
signed = yes&lt;br /&gt;
units = &amp;quot;meters&amp;quot;&lt;br /&gt;
description = &amp;quot;National Elevation Dataset 1/3 arcsecond resolution&amp;quot;&lt;br /&gt;
wordsize = 2&lt;br /&gt;
tile_x = 100&lt;br /&gt;
tile_y = 100&lt;br /&gt;
tile_z = 1&lt;br /&gt;
tile_bdr = 3&lt;br /&gt;
missing_value = 0.000000&lt;br /&gt;
scale_factor = 1.000000&lt;br /&gt;
row_order = bottom_top&lt;br /&gt;
endian = little&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Here we have used the default word size of 2 bytes and a scale factor of 1.0, &lt;br /&gt;
which can represent any elevation in the world&lt;br /&gt;
with 1 meter accuracy, which is approximately the accuracy of the source data.&lt;br /&gt;
&lt;br /&gt;
Again, we compare the projection parameters in the index file with that reported by &amp;lt;tt&amp;gt;listgeo&amp;lt;/tt&amp;gt;&lt;br /&gt;
and find that the conversion was correct.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;      Keyed_Information:&lt;br /&gt;
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic&lt;br /&gt;
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea&lt;br /&gt;
      GeographicTypeGeoKey (Short,1): GCS_NAD83&lt;br /&gt;
      GeogCitationGeoKey (Ascii,6): &amp;quot;NAD83&amp;quot;&lt;br /&gt;
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree&lt;br /&gt;
      End_Of_Keys.&lt;br /&gt;
   End_Of_Geotiff.&lt;br /&gt;
&lt;br /&gt;
GCS: 4269/NAD83&lt;br /&gt;
Datum: 6269/North American Datum 1983&lt;br /&gt;
Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31)&lt;br /&gt;
Prime Meridian: 8901/Greenwich (0.000000/  0d 0&#039; 0.00&amp;quot;E)&lt;br /&gt;
&lt;br /&gt;
Corner Coordinates:&lt;br /&gt;
Upper Left    (-107.3500926,39.7500926)&lt;br /&gt;
Lower Left    (-107.3500926,39.6000000)&lt;br /&gt;
Upper Right   (-107.2000000,39.7500926)&lt;br /&gt;
Lower Right   (-107.2000000,39.6000000)&lt;br /&gt;
Center        (-107.2750463,39.6750463)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the converted data can be found here, [[File:Landfire_data.tgz]], and here, [[File:Ned_data.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running geogrid=&lt;br /&gt;
&lt;br /&gt;
The geogrid binary will create a netcdf file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt;.  This file will contain all&lt;br /&gt;
of the static data necessary to run your simulation.  Before we can run the binary, however, we must tell&lt;br /&gt;
geogrid what data needs to be in these files, where it can find them, and what kind of preprocessing we wnat done.  This information is contained in a run-time configuration file called &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt;, which is&lt;br /&gt;
located in the &amp;lt;tt&amp;gt;geogrid&amp;lt;/tt&amp;gt; subdirectory.  The file that is released with WPS contains reasonable defaults&lt;br /&gt;
for the variables defined on the atmospheric grid, but we need to add two additional sections for the two fire&lt;br /&gt;
grid data sets that we have just created.  We will append the following sections to the file &lt;br /&gt;
&amp;lt;tt&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;===============================&lt;br /&gt;
name=NFUEL_CAT&lt;br /&gt;
        priority=1&lt;br /&gt;
	dest_type=categorical&lt;br /&gt;
	dominant_only=NFUEL_CAT&lt;br /&gt;
	z_dim_name=fuel_cat&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
	interp_option=default:nearest_neighbor&lt;br /&gt;
	abs_path=./landfire_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
name=ZSF&lt;br /&gt;
        priority = 1&lt;br /&gt;
        dest_type = continuous&lt;br /&gt;
        df_dx=DZDXF&lt;br /&gt;
        df_dy=DZDYF&lt;br /&gt;
        smooth_option = smth-desmth_special; smooth_passes=1&lt;br /&gt;
	halt_on_missing=yes&lt;br /&gt;
        interp_option = default:average_gcell(4.0)+four_pt+average_4pt&lt;br /&gt;
	abs_path=./ned_data&lt;br /&gt;
	subgrid=yes&lt;br /&gt;
==============================&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
For &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt;, we will use simple nearest neighbor interpolation, while for &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, we will&lt;br /&gt;
use bilinear interpolation with smoothing.  Other configurations are possible.  See the [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3.1/users_guide_chap3.htm#_Description_of_GEOGRID.TBL WPS users guide] for further information.  The full table used can be found [http://pastebin.com/kdymq5ff here].&lt;br /&gt;
&lt;br /&gt;
Once we make these changes to the &amp;lt;tt&amp;gt;GEOGRID.TBL&amp;lt;/tt&amp;gt; file, and ensure that all of the directories are in the correct place (including the default geogrid dataset at &amp;lt;tt&amp;gt;../../wrfdata&amp;lt;/tt&amp;gt;), we can execute the geogrid binary.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./geogrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create a file called &amp;lt;tt&amp;gt;geo_em.d01.nc&amp;lt;/tt&amp;gt; in the current directory, which can be found here,&lt;br /&gt;
[[File:geo_em.d01.nc.gz]].  The contents of this file can be viewed using your favorite NetCDF viewer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery caption=&amp;quot;geo_em.d01.nc&amp;quot; widths=&amp;quot;225px&amp;quot; heights=&amp;quot;225px&amp;quot; perrow=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
File:nfuel_cat.png|The fuel category data interpolated to the model grid.The&lt;br /&gt;
File:zsf.png|The high resolution elevation (1/3&amp;quot;) data interpolated to the model grid.&lt;br /&gt;
File:hgt_m.png|The low resolution elevation data (30&amp;quot;) data interpolated to the atmospheric grid&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Here, we have visualized the fire grid variables, &amp;lt;tt&amp;gt;NFUEL_CAT&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt;, as well as the &lt;br /&gt;
variable &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt;, which is the elevation data used by the atmospheric model.  We can compare&lt;br /&gt;
&amp;lt;tt&amp;gt;ZSF&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;HGT_M&amp;lt;/tt&amp;gt; to verify that our data conversion process worked.  The colormaps of these&lt;br /&gt;
two pictures have been aligned, so that we can make a quick visual check.  As we see, the two images do&lt;br /&gt;
have a similar structure and magnitude, but they do seem to suffer some misalignment.  Given that &lt;br /&gt;
the data came from two different sources, in two different projections, the error is relatively minor.  &lt;br /&gt;
Because WPS converts between projections in single precision, by default, there is likely a significant &lt;br /&gt;
issue with floating point error.  We may, in the future, consider making some changes so that this conversion is done in double precision.&lt;br /&gt;
&lt;br /&gt;
=Obtaining atmospheric data=&lt;br /&gt;
&lt;br /&gt;
There are a number of datasets available to initialize a WRF real run.  The &lt;br /&gt;
[http://www.mmm.ucar.edu/wrf/users/download/free_data.html WRF users page] lists&lt;br /&gt;
a few.  One challenge in running a fire simulation is finding a dataset of &lt;br /&gt;
sufficient resolution.  One (relatively) high resolution data source is the&lt;br /&gt;
North American Regional Reanalysis (NARR).  This is still only 32km resolution, so&lt;br /&gt;
no small scale weather patterns will appear in our simulation.  In general, we &lt;br /&gt;
will want to run a series of nested domains in order to catch some small scale weather&lt;br /&gt;
features; however, we will proceed with a single domain example.&lt;br /&gt;
&lt;br /&gt;
The NARR datasets are available after 3 months at the following website, &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/ http://nomads.ncdc.noaa.gov/data/narr/].&lt;br /&gt;
We will browse to the [http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/ directory] &lt;br /&gt;
containing the data for August 28, 2005. Our simulation runs from the hours 12-15 on this &lt;br /&gt;
day, so we will download the grib files for hours &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1200_000.grb 12] and &lt;br /&gt;
[http://nomads.ncdc.noaa.gov/data/narr/200508/20050828/narr-a_221_20050828_1500_000.grb 15].&lt;br /&gt;
You can get these files also from here, [[File:narr-a_221_20050828_12-15.tgz]]. &lt;br /&gt;
&lt;br /&gt;
=Running ungrib=&lt;br /&gt;
&lt;br /&gt;
With the grib files downloaded, we need to link them into the WPS directory using the script&lt;br /&gt;
&amp;lt;tt&amp;gt;link_grib.csh&amp;lt;/tt&amp;gt;.  This script takes as arguments all of the grib files that are needed &lt;br /&gt;
for the simulation.  In this case, we can run the following command in the WPS directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./link_grib.csh &amp;lt;path to&amp;gt;/*.grb&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Substitute &amp;lt;path to&amp;gt; with the directory in which you have saved the grib files.  This command&lt;br /&gt;
creates a series of symbolic links with a predetermined naming sequence to all of the grib files&lt;br /&gt;
you pass as arguments.  You should now have two new soft links named &amp;lt;tt&amp;gt;GRIBFILE.AAA&amp;lt;/tt&amp;gt; and &lt;br /&gt;
&amp;lt;tt&amp;gt;GRIBFILE.AAB&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With the proper links in place, we need to tell ungrib what they contain.  This is done by copying a variable table into the main WPS directory.  Several variable tables are distributed with WPS which &lt;br /&gt;
describe common datasets.  You can find these in the directory &amp;lt;tt&amp;gt;WPS/ungrib/Variable_Tables&amp;lt;/tt&amp;gt;.&lt;br /&gt;
In particular, the file which corresponds to the NARR grib files is called &amp;lt;tt&amp;gt;Vtable.NARR&amp;lt;/tt&amp;gt;, so &lt;br /&gt;
we issue the following command to copy it into the current directory.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp ungrib/Variable_Tables/Vtable.NARR Vtable&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We are now ready to run the ungrib executable.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./ungrib.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This will create two files in the current directory named &amp;lt;tt&amp;gt;FILE:2005-08-28_12&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;FILE:2005-08-28_15&amp;lt;/tt&amp;gt;.  You can download these files here, [[File:ungrib_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running metgrid=&lt;br /&gt;
&lt;br /&gt;
Metgrid will take the files created by ungrib and geogrid and combine them into a set of files.  At this point, all we need to do is run it.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./metgrid.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates two files named &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_12:00:00.nc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;met_em.d01.2005-08-28_15:00:00.nc&amp;lt;/tt&amp;gt;, which you can download here, [[File:metgrid_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
=Running wrf=&lt;br /&gt;
&lt;br /&gt;
We are now finished with all steps involving WPS.  All we need to do is copy over the metgrid output&lt;br /&gt;
files over to our WRF real run directory at &amp;lt;tt&amp;gt;WRFV3/test/em_real&amp;lt;/tt&amp;gt; and configure our WRF namelist.&lt;br /&gt;
We will need to be sure that the domain description in &amp;lt;tt&amp;gt;namelist.input&amp;lt;/tt&amp;gt; matches that of &lt;br /&gt;
the &amp;lt;tt&amp;gt;namelist.wps&amp;lt;/tt&amp;gt; we created previously, otherwise WRF will refuse to run.  Pay particular attention&lt;br /&gt;
to the start/stop times and the grid sizes.  The fire ignition parameters are configured&lt;br /&gt;
in the same way as for the ideal case.  Relevant portion of the namelist we will use are given below.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt; &amp;amp;time_control&lt;br /&gt;
 run_days                            = 0,&lt;br /&gt;
 run_hours                           = 0,&lt;br /&gt;
 run_minutes                         = 2,&lt;br /&gt;
 run_seconds                         = 0,&lt;br /&gt;
 start_year                          = 2005,&lt;br /&gt;
 start_month                         = 08,&lt;br /&gt;
 start_day                           = 28,&lt;br /&gt;
 start_hour                          = 12,&lt;br /&gt;
 start_minute                        = 00,&lt;br /&gt;
 start_second                        = 00,&lt;br /&gt;
 end_year                            = 2005,&lt;br /&gt;
 end_month                           = 08,&lt;br /&gt;
 end_day                             = 28,&lt;br /&gt;
 end_hour                            = 15,&lt;br /&gt;
 end_minute                          = 00,&lt;br /&gt;
 end_second                          = 00,&lt;br /&gt;
 interval_seconds                    = 10800&lt;br /&gt;
 input_from_file                     = .true.,&lt;br /&gt;
 history_interval_s                  = 30,&lt;br /&gt;
 frames_per_outfile                  = 1000,&lt;br /&gt;
 restart                             = .false.,&lt;br /&gt;
 restart_interval                    = 1,&lt;br /&gt;
 io_form_history                     = 2&lt;br /&gt;
 io_form_restart                     = 2&lt;br /&gt;
 io_form_input                       = 2&lt;br /&gt;
 io_form_boundary                    = 2&lt;br /&gt;
 /&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;domains&lt;br /&gt;
 time_step                           = 0,&lt;br /&gt;
 time_step_fract_num                 = 5,&lt;br /&gt;
 time_step_fract_den                 = 10,&lt;br /&gt;
 max_dom                             = 1,&lt;br /&gt;
 s_we                                = 1,&lt;br /&gt;
 e_we                                = 43,&lt;br /&gt;
 s_sn                                = 1,&lt;br /&gt;
 e_sn                                = 43,&lt;br /&gt;
 s_vert                              = 1,&lt;br /&gt;
 e_vert                              = 41,&lt;br /&gt;
 num_metgrid_levels                  = 30&lt;br /&gt;
 dx                                  = 60,&lt;br /&gt;
 dy                                  = 60,&lt;br /&gt;
 grid_id                             = 1,&lt;br /&gt;
 parent_id                           = 0,&lt;br /&gt;
 i_parent_start                      = 0,&lt;br /&gt;
 j_parent_start                      = 0,&lt;br /&gt;
 parent_grid_ratio                   = 1,&lt;br /&gt;
 parent_time_step_ratio              = 1,&lt;br /&gt;
 feedback                            = 1,&lt;br /&gt;
 smooth_option                       = 0&lt;br /&gt;
 sr_x                                = 10,&lt;br /&gt;
 sr_y                                = 10,&lt;br /&gt;
 sfcp_to_sfcp                        = .true.,&lt;br /&gt;
 p_top_requested                     = 10000&lt;br /&gt;
 /&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;bdy_control&lt;br /&gt;
 spec_bdy_width                      = 5,&lt;br /&gt;
 spec_zone                           = 1,&lt;br /&gt;
 relax_zone                          = 4,&lt;br /&gt;
 specified                           = .true.,&lt;br /&gt;
 periodic_x                          = .false.,&lt;br /&gt;
 symmetric_xs                        = .false.,&lt;br /&gt;
 symmetric_xe                        = .false.,&lt;br /&gt;
 open_xs                             = .false.,&lt;br /&gt;
 open_xe                             = .false.,&lt;br /&gt;
 periodic_y                          = .false.,&lt;br /&gt;
 symmetric_ys                        = .false.,&lt;br /&gt;
 symmetric_ye                        = .false.,&lt;br /&gt;
 open_ys                             = .false.,&lt;br /&gt;
 open_ye                             = .false.,&lt;br /&gt;
 nested                              = .false.,&lt;br /&gt;
 /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The full namelist used can be found [http://pastebin.com/thu8KDZF here].&lt;br /&gt;
&lt;br /&gt;
Once the namelist is properly configured we run the WRF real preprocessor.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./real.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This creates the initial and boundary files for the WRF simulation and fills all missing fields&lt;br /&gt;
from the grib data with reasonable defaults.  The files that it produces are &amp;lt;tt&amp;gt;wrfbdy_d01&amp;lt;/tt&amp;gt;&lt;br /&gt;
and &amp;lt;tt&amp;gt;wrfinput_d01&amp;lt;/tt&amp;gt;, which can be downloaded here [[File:wrf_real_output.tgz]].&lt;br /&gt;
&lt;br /&gt;
Finally, we run the simulation.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;./wrf.exe&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The history file for this example can be downloaded here, [[File:wrf_real_history.tgz]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Data]]&lt;br /&gt;
[[Category:Howtos|Run WRF-Fire with real data]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_VAPOR&amp;diff=2950</id>
		<title>How to visualize WRF-Fire output in VAPOR</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_VAPOR&amp;diff=2950"/>
		<updated>2016-05-04T19:44:41Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Directions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
==Prerequistes==&lt;br /&gt;
&lt;br /&gt;
* [[How to run WRF-Fire|A working installation]] of [[WRF-Fire]], possibly on a remote supercomputer or a cluster.&lt;br /&gt;
* A visualization computer with a [http://www.vapor.ucar.edu/docs/install/index.php?id=depbin decent graphics card and drivers] (hardware accelerated [[wikipedia:OpenGL|OpenGL]] required), 3 button mouse.&lt;br /&gt;
* [http://www.vapor.ucar.edu  Download] and install [[VAPOR]] (&#039;&#039;&#039;for idealized cases we recommend using Vapor version 2.0.0&#039;&#039;&#039; as newer versions have problems with processing wrfoutput data without valid latitude and longitude provided in degrees)&lt;br /&gt;
** Read [http://www.vapor.ucar.edu/start Getting started with VAPOR] first.&lt;br /&gt;
** On a Mac, run the installation package, then add to your path &#039;&#039;&#039;/Applications/VAPOR.app/Contents/MacOS&#039;&#039;&#039;&lt;br /&gt;
** Do the exercises in the first few pages of the [http://www.vapor.ucar.edu/docs/tutorial VAPOR quick start guide] to learn the basics of the controls.&lt;br /&gt;
** VAPOR can be [http://www.cisl.ucar.edu/hss/dasg/userinfo/remotevis.shtml used remotely] over a version of [[wikipedia:VNC|VNC]] with OpenGL support, to avoid transferring huge datasets to your visualization computer.&lt;br /&gt;
&lt;br /&gt;
==Directions==&lt;br /&gt;
* [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3/users_guide_chap5.htm#Nml Change in &#039;&#039;&#039;namelist.input&#039;&#039;&#039;] the line with &#039;&#039;&#039;history_interval&#039;&#039;&#039; to the desired frame interval in seconds, for example &#039;&#039;&#039;history_interval_s=1&#039;&#039;&#039;. Make sure &#039;&#039;&#039;frames_per_outfile&#039;&#039;&#039; is large enough so that only one &#039;&#039;&#039;wrfout&#039;&#039;&#039; file is produced.&lt;br /&gt;
* [[How to run WRF-Fire|Run WRF-Fire]]. The pictures below are from the &amp;quot;hill&amp;quot; ideal run in WRF-Fire.&lt;br /&gt;
* If the visualization computer is different from the computer where you run WRF-Fire, transfer the &#039;&#039;&#039;wrfout&#039;&#039;&#039; file to the visualization computer&lt;br /&gt;
* Start VAPOR by clicking on its icon or &#039;&#039;&#039;vaporgui&#039;&#039;&#039; from the command line&lt;br /&gt;
* In the GUI, click &amp;quot;Data&amp;quot; on the top menu bar, then &amp;quot;Import WRF output files into current session&amp;quot; or &amp;quot;Data&amp;quot;, then &amp;quot;Import data into current session&amp;quot; then select &amp;quot;WRF_ARW&amp;quot; from the submenu, and navigate to your &#039;&#039;&#039;wrfout&#039;&#039;&#039; file. &lt;br /&gt;
[[File:Vapor_WRF_import.png]]&lt;br /&gt;
&lt;br /&gt;
In the black right panel, you should see an empty wireframe box from the top.&lt;br /&gt;
* Click the &amp;quot;Flow&amp;quot; tab, check the box &amp;quot;Instance 1&amp;quot;, click &amp;quot;OK&amp;quot; on a warning about flow lines below zero.  Select &amp;quot;Refinement&amp;quot; 2. You should see a picture like this (the starting points of the flow lines are picked randomly so they are different in every session):&lt;br /&gt;
[[File:Vapor-flowlines-window.png|600px]]&lt;br /&gt;
* Click the &amp;quot;Animation&amp;quot; tab and move the &amp;quot;Frame position&amp;quot; slider to the middle (in the ideal &amp;quot;hill&amp;quot; example), or to a time when you know that the fire has already well developed. The flowlines should move a little.&lt;br /&gt;
* Click the &amp;quot;2D&amp;quot; tab, check &amp;quot;Instance 1&amp;quot;, select &amp;quot;Refinement&amp;quot; 2, and 2D variable &#039;&#039;&#039;GRNHFX&#039;&#039;&#039;, check &amp;quot;Apply color and opacity to terrain surface&amp;quot;, and push the &amp;quot;Fit data&amp;quot; button at the bottom.&lt;br /&gt;
* Rotate the image with a mouse to see something like this:&lt;br /&gt;
[[File:Vapor-fire-window.png|600px]]&lt;br /&gt;
* Click on the &amp;quot;Animation&amp;quot; tab, click on the rewind and play VCR controls, and watch the movie. If the movie is too slow, go back to the &amp;quot;Flow&amp;quot; tab and reduce the &amp;quot;Refinement&amp;quot; value.&lt;br /&gt;
* To capture the movie, use &amp;quot;Capture&amp;quot;, &amp;quot;Begin image capture sequence in visualizer 0&amp;quot;, select directory, then run the movie, when done &amp;quot;Capture&amp;quot; &amp;quot;End image capture sequence&amp;quot;. You get the movie frames as jpg files.&lt;br /&gt;
* Use the DVR tab and other VAPOR features for a more advanced visualization as desired.&lt;br /&gt;
&lt;br /&gt;
==More advanced visualization==&lt;br /&gt;
&lt;br /&gt;
* Optional: If you plan to work with large files (over 2GB),  you must have WRF compiled with large file support.  This requires a netcdf&lt;br /&gt;
library with large file support as well.  To compile netcdf with large file support, follow the instructions at [[How to run WRF-Fire]], but add the flag&lt;br /&gt;
&amp;lt;code&amp;gt;--enable-largefile&amp;lt;/code&amp;gt; to the configure command, and set the environment variable &lt;br /&gt;
&amp;lt;code&amp;gt;WRFIO_NCD_LARGE_FILE_SUPPORT=1&amp;lt;/code&amp;gt; prior to compiling WRF.&lt;br /&gt;
&lt;br /&gt;
If you are running on a Mac, you can install nco with large file support using [http://www.macports.org/ macports],&lt;br /&gt;
 sudo port install nco&lt;br /&gt;
and see its [http://nco.sourceforge.net/nco.html user&#039;s guide] if you wish. On some linux distributions, the binaries that come with the package manager do not support large files.  You will need to recompile nco manually from the [http://nco.sourceforge.net/src/nco-4.0.3.tar.gz source package] with the following environment variables set to the location of you netcdf library.&lt;br /&gt;
 export NETCDF_LIB=${NETCDF}/lib&lt;br /&gt;
 export NETCDF_INC=${NETCDF}/include&lt;br /&gt;
&lt;br /&gt;
* If the wrfout file contains all WRF variables, which is way more than we need at this point, it is convenient to select only the desired variables: U,V,W for wind streamlines, GRNHFX for fire, QVAPOR for smoke and AVG_FUEL_FRAC for the burned area. &lt;br /&gt;
The selection of variables can be done in two ways:&lt;br /&gt;
* create new NetCDF file with these variables by (&amp;quot;-O&amp;quot; switch overrides the file and if some variable is not available, it will simply skip it)&lt;br /&gt;
 ncks -v U,V,W,QVAPOR,P,T,GRNHFX,AVG_FUEL_FRAC,PH,PHB,ROS,UF,VF,HGT,ZSF,Times wrfout -O file&lt;br /&gt;
 wrfvdfcreate file file.vdf&lt;br /&gt;
 wrf2vdf file.vdf file&lt;br /&gt;
The wrfvdfcreate command creates a vdf metafile with a description of the data for Vapor and wrf2vdf created a directory file_data with the actual data.&lt;br /&gt;
* the other option is to specify the variables in the wrfvdfcreate call, i.e., run something like&lt;br /&gt;
 wrfvdfcreate -vars3d U:V:W:QVAPOR -vars2d GRNHFX:AVG_FUEL_FRAC  wrfout file.vdf&lt;br /&gt;
 wrf2vdf file.vdf wrfout&lt;br /&gt;
This would create a directory wrfout_data with the same content as the directory file_data above.&lt;br /&gt;
&lt;br /&gt;
* Start VAPOR by clicking on its icon or vaporgui from the command line. &lt;br /&gt;
* If you are provided a &amp;quot;Vapor saved session file&amp;quot; *.vss click &amp;quot;File&amp;quot; in the top menu bar and load this file by &amp;quot;Open session&amp;quot; dialogue. In either case, click &amp;quot;Data&amp;quot; in the top menu bar, then &amp;quot;load dataset in the current session&amp;quot;, and navigate to the file.vdf (you might have just created). In the black right panel, you should see an empty wireframe box.&lt;br /&gt;
* To label the axes with coordinate values click &amp;quot;Edit&amp;quot; in the top main menu, then &amp;quot;Edit Visualizer Features&amp;quot; and check &amp;quot;Show X, Y, Z (R,G,B) Arrows&amp;quot;. You can also add &amp;quot;Enable axis annotation&amp;quot;, &amp;quot;Time annotation&amp;quot;, etc. In case you do not have a terrain image and you will not be able to acquire one using the steps described below, you might check &amp;quot;Display Terrain Surface&amp;quot; and pick (a constant) &amp;quot;Color&amp;quot; you like. If you have an image, do not import it here, but use the &amp;quot;Image tab&amp;quot; discussed below.&lt;br /&gt;
* If you do not have an image of the terrain, but your wrfout file contains the geo-coordinates of the domain you can acquire the image from the internet. If you already have an image or you don&#039;t know the coordinates then skip this step. We will use Vapor&#039;s bash-shell script [http://www.vapor.ucar.edu/docs/reference/index.php?id=man/getWMSImage getWMSImage.sh]  for retrieving maps and imagery from a Web Mapping Server (WMS). The call of the script has a general form&lt;br /&gt;
 getWMSImage.sh [options] minLon minLat maxLon maxLat&lt;br /&gt;
where we will use the following options to specify: map type -m landsat (the other option to consider is BMNG, but it seems to give worse quality images), the output file -o filename.tiff and the pixel resolution -r xres yres (the default is 1024x768). Assuming that minLon minLat maxLon maxLat are given as -95.03 29.3 -95.01 29.4, an example call of getWMSImage.sh can be&lt;br /&gt;
 getWMSImage.sh -m landsat -o fireflux_terrain_geo.tiff -r 1180 1580 -95.03 29.3 -95.01 29.4&lt;br /&gt;
Such an image will be automatically geo-referenced, i.e. it will include the longitude/latitude information. &lt;br /&gt;
If you have a tiff image which is not geo-referenced, e.g., an image obtained from the Google Earth screenshot, you can use [http://www.vapor.ucar.edu/docs/reference/index.php?id=man/tiff2geotiff tiff2geotiff] to convert it to a geo-referenced terrain image as&lt;br /&gt;
 tiff2geotiff -4 &amp;quot;+proj=longlat&amp;quot; -n &amp;quot;-95.03 29.3 -95.01 29.4&amp;quot; fireflux_terrain.tiff fireflux_terrain_geo.tiff&lt;br /&gt;
* If you have a tiff image of the terrain click on the &amp;quot;Image&amp;quot; tab. In VAPOR 1.5.0 you are allowed to use only tiff images without any compression. If your image is a tiff but not a geotiff (or you are not sure) uncheck &amp;quot;Georeference&amp;quot;, then &amp;quot;Select Image File&amp;quot; and navigate to your file. Finally check &amp;quot;Apply image to terrain&amp;quot; and &amp;quot;Instance: 1&amp;quot;. After the image is displayed you may also check &amp;quot;Crop to bounds&amp;quot; if needed. &lt;br /&gt;
* Click the &amp;quot;Animation&amp;quot; tab and move the &amp;quot;Frame position&amp;quot; slider to a time when you know that the fire has already well developed. &lt;br /&gt;
* Click the &amp;quot;2D&amp;quot; tab, select variable GRNHFX, check &amp;quot;Refinement&amp;quot; 2, and &amp;quot;Apply color and opacity to terrain surface&amp;quot;, If you do not have *.vtf file, set at the bottom of the tab the colormap and opacity as, e.g., in the following picture (the opacity is sharply cut off near zeros values and set full elsewhere, so that the areas not on fire are fully transparent):&lt;br /&gt;
[[File:Vapor-fire-colormap-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
If there is a *.vtf file available for the colormap and opacity, click &amp;quot;Load TF&amp;quot; and navigate to the file. Finally, check &amp;quot;Instance: 1&amp;quot;. You should see the fire area on the terrain. One might also check that the &amp;quot;Z-center&amp;quot; coordinate has a slightly higher value in the &amp;quot;2D&amp;quot; tab than in the &amp;quot;Image&amp;quot; tab, i.e., that the fire will be displayed &#039;on top of the terrain&#039;.&lt;br /&gt;
* On top of the &amp;quot;2D&amp;quot; tab under &amp;quot;Renderer Control&amp;quot; click &amp;quot;New&amp;quot; push &amp;quot;Instance: 2&amp;quot; and select the AVG_FUEL_FRAC variable, check &amp;quot;Refinement&amp;quot; 2, and &amp;quot;Apply color and opacity to terrain surface&amp;quot;. Scroll down to &amp;quot;Transfer Function Editor&amp;quot;, click &amp;quot;Load Installed TF&amp;quot; and select &#039;&#039;&#039;grayscale.vtf&#039;&#039;&#039;. The settings for opacity are illustrated by the picture below (the opacity is high and color is dark for regions with little fuel remaining):&lt;br /&gt;
[[File:Vapor-avg_fuel_frac-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
One might also like to make sure that the z-coordinate for AVG_FUEL_FRAC is a bit below the GRNHFX z-coordinate and a bit above the z-coordinate for the terrain image.  &lt;br /&gt;
Note that the AVG_FUEL_FRAC variable might not be convenient if there are areas that do not contain any fuel a-priori. &lt;br /&gt;
* Click the &amp;quot;Flow&amp;quot; tab, make sure that the &amp;quot;steady field&amp;quot; variables are U, V, W and select &amp;quot;Refinement&amp;quot; 2. Scroll down to &amp;quot;Flow Seeding Parameters&amp;quot;, select &amp;quot;Nonrandom Rake&amp;quot; and &amp;quot;seed count ... By dimension&amp;quot; to ,e.g., 3, 3, 1. In the &amp;quot;Shape parameters&amp;quot; area set &amp;quot;shape&amp;quot; to arrows, decrease &amp;quot;Diameter&amp;quot; to e.g., 0.5 and in &amp;quot;Color/Opacity mapping&amp;quot; area set &amp;quot;Color&amp;quot; to &amp;quot;Position along flow&amp;quot;. Check the box &amp;quot;Instance: 1&amp;quot;. If there is a warning about flow lines below zero click &amp;quot;OK&amp;quot;, but follow the instructions: in &amp;quot;Edit&amp;quot; top menu select &amp;quot;Edit Visualizer Features&amp;quot; and in the &amp;quot;Variable values outside grid&amp;quot; uncheck for U,V and W the &amp;quot;Extend, down&amp;quot; box so that the &amp;quot;Below&amp;quot; appears in white with 0 value in the box. Hit &amp;quot;Apply&amp;quot; and &amp;quot;OK&amp;quot;. One might also like to position the flow streamlines in the vertical direction. This can be done in two ways: either by sliding the &amp;quot;Rake center/sizes&amp;quot; slides in the &amp;quot;Flow Seeding Parameters&amp;quot; portion of the tab, or by clicking the &amp;quot;Region Select Mode&amp;quot; which is the second icon (the box) from the left under the top menu bar. This will display a box with handles in the visualizer window (see the image below) which can be resized by clicking and dragging with the right-button on the mouse. After the region is set, click the&amp;quot;Navigation Mode&amp;quot; icon (the rudder) which is the very left one under the top menu bar.  &lt;br /&gt;
* Click on the DVR (Direct Volume Rendering) tab and select the QVAPOR variable, which is used to visualize the smoke. This is the tricky part which can be in my opinion hardly &#039;automated&#039;. One might like to decrease the vertical size of the region in a way described above because there might be a significant amount of vapor present higher in the atmosphere. An example of setting for color and opacity are illustrated by the following picture: &lt;br /&gt;
[[File:Vapor-qvapor-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Note that the displayed data correspond to the lower 1/3~1/4 (approximately) of the range of values and opacity increases slightly with the values. &amp;quot;Load Installed TF&amp;quot; as &#039;&#039;&#039;grayscale.vtf&#039;&#039;&#039; and ev. shuffle the color control points if you want the smoke to appear more dark.  Also, it might be better to leave the &amp;quot;Refinement&amp;quot; 0 not only because DVR is computationally demanding but also it might provide (surprisingly) better appearance of the fire. Also if one is still looking for the best point of view and is moving the region, it is recommended to uncheck the &amp;quot;Instance: 1&amp;quot; for the moment until the final point of view on the region is found. If the ultimate goal is a video sequence it is better to watch the full sequence using the controls in the &amp;quot;Animation&amp;quot; tab before the final decision about the (color and opacity) settings in the DVR tab for the QVAPOR variable are made.&lt;br /&gt;
* To capture a single jpg image, click &amp;quot;Capture&amp;quot; in the top menu bar and &amp;quot;Capture a single image in visualizer 0&amp;quot; and follow the instructions. &lt;br /&gt;
* To capture a sequence of jpg images (to be post-processed into a video out of Vapor) click &amp;quot;Capture&amp;quot; in the top menu bar and &amp;quot;Begin image capture sequence in visualizer 0&amp;quot;, select directory, then run the movie in the &amp;quot;Animation&amp;quot; tab or using the controls next to the top menu bar, when done click again &amp;quot;Capture&amp;quot; followed by &amp;quot;End image capture sequence&amp;quot;. You get the movie frames as a sequence of jpg files. The sequence of images can be processed into an avi in Virtual Dub under windows or using&lt;br /&gt;
 ffmpeg -f image2 -r 1 -i fireflux_small_%04d.jpg -r 25 -s 512x512  movie.avi&lt;br /&gt;
&lt;br /&gt;
under linux/Mac. The first &#039;-r 1&#039; means the frame rate of the input, so 1 means each picture is displayed for 1 second, 10 means 1/10 of a second, and so on.  Use this to adjust the speed of playback.  The &#039;-s 512x512&#039; means the resolution of the output in pixels (width x height).  While ffmpeg will let you put any numbers here, you should make sure that the width and height are both divisible by 16 otherwise some movie players will not be able to play it.&lt;br /&gt;
&lt;br /&gt;
It looks for input images starting at fireflux_small_0001.jpg and continues until a file doesn&#039;t exist.  This means if the output starts at 0000, then the first frame will not be in the movie.  I don&#039;t believe there is a way to configure this aspect of ffmpeg.&lt;br /&gt;
&lt;br /&gt;
This command will create the movie and compress it using a common video codec.  It will you use the highest quality setting by default, which is overboard for this kind of movie.  So if the files still end up larger than we want, we can always add a couple of more flags to limit the bitrate of the output.&lt;br /&gt;
&lt;br /&gt;
* Use other VAPOR features for a more advanced visualization as desired.&lt;br /&gt;
&lt;br /&gt;
==Works with==&lt;br /&gt;
* WRF-Fire {{WRF-Fire-commit|1e710fc81479ea71ed74dd9903da9917fc9dcd93|May 26 2010}} and hopefully later&lt;br /&gt;
* VAPOR  1.5.2 and hopefully later&lt;br /&gt;
* Tested on MacBook Pro 4GB OS X 10.6 GeForce 8600M GT 512MB&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Howtos|Visualize WRF-Fire output in VAPOR]]&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Visualization]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:Vapor_WRF_import.png&amp;diff=2949</id>
		<title>File:Vapor WRF import.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:Vapor_WRF_import.png&amp;diff=2949"/>
		<updated>2016-05-04T19:41:25Z</updated>

		<summary type="html">&lt;p&gt;Adamko: Adamko uploaded a new version of File:Vapor WRF import.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Importing WRF-SFIRE data into Vapor.&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:Vapor_WRF_import.png&amp;diff=2948</id>
		<title>File:Vapor WRF import.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:Vapor_WRF_import.png&amp;diff=2948"/>
		<updated>2016-05-04T19:38:33Z</updated>

		<summary type="html">&lt;p&gt;Adamko: Adamko uploaded a new version of File:Vapor WRF import.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Importing WRF-SFIRE data into Vapor.&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:Vapor_WRF_import.png&amp;diff=2947</id>
		<title>File:Vapor WRF import.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:Vapor_WRF_import.png&amp;diff=2947"/>
		<updated>2016-05-04T19:26:27Z</updated>

		<summary type="html">&lt;p&gt;Adamko: Importing WRF-SFIRE data into Vapor.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Importing WRF-SFIRE data into Vapor.&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_VAPOR&amp;diff=2946</id>
		<title>How to visualize WRF-Fire output in VAPOR</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_VAPOR&amp;diff=2946"/>
		<updated>2016-05-04T19:17:15Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Directions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
==Prerequistes==&lt;br /&gt;
&lt;br /&gt;
* [[How to run WRF-Fire|A working installation]] of [[WRF-Fire]], possibly on a remote supercomputer or a cluster.&lt;br /&gt;
* A visualization computer with a [http://www.vapor.ucar.edu/docs/install/index.php?id=depbin decent graphics card and drivers] (hardware accelerated [[wikipedia:OpenGL|OpenGL]] required), 3 button mouse.&lt;br /&gt;
* [http://www.vapor.ucar.edu  Download] and install [[VAPOR]] (&#039;&#039;&#039;for idealized cases we recommend using Vapor version 2.0.0&#039;&#039;&#039; as newer versions have problems with processing wrfoutput data without valid latitude and longitude provided in degrees)&lt;br /&gt;
** Read [http://www.vapor.ucar.edu/start Getting started with VAPOR] first.&lt;br /&gt;
** On a Mac, run the installation package, then add to your path &#039;&#039;&#039;/Applications/VAPOR.app/Contents/MacOS&#039;&#039;&#039;&lt;br /&gt;
** Do the exercises in the first few pages of the [http://www.vapor.ucar.edu/docs/tutorial VAPOR quick start guide] to learn the basics of the controls.&lt;br /&gt;
** VAPOR can be [http://www.cisl.ucar.edu/hss/dasg/userinfo/remotevis.shtml used remotely] over a version of [[wikipedia:VNC|VNC]] with OpenGL support, to avoid transferring huge datasets to your visualization computer.&lt;br /&gt;
&lt;br /&gt;
==Directions==&lt;br /&gt;
* [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3/users_guide_chap5.htm#Nml Change in &#039;&#039;&#039;namelist.input&#039;&#039;&#039;] the line with &#039;&#039;&#039;history_interval&#039;&#039;&#039; to the desired frame interval in seconds, for example &#039;&#039;&#039;history_interval_s=1&#039;&#039;&#039;. Make sure &#039;&#039;&#039;frames_per_outfile&#039;&#039;&#039; is large enough so that only one &#039;&#039;&#039;wrfout&#039;&#039;&#039; file is produced.&lt;br /&gt;
* [[How to run WRF-Fire|Run WRF-Fire]]. The pictures below are from the &amp;quot;hill&amp;quot; ideal run in WRF-Fire.&lt;br /&gt;
* If the visualization computer is different from the computer where you run WRF-Fire, transfer the &#039;&#039;&#039;wrfout&#039;&#039;&#039; file to the visualization computer&lt;br /&gt;
* Start VAPOR by clicking on its icon or &#039;&#039;&#039;vaporgui&#039;&#039;&#039; from the command line&lt;br /&gt;
* In the GUI, click &amp;quot;Data&amp;quot; on the top menu bar, then &amp;quot;Import WRF output files into current session&amp;quot; or &amp;quot;Data&amp;quot;, then &amp;quot;Import data into current session&amp;quot; then select &amp;quot;WRF_ARW&amp;quot; from the submenu, and navigate to your &#039;&#039;&#039;wrfout&#039;&#039;&#039; file. In the black right panel, you should see an empty wireframe box from the top.&lt;br /&gt;
* Click the &amp;quot;Flow&amp;quot; tab, check the box &amp;quot;Instance 1&amp;quot;, click &amp;quot;OK&amp;quot; on a warning about flow lines below zero.  Select &amp;quot;Refinement&amp;quot; 2. You should see a picture like this (the starting points of the flow lines are picked randomly so they are different in every session):&lt;br /&gt;
[[File:Vapor-flowlines-window.png|600px]]&lt;br /&gt;
* Click the &amp;quot;Animation&amp;quot; tab and move the &amp;quot;Frame position&amp;quot; slider to the middle (in the ideal &amp;quot;hill&amp;quot; example), or to a time when you know that the fire has already well developed. The flowlines should move a little.&lt;br /&gt;
* Click the &amp;quot;2D&amp;quot; tab, check &amp;quot;Instance 1&amp;quot;, select &amp;quot;Refinement&amp;quot; 2, and 2D variable &#039;&#039;&#039;GRNHFX&#039;&#039;&#039;, check &amp;quot;Apply color and opacity to terrain surface&amp;quot;, and push the &amp;quot;Fit data&amp;quot; button at the bottom.&lt;br /&gt;
* Rotate the image with a mouse to see something like this:&lt;br /&gt;
[[File:Vapor-fire-window.png|600px]]&lt;br /&gt;
* Click on the &amp;quot;Animation&amp;quot; tab, click on the rewind and play VCR controls, and watch the movie. If the movie is too slow, go back to the &amp;quot;Flow&amp;quot; tab and reduce the &amp;quot;Refinement&amp;quot; value.&lt;br /&gt;
* To capture the movie, use &amp;quot;Capture&amp;quot;, &amp;quot;Begin image capture sequence in visualizer 0&amp;quot;, select directory, then run the movie, when done &amp;quot;Capture&amp;quot; &amp;quot;End image capture sequence&amp;quot;. You get the movie frames as jpg files.&lt;br /&gt;
* Use the DVR tab and other VAPOR features for a more advanced visualization as desired.&lt;br /&gt;
&lt;br /&gt;
==More advanced visualization==&lt;br /&gt;
&lt;br /&gt;
* Optional: If you plan to work with large files (over 2GB),  you must have WRF compiled with large file support.  This requires a netcdf&lt;br /&gt;
library with large file support as well.  To compile netcdf with large file support, follow the instructions at [[How to run WRF-Fire]], but add the flag&lt;br /&gt;
&amp;lt;code&amp;gt;--enable-largefile&amp;lt;/code&amp;gt; to the configure command, and set the environment variable &lt;br /&gt;
&amp;lt;code&amp;gt;WRFIO_NCD_LARGE_FILE_SUPPORT=1&amp;lt;/code&amp;gt; prior to compiling WRF.&lt;br /&gt;
&lt;br /&gt;
If you are running on a Mac, you can install nco with large file support using [http://www.macports.org/ macports],&lt;br /&gt;
 sudo port install nco&lt;br /&gt;
and see its [http://nco.sourceforge.net/nco.html user&#039;s guide] if you wish. On some linux distributions, the binaries that come with the package manager do not support large files.  You will need to recompile nco manually from the [http://nco.sourceforge.net/src/nco-4.0.3.tar.gz source package] with the following environment variables set to the location of you netcdf library.&lt;br /&gt;
 export NETCDF_LIB=${NETCDF}/lib&lt;br /&gt;
 export NETCDF_INC=${NETCDF}/include&lt;br /&gt;
&lt;br /&gt;
* If the wrfout file contains all WRF variables, which is way more than we need at this point, it is convenient to select only the desired variables: U,V,W for wind streamlines, GRNHFX for fire, QVAPOR for smoke and AVG_FUEL_FRAC for the burned area. &lt;br /&gt;
The selection of variables can be done in two ways:&lt;br /&gt;
* create new NetCDF file with these variables by (&amp;quot;-O&amp;quot; switch overrides the file and if some variable is not available, it will simply skip it)&lt;br /&gt;
 ncks -v U,V,W,QVAPOR,P,T,GRNHFX,AVG_FUEL_FRAC,PH,PHB,ROS,UF,VF,HGT,ZSF,Times wrfout -O file&lt;br /&gt;
 wrfvdfcreate file file.vdf&lt;br /&gt;
 wrf2vdf file.vdf file&lt;br /&gt;
The wrfvdfcreate command creates a vdf metafile with a description of the data for Vapor and wrf2vdf created a directory file_data with the actual data.&lt;br /&gt;
* the other option is to specify the variables in the wrfvdfcreate call, i.e., run something like&lt;br /&gt;
 wrfvdfcreate -vars3d U:V:W:QVAPOR -vars2d GRNHFX:AVG_FUEL_FRAC  wrfout file.vdf&lt;br /&gt;
 wrf2vdf file.vdf wrfout&lt;br /&gt;
This would create a directory wrfout_data with the same content as the directory file_data above.&lt;br /&gt;
&lt;br /&gt;
* Start VAPOR by clicking on its icon or vaporgui from the command line. &lt;br /&gt;
* If you are provided a &amp;quot;Vapor saved session file&amp;quot; *.vss click &amp;quot;File&amp;quot; in the top menu bar and load this file by &amp;quot;Open session&amp;quot; dialogue. In either case, click &amp;quot;Data&amp;quot; in the top menu bar, then &amp;quot;load dataset in the current session&amp;quot;, and navigate to the file.vdf (you might have just created). In the black right panel, you should see an empty wireframe box.&lt;br /&gt;
* To label the axes with coordinate values click &amp;quot;Edit&amp;quot; in the top main menu, then &amp;quot;Edit Visualizer Features&amp;quot; and check &amp;quot;Show X, Y, Z (R,G,B) Arrows&amp;quot;. You can also add &amp;quot;Enable axis annotation&amp;quot;, &amp;quot;Time annotation&amp;quot;, etc. In case you do not have a terrain image and you will not be able to acquire one using the steps described below, you might check &amp;quot;Display Terrain Surface&amp;quot; and pick (a constant) &amp;quot;Color&amp;quot; you like. If you have an image, do not import it here, but use the &amp;quot;Image tab&amp;quot; discussed below.&lt;br /&gt;
* If you do not have an image of the terrain, but your wrfout file contains the geo-coordinates of the domain you can acquire the image from the internet. If you already have an image or you don&#039;t know the coordinates then skip this step. We will use Vapor&#039;s bash-shell script [http://www.vapor.ucar.edu/docs/reference/index.php?id=man/getWMSImage getWMSImage.sh]  for retrieving maps and imagery from a Web Mapping Server (WMS). The call of the script has a general form&lt;br /&gt;
 getWMSImage.sh [options] minLon minLat maxLon maxLat&lt;br /&gt;
where we will use the following options to specify: map type -m landsat (the other option to consider is BMNG, but it seems to give worse quality images), the output file -o filename.tiff and the pixel resolution -r xres yres (the default is 1024x768). Assuming that minLon minLat maxLon maxLat are given as -95.03 29.3 -95.01 29.4, an example call of getWMSImage.sh can be&lt;br /&gt;
 getWMSImage.sh -m landsat -o fireflux_terrain_geo.tiff -r 1180 1580 -95.03 29.3 -95.01 29.4&lt;br /&gt;
Such an image will be automatically geo-referenced, i.e. it will include the longitude/latitude information. &lt;br /&gt;
If you have a tiff image which is not geo-referenced, e.g., an image obtained from the Google Earth screenshot, you can use [http://www.vapor.ucar.edu/docs/reference/index.php?id=man/tiff2geotiff tiff2geotiff] to convert it to a geo-referenced terrain image as&lt;br /&gt;
 tiff2geotiff -4 &amp;quot;+proj=longlat&amp;quot; -n &amp;quot;-95.03 29.3 -95.01 29.4&amp;quot; fireflux_terrain.tiff fireflux_terrain_geo.tiff&lt;br /&gt;
* If you have a tiff image of the terrain click on the &amp;quot;Image&amp;quot; tab. In VAPOR 1.5.0 you are allowed to use only tiff images without any compression. If your image is a tiff but not a geotiff (or you are not sure) uncheck &amp;quot;Georeference&amp;quot;, then &amp;quot;Select Image File&amp;quot; and navigate to your file. Finally check &amp;quot;Apply image to terrain&amp;quot; and &amp;quot;Instance: 1&amp;quot;. After the image is displayed you may also check &amp;quot;Crop to bounds&amp;quot; if needed. &lt;br /&gt;
* Click the &amp;quot;Animation&amp;quot; tab and move the &amp;quot;Frame position&amp;quot; slider to a time when you know that the fire has already well developed. &lt;br /&gt;
* Click the &amp;quot;2D&amp;quot; tab, select variable GRNHFX, check &amp;quot;Refinement&amp;quot; 2, and &amp;quot;Apply color and opacity to terrain surface&amp;quot;, If you do not have *.vtf file, set at the bottom of the tab the colormap and opacity as, e.g., in the following picture (the opacity is sharply cut off near zeros values and set full elsewhere, so that the areas not on fire are fully transparent):&lt;br /&gt;
[[File:Vapor-fire-colormap-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
If there is a *.vtf file available for the colormap and opacity, click &amp;quot;Load TF&amp;quot; and navigate to the file. Finally, check &amp;quot;Instance: 1&amp;quot;. You should see the fire area on the terrain. One might also check that the &amp;quot;Z-center&amp;quot; coordinate has a slightly higher value in the &amp;quot;2D&amp;quot; tab than in the &amp;quot;Image&amp;quot; tab, i.e., that the fire will be displayed &#039;on top of the terrain&#039;.&lt;br /&gt;
* On top of the &amp;quot;2D&amp;quot; tab under &amp;quot;Renderer Control&amp;quot; click &amp;quot;New&amp;quot; push &amp;quot;Instance: 2&amp;quot; and select the AVG_FUEL_FRAC variable, check &amp;quot;Refinement&amp;quot; 2, and &amp;quot;Apply color and opacity to terrain surface&amp;quot;. Scroll down to &amp;quot;Transfer Function Editor&amp;quot;, click &amp;quot;Load Installed TF&amp;quot; and select &#039;&#039;&#039;grayscale.vtf&#039;&#039;&#039;. The settings for opacity are illustrated by the picture below (the opacity is high and color is dark for regions with little fuel remaining):&lt;br /&gt;
[[File:Vapor-avg_fuel_frac-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
One might also like to make sure that the z-coordinate for AVG_FUEL_FRAC is a bit below the GRNHFX z-coordinate and a bit above the z-coordinate for the terrain image.  &lt;br /&gt;
Note that the AVG_FUEL_FRAC variable might not be convenient if there are areas that do not contain any fuel a-priori. &lt;br /&gt;
* Click the &amp;quot;Flow&amp;quot; tab, make sure that the &amp;quot;steady field&amp;quot; variables are U, V, W and select &amp;quot;Refinement&amp;quot; 2. Scroll down to &amp;quot;Flow Seeding Parameters&amp;quot;, select &amp;quot;Nonrandom Rake&amp;quot; and &amp;quot;seed count ... By dimension&amp;quot; to ,e.g., 3, 3, 1. In the &amp;quot;Shape parameters&amp;quot; area set &amp;quot;shape&amp;quot; to arrows, decrease &amp;quot;Diameter&amp;quot; to e.g., 0.5 and in &amp;quot;Color/Opacity mapping&amp;quot; area set &amp;quot;Color&amp;quot; to &amp;quot;Position along flow&amp;quot;. Check the box &amp;quot;Instance: 1&amp;quot;. If there is a warning about flow lines below zero click &amp;quot;OK&amp;quot;, but follow the instructions: in &amp;quot;Edit&amp;quot; top menu select &amp;quot;Edit Visualizer Features&amp;quot; and in the &amp;quot;Variable values outside grid&amp;quot; uncheck for U,V and W the &amp;quot;Extend, down&amp;quot; box so that the &amp;quot;Below&amp;quot; appears in white with 0 value in the box. Hit &amp;quot;Apply&amp;quot; and &amp;quot;OK&amp;quot;. One might also like to position the flow streamlines in the vertical direction. This can be done in two ways: either by sliding the &amp;quot;Rake center/sizes&amp;quot; slides in the &amp;quot;Flow Seeding Parameters&amp;quot; portion of the tab, or by clicking the &amp;quot;Region Select Mode&amp;quot; which is the second icon (the box) from the left under the top menu bar. This will display a box with handles in the visualizer window (see the image below) which can be resized by clicking and dragging with the right-button on the mouse. After the region is set, click the&amp;quot;Navigation Mode&amp;quot; icon (the rudder) which is the very left one under the top menu bar.  &lt;br /&gt;
* Click on the DVR (Direct Volume Rendering) tab and select the QVAPOR variable, which is used to visualize the smoke. This is the tricky part which can be in my opinion hardly &#039;automated&#039;. One might like to decrease the vertical size of the region in a way described above because there might be a significant amount of vapor present higher in the atmosphere. An example of setting for color and opacity are illustrated by the following picture: &lt;br /&gt;
[[File:Vapor-qvapor-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Note that the displayed data correspond to the lower 1/3~1/4 (approximately) of the range of values and opacity increases slightly with the values. &amp;quot;Load Installed TF&amp;quot; as &#039;&#039;&#039;grayscale.vtf&#039;&#039;&#039; and ev. shuffle the color control points if you want the smoke to appear more dark.  Also, it might be better to leave the &amp;quot;Refinement&amp;quot; 0 not only because DVR is computationally demanding but also it might provide (surprisingly) better appearance of the fire. Also if one is still looking for the best point of view and is moving the region, it is recommended to uncheck the &amp;quot;Instance: 1&amp;quot; for the moment until the final point of view on the region is found. If the ultimate goal is a video sequence it is better to watch the full sequence using the controls in the &amp;quot;Animation&amp;quot; tab before the final decision about the (color and opacity) settings in the DVR tab for the QVAPOR variable are made.&lt;br /&gt;
* To capture a single jpg image, click &amp;quot;Capture&amp;quot; in the top menu bar and &amp;quot;Capture a single image in visualizer 0&amp;quot; and follow the instructions. &lt;br /&gt;
* To capture a sequence of jpg images (to be post-processed into a video out of Vapor) click &amp;quot;Capture&amp;quot; in the top menu bar and &amp;quot;Begin image capture sequence in visualizer 0&amp;quot;, select directory, then run the movie in the &amp;quot;Animation&amp;quot; tab or using the controls next to the top menu bar, when done click again &amp;quot;Capture&amp;quot; followed by &amp;quot;End image capture sequence&amp;quot;. You get the movie frames as a sequence of jpg files. The sequence of images can be processed into an avi in Virtual Dub under windows or using&lt;br /&gt;
 ffmpeg -f image2 -r 1 -i fireflux_small_%04d.jpg -r 25 -s 512x512  movie.avi&lt;br /&gt;
&lt;br /&gt;
under linux/Mac. The first &#039;-r 1&#039; means the frame rate of the input, so 1 means each picture is displayed for 1 second, 10 means 1/10 of a second, and so on.  Use this to adjust the speed of playback.  The &#039;-s 512x512&#039; means the resolution of the output in pixels (width x height).  While ffmpeg will let you put any numbers here, you should make sure that the width and height are both divisible by 16 otherwise some movie players will not be able to play it.&lt;br /&gt;
&lt;br /&gt;
It looks for input images starting at fireflux_small_0001.jpg and continues until a file doesn&#039;t exist.  This means if the output starts at 0000, then the first frame will not be in the movie.  I don&#039;t believe there is a way to configure this aspect of ffmpeg.&lt;br /&gt;
&lt;br /&gt;
This command will create the movie and compress it using a common video codec.  It will you use the highest quality setting by default, which is overboard for this kind of movie.  So if the files still end up larger than we want, we can always add a couple of more flags to limit the bitrate of the output.&lt;br /&gt;
&lt;br /&gt;
* Use other VAPOR features for a more advanced visualization as desired.&lt;br /&gt;
&lt;br /&gt;
==Works with==&lt;br /&gt;
* WRF-Fire {{WRF-Fire-commit|1e710fc81479ea71ed74dd9903da9917fc9dcd93|May 26 2010}} and hopefully later&lt;br /&gt;
* VAPOR  1.5.2 and hopefully later&lt;br /&gt;
* Tested on MacBook Pro 4GB OS X 10.6 GeForce 8600M GT 512MB&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Howtos|Visualize WRF-Fire output in VAPOR]]&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Visualization]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_VAPOR&amp;diff=2945</id>
		<title>How to visualize WRF-Fire output in VAPOR</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_VAPOR&amp;diff=2945"/>
		<updated>2016-05-04T19:13:00Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Prerequistes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
==Prerequistes==&lt;br /&gt;
&lt;br /&gt;
* [[How to run WRF-Fire|A working installation]] of [[WRF-Fire]], possibly on a remote supercomputer or a cluster.&lt;br /&gt;
* A visualization computer with a [http://www.vapor.ucar.edu/docs/install/index.php?id=depbin decent graphics card and drivers] (hardware accelerated [[wikipedia:OpenGL|OpenGL]] required), 3 button mouse.&lt;br /&gt;
* [http://www.vapor.ucar.edu  Download] and install [[VAPOR]] (&#039;&#039;&#039;for idealized cases we recommend using Vapor version 2.0.0&#039;&#039;&#039; as newer versions have problems with processing wrfoutput data without valid latitude and longitude provided in degrees)&lt;br /&gt;
** Read [http://www.vapor.ucar.edu/start Getting started with VAPOR] first.&lt;br /&gt;
** On a Mac, run the installation package, then add to your path &#039;&#039;&#039;/Applications/VAPOR.app/Contents/MacOS&#039;&#039;&#039;&lt;br /&gt;
** Do the exercises in the first few pages of the [http://www.vapor.ucar.edu/docs/tutorial VAPOR quick start guide] to learn the basics of the controls.&lt;br /&gt;
** VAPOR can be [http://www.cisl.ucar.edu/hss/dasg/userinfo/remotevis.shtml used remotely] over a version of [[wikipedia:VNC|VNC]] with OpenGL support, to avoid transferring huge datasets to your visualization computer.&lt;br /&gt;
&lt;br /&gt;
==Directions==&lt;br /&gt;
* [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3/users_guide_chap5.htm#Nml Change in &#039;&#039;&#039;namelist.input&#039;&#039;&#039;] the line with &#039;&#039;&#039;history_interval&#039;&#039;&#039; to the desired frame interval in seconds, for example &#039;&#039;&#039;history_interval_s=1&#039;&#039;&#039;. Make sure &#039;&#039;&#039;frames_per_outfile&#039;&#039;&#039; is large enough so that only one &#039;&#039;&#039;wrfout&#039;&#039;&#039; file is produced.&lt;br /&gt;
* [[How to run WRF-Fire|Run WRF-Fire]]. The pictures below are from the &amp;quot;hill&amp;quot; ideal run in WRF-Fire.&lt;br /&gt;
* If the visualization computer is different from the computer where you run WRF-Fire, transfer the &#039;&#039;&#039;wrfout&#039;&#039;&#039; file to the visualization computer&lt;br /&gt;
* Convert the &#039;&#039;&#039;wrfout&#039;&#039;&#039; file for use with VAPOR: run from the command line&lt;br /&gt;
** &#039;&#039;&#039;wrfvdfcreate yourwrfoutfile yourwdffile.vdf&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;&#039;wrf2vdf yourwdffile.vdf yourwrfoutfile&#039;&#039;&#039;&lt;br /&gt;
* Start VAPOR by clicking on its icon or &#039;&#039;&#039;vaporgui&#039;&#039;&#039; from the command line&lt;br /&gt;
* In the GUI, click &amp;quot;Data&amp;quot; on the top menu bar, then &amp;quot;load dataset in the current session&amp;quot;, and navigate to the &#039;&#039;&#039;yourwdffile.vdf&#039;&#039;&#039; you have just created. In the black right panel, you should see an empty wireframe box from the top.&lt;br /&gt;
* Click the &amp;quot;Flow&amp;quot; tab, check the box &amp;quot;Instance 1&amp;quot;, click &amp;quot;OK&amp;quot; on a warning about flow lines below zero.  Select &amp;quot;Refinement&amp;quot; 2. You should see a picture like this (the starting points of the flow lines are picked randomly so they are different in every session):&lt;br /&gt;
[[File:Vapor-flowlines-window.png|600px]]&lt;br /&gt;
* Click the &amp;quot;Animation&amp;quot; tab and move the &amp;quot;Frame position&amp;quot; slider to the middle (in the ideal &amp;quot;hill&amp;quot; example), or to a time when you know that the fire has already well developed. The flowlines should move a little.&lt;br /&gt;
* Click the &amp;quot;2D&amp;quot; tab, check &amp;quot;Instance 1&amp;quot;, select &amp;quot;Refinement&amp;quot; 2, and 2D variable &#039;&#039;&#039;GRNHFX&#039;&#039;&#039;, check &amp;quot;Apply color and opacity to terrain surface&amp;quot;, and push the &amp;quot;Fit data&amp;quot; button at the bottom.&lt;br /&gt;
* Rotate the image with a mouse to see something like this:&lt;br /&gt;
[[File:Vapor-fire-window.png|600px]]&lt;br /&gt;
* Click on the &amp;quot;Animation&amp;quot; tab, click on the rewind and play VCR controls, and watch the movie. If the movie is too slow, go back to the &amp;quot;Flow&amp;quot; tab and reduce the &amp;quot;Refinement&amp;quot; value.&lt;br /&gt;
* To capture the movie, use &amp;quot;Capture&amp;quot;, &amp;quot;Begin image capture sequence in visualizer 0&amp;quot;, select directory, then run the movie, when done &amp;quot;Capture&amp;quot; &amp;quot;End image capture sequence&amp;quot;. You get the movie frames as jpg files.&lt;br /&gt;
* Use the DVR tab and other VAPOR features for a more advanced visualization as desired.&lt;br /&gt;
&lt;br /&gt;
==More advanced visualization==&lt;br /&gt;
&lt;br /&gt;
* Optional: If you plan to work with large files (over 2GB),  you must have WRF compiled with large file support.  This requires a netcdf&lt;br /&gt;
library with large file support as well.  To compile netcdf with large file support, follow the instructions at [[How to run WRF-Fire]], but add the flag&lt;br /&gt;
&amp;lt;code&amp;gt;--enable-largefile&amp;lt;/code&amp;gt; to the configure command, and set the environment variable &lt;br /&gt;
&amp;lt;code&amp;gt;WRFIO_NCD_LARGE_FILE_SUPPORT=1&amp;lt;/code&amp;gt; prior to compiling WRF.&lt;br /&gt;
&lt;br /&gt;
If you are running on a Mac, you can install nco with large file support using [http://www.macports.org/ macports],&lt;br /&gt;
 sudo port install nco&lt;br /&gt;
and see its [http://nco.sourceforge.net/nco.html user&#039;s guide] if you wish. On some linux distributions, the binaries that come with the package manager do not support large files.  You will need to recompile nco manually from the [http://nco.sourceforge.net/src/nco-4.0.3.tar.gz source package] with the following environment variables set to the location of you netcdf library.&lt;br /&gt;
 export NETCDF_LIB=${NETCDF}/lib&lt;br /&gt;
 export NETCDF_INC=${NETCDF}/include&lt;br /&gt;
&lt;br /&gt;
* If the wrfout file contains all WRF variables, which is way more than we need at this point, it is convenient to select only the desired variables: U,V,W for wind streamlines, GRNHFX for fire, QVAPOR for smoke and AVG_FUEL_FRAC for the burned area. &lt;br /&gt;
The selection of variables can be done in two ways:&lt;br /&gt;
* create new NetCDF file with these variables by (&amp;quot;-O&amp;quot; switch overrides the file and if some variable is not available, it will simply skip it)&lt;br /&gt;
 ncks -v U,V,W,QVAPOR,P,T,GRNHFX,AVG_FUEL_FRAC,PH,PHB,ROS,UF,VF,HGT,ZSF,Times wrfout -O file&lt;br /&gt;
 wrfvdfcreate file file.vdf&lt;br /&gt;
 wrf2vdf file.vdf file&lt;br /&gt;
The wrfvdfcreate command creates a vdf metafile with a description of the data for Vapor and wrf2vdf created a directory file_data with the actual data.&lt;br /&gt;
* the other option is to specify the variables in the wrfvdfcreate call, i.e., run something like&lt;br /&gt;
 wrfvdfcreate -vars3d U:V:W:QVAPOR -vars2d GRNHFX:AVG_FUEL_FRAC  wrfout file.vdf&lt;br /&gt;
 wrf2vdf file.vdf wrfout&lt;br /&gt;
This would create a directory wrfout_data with the same content as the directory file_data above.&lt;br /&gt;
&lt;br /&gt;
* Start VAPOR by clicking on its icon or vaporgui from the command line. &lt;br /&gt;
* If you are provided a &amp;quot;Vapor saved session file&amp;quot; *.vss click &amp;quot;File&amp;quot; in the top menu bar and load this file by &amp;quot;Open session&amp;quot; dialogue. In either case, click &amp;quot;Data&amp;quot; in the top menu bar, then &amp;quot;load dataset in the current session&amp;quot;, and navigate to the file.vdf (you might have just created). In the black right panel, you should see an empty wireframe box.&lt;br /&gt;
* To label the axes with coordinate values click &amp;quot;Edit&amp;quot; in the top main menu, then &amp;quot;Edit Visualizer Features&amp;quot; and check &amp;quot;Show X, Y, Z (R,G,B) Arrows&amp;quot;. You can also add &amp;quot;Enable axis annotation&amp;quot;, &amp;quot;Time annotation&amp;quot;, etc. In case you do not have a terrain image and you will not be able to acquire one using the steps described below, you might check &amp;quot;Display Terrain Surface&amp;quot; and pick (a constant) &amp;quot;Color&amp;quot; you like. If you have an image, do not import it here, but use the &amp;quot;Image tab&amp;quot; discussed below.&lt;br /&gt;
* If you do not have an image of the terrain, but your wrfout file contains the geo-coordinates of the domain you can acquire the image from the internet. If you already have an image or you don&#039;t know the coordinates then skip this step. We will use Vapor&#039;s bash-shell script [http://www.vapor.ucar.edu/docs/reference/index.php?id=man/getWMSImage getWMSImage.sh]  for retrieving maps and imagery from a Web Mapping Server (WMS). The call of the script has a general form&lt;br /&gt;
 getWMSImage.sh [options] minLon minLat maxLon maxLat&lt;br /&gt;
where we will use the following options to specify: map type -m landsat (the other option to consider is BMNG, but it seems to give worse quality images), the output file -o filename.tiff and the pixel resolution -r xres yres (the default is 1024x768). Assuming that minLon minLat maxLon maxLat are given as -95.03 29.3 -95.01 29.4, an example call of getWMSImage.sh can be&lt;br /&gt;
 getWMSImage.sh -m landsat -o fireflux_terrain_geo.tiff -r 1180 1580 -95.03 29.3 -95.01 29.4&lt;br /&gt;
Such an image will be automatically geo-referenced, i.e. it will include the longitude/latitude information. &lt;br /&gt;
If you have a tiff image which is not geo-referenced, e.g., an image obtained from the Google Earth screenshot, you can use [http://www.vapor.ucar.edu/docs/reference/index.php?id=man/tiff2geotiff tiff2geotiff] to convert it to a geo-referenced terrain image as&lt;br /&gt;
 tiff2geotiff -4 &amp;quot;+proj=longlat&amp;quot; -n &amp;quot;-95.03 29.3 -95.01 29.4&amp;quot; fireflux_terrain.tiff fireflux_terrain_geo.tiff&lt;br /&gt;
* If you have a tiff image of the terrain click on the &amp;quot;Image&amp;quot; tab. In VAPOR 1.5.0 you are allowed to use only tiff images without any compression. If your image is a tiff but not a geotiff (or you are not sure) uncheck &amp;quot;Georeference&amp;quot;, then &amp;quot;Select Image File&amp;quot; and navigate to your file. Finally check &amp;quot;Apply image to terrain&amp;quot; and &amp;quot;Instance: 1&amp;quot;. After the image is displayed you may also check &amp;quot;Crop to bounds&amp;quot; if needed. &lt;br /&gt;
* Click the &amp;quot;Animation&amp;quot; tab and move the &amp;quot;Frame position&amp;quot; slider to a time when you know that the fire has already well developed. &lt;br /&gt;
* Click the &amp;quot;2D&amp;quot; tab, select variable GRNHFX, check &amp;quot;Refinement&amp;quot; 2, and &amp;quot;Apply color and opacity to terrain surface&amp;quot;, If you do not have *.vtf file, set at the bottom of the tab the colormap and opacity as, e.g., in the following picture (the opacity is sharply cut off near zeros values and set full elsewhere, so that the areas not on fire are fully transparent):&lt;br /&gt;
[[File:Vapor-fire-colormap-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
If there is a *.vtf file available for the colormap and opacity, click &amp;quot;Load TF&amp;quot; and navigate to the file. Finally, check &amp;quot;Instance: 1&amp;quot;. You should see the fire area on the terrain. One might also check that the &amp;quot;Z-center&amp;quot; coordinate has a slightly higher value in the &amp;quot;2D&amp;quot; tab than in the &amp;quot;Image&amp;quot; tab, i.e., that the fire will be displayed &#039;on top of the terrain&#039;.&lt;br /&gt;
* On top of the &amp;quot;2D&amp;quot; tab under &amp;quot;Renderer Control&amp;quot; click &amp;quot;New&amp;quot; push &amp;quot;Instance: 2&amp;quot; and select the AVG_FUEL_FRAC variable, check &amp;quot;Refinement&amp;quot; 2, and &amp;quot;Apply color and opacity to terrain surface&amp;quot;. Scroll down to &amp;quot;Transfer Function Editor&amp;quot;, click &amp;quot;Load Installed TF&amp;quot; and select &#039;&#039;&#039;grayscale.vtf&#039;&#039;&#039;. The settings for opacity are illustrated by the picture below (the opacity is high and color is dark for regions with little fuel remaining):&lt;br /&gt;
[[File:Vapor-avg_fuel_frac-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
One might also like to make sure that the z-coordinate for AVG_FUEL_FRAC is a bit below the GRNHFX z-coordinate and a bit above the z-coordinate for the terrain image.  &lt;br /&gt;
Note that the AVG_FUEL_FRAC variable might not be convenient if there are areas that do not contain any fuel a-priori. &lt;br /&gt;
* Click the &amp;quot;Flow&amp;quot; tab, make sure that the &amp;quot;steady field&amp;quot; variables are U, V, W and select &amp;quot;Refinement&amp;quot; 2. Scroll down to &amp;quot;Flow Seeding Parameters&amp;quot;, select &amp;quot;Nonrandom Rake&amp;quot; and &amp;quot;seed count ... By dimension&amp;quot; to ,e.g., 3, 3, 1. In the &amp;quot;Shape parameters&amp;quot; area set &amp;quot;shape&amp;quot; to arrows, decrease &amp;quot;Diameter&amp;quot; to e.g., 0.5 and in &amp;quot;Color/Opacity mapping&amp;quot; area set &amp;quot;Color&amp;quot; to &amp;quot;Position along flow&amp;quot;. Check the box &amp;quot;Instance: 1&amp;quot;. If there is a warning about flow lines below zero click &amp;quot;OK&amp;quot;, but follow the instructions: in &amp;quot;Edit&amp;quot; top menu select &amp;quot;Edit Visualizer Features&amp;quot; and in the &amp;quot;Variable values outside grid&amp;quot; uncheck for U,V and W the &amp;quot;Extend, down&amp;quot; box so that the &amp;quot;Below&amp;quot; appears in white with 0 value in the box. Hit &amp;quot;Apply&amp;quot; and &amp;quot;OK&amp;quot;. One might also like to position the flow streamlines in the vertical direction. This can be done in two ways: either by sliding the &amp;quot;Rake center/sizes&amp;quot; slides in the &amp;quot;Flow Seeding Parameters&amp;quot; portion of the tab, or by clicking the &amp;quot;Region Select Mode&amp;quot; which is the second icon (the box) from the left under the top menu bar. This will display a box with handles in the visualizer window (see the image below) which can be resized by clicking and dragging with the right-button on the mouse. After the region is set, click the&amp;quot;Navigation Mode&amp;quot; icon (the rudder) which is the very left one under the top menu bar.  &lt;br /&gt;
* Click on the DVR (Direct Volume Rendering) tab and select the QVAPOR variable, which is used to visualize the smoke. This is the tricky part which can be in my opinion hardly &#039;automated&#039;. One might like to decrease the vertical size of the region in a way described above because there might be a significant amount of vapor present higher in the atmosphere. An example of setting for color and opacity are illustrated by the following picture: &lt;br /&gt;
[[File:Vapor-qvapor-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Note that the displayed data correspond to the lower 1/3~1/4 (approximately) of the range of values and opacity increases slightly with the values. &amp;quot;Load Installed TF&amp;quot; as &#039;&#039;&#039;grayscale.vtf&#039;&#039;&#039; and ev. shuffle the color control points if you want the smoke to appear more dark.  Also, it might be better to leave the &amp;quot;Refinement&amp;quot; 0 not only because DVR is computationally demanding but also it might provide (surprisingly) better appearance of the fire. Also if one is still looking for the best point of view and is moving the region, it is recommended to uncheck the &amp;quot;Instance: 1&amp;quot; for the moment until the final point of view on the region is found. If the ultimate goal is a video sequence it is better to watch the full sequence using the controls in the &amp;quot;Animation&amp;quot; tab before the final decision about the (color and opacity) settings in the DVR tab for the QVAPOR variable are made.&lt;br /&gt;
* To capture a single jpg image, click &amp;quot;Capture&amp;quot; in the top menu bar and &amp;quot;Capture a single image in visualizer 0&amp;quot; and follow the instructions. &lt;br /&gt;
* To capture a sequence of jpg images (to be post-processed into a video out of Vapor) click &amp;quot;Capture&amp;quot; in the top menu bar and &amp;quot;Begin image capture sequence in visualizer 0&amp;quot;, select directory, then run the movie in the &amp;quot;Animation&amp;quot; tab or using the controls next to the top menu bar, when done click again &amp;quot;Capture&amp;quot; followed by &amp;quot;End image capture sequence&amp;quot;. You get the movie frames as a sequence of jpg files. The sequence of images can be processed into an avi in Virtual Dub under windows or using&lt;br /&gt;
 ffmpeg -f image2 -r 1 -i fireflux_small_%04d.jpg -r 25 -s 512x512  movie.avi&lt;br /&gt;
&lt;br /&gt;
under linux/Mac. The first &#039;-r 1&#039; means the frame rate of the input, so 1 means each picture is displayed for 1 second, 10 means 1/10 of a second, and so on.  Use this to adjust the speed of playback.  The &#039;-s 512x512&#039; means the resolution of the output in pixels (width x height).  While ffmpeg will let you put any numbers here, you should make sure that the width and height are both divisible by 16 otherwise some movie players will not be able to play it.&lt;br /&gt;
&lt;br /&gt;
It looks for input images starting at fireflux_small_0001.jpg and continues until a file doesn&#039;t exist.  This means if the output starts at 0000, then the first frame will not be in the movie.  I don&#039;t believe there is a way to configure this aspect of ffmpeg.&lt;br /&gt;
&lt;br /&gt;
This command will create the movie and compress it using a common video codec.  It will you use the highest quality setting by default, which is overboard for this kind of movie.  So if the files still end up larger than we want, we can always add a couple of more flags to limit the bitrate of the output.&lt;br /&gt;
&lt;br /&gt;
* Use other VAPOR features for a more advanced visualization as desired.&lt;br /&gt;
&lt;br /&gt;
==Works with==&lt;br /&gt;
* WRF-Fire {{WRF-Fire-commit|1e710fc81479ea71ed74dd9903da9917fc9dcd93|May 26 2010}} and hopefully later&lt;br /&gt;
* VAPOR  1.5.2 and hopefully later&lt;br /&gt;
* Tested on MacBook Pro 4GB OS X 10.6 GeForce 8600M GT 512MB&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Howtos|Visualize WRF-Fire output in VAPOR]]&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Visualization]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_VAPOR&amp;diff=2944</id>
		<title>How to visualize WRF-Fire output in VAPOR</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_VAPOR&amp;diff=2944"/>
		<updated>2016-05-04T19:06:07Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Prerequistes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
==Prerequistes==&lt;br /&gt;
&lt;br /&gt;
* [[How to run WRF-Fire|A working installation]] of [[WRF-Fire]], possibly on a remote supercomputer or a cluster.&lt;br /&gt;
* A visualization computer with a [http://www.vapor.ucar.edu/docs/install/index.php?id=depbin decent graphics card and drivers] (hardware accelerated [[wikipedia:OpenGL|OpenGL]] required), 3 button mouse.&lt;br /&gt;
* [http://www.vapor.ucar.edu  Download] and install [[VAPOR]] (&#039;&#039;&#039;for idealized cases we recommend using Vapor version 2.0.0 or earlier&#039;&#039;&#039; as newer versions have problems with processing wrfoutput data without valid latitude and longitude provided in degrees)&lt;br /&gt;
** Read [http://www.vapor.ucar.edu/start Getting started with VAPOR] first.&lt;br /&gt;
** On a Mac, run the installation package, then add to your path &#039;&#039;&#039;/Applications/VAPOR.app/Contents/MacOS&#039;&#039;&#039;&lt;br /&gt;
** Do the exercises in the first few pages of the [http://www.vapor.ucar.edu/docs/tutorial VAPOR quick start guide] to learn the basics of the controls.&lt;br /&gt;
** VAPOR can be [http://www.cisl.ucar.edu/hss/dasg/userinfo/remotevis.shtml used remotely] over a version of [[wikipedia:VNC|VNC]] with OpenGL support, to avoid transferring huge datasets to your visualization computer.&lt;br /&gt;
&lt;br /&gt;
==Directions==&lt;br /&gt;
* [http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3/users_guide_chap5.htm#Nml Change in &#039;&#039;&#039;namelist.input&#039;&#039;&#039;] the line with &#039;&#039;&#039;history_interval&#039;&#039;&#039; to the desired frame interval in seconds, for example &#039;&#039;&#039;history_interval_s=1&#039;&#039;&#039;. Make sure &#039;&#039;&#039;frames_per_outfile&#039;&#039;&#039; is large enough so that only one &#039;&#039;&#039;wrfout&#039;&#039;&#039; file is produced.&lt;br /&gt;
* [[How to run WRF-Fire|Run WRF-Fire]]. The pictures below are from the &amp;quot;hill&amp;quot; ideal run in WRF-Fire.&lt;br /&gt;
* If the visualization computer is different from the computer where you run WRF-Fire, transfer the &#039;&#039;&#039;wrfout&#039;&#039;&#039; file to the visualization computer&lt;br /&gt;
* Convert the &#039;&#039;&#039;wrfout&#039;&#039;&#039; file for use with VAPOR: run from the command line&lt;br /&gt;
** &#039;&#039;&#039;wrfvdfcreate yourwrfoutfile yourwdffile.vdf&#039;&#039;&#039;&lt;br /&gt;
** &#039;&#039;&#039;wrf2vdf yourwdffile.vdf yourwrfoutfile&#039;&#039;&#039;&lt;br /&gt;
* Start VAPOR by clicking on its icon or &#039;&#039;&#039;vaporgui&#039;&#039;&#039; from the command line&lt;br /&gt;
* In the GUI, click &amp;quot;Data&amp;quot; on the top menu bar, then &amp;quot;load dataset in the current session&amp;quot;, and navigate to the &#039;&#039;&#039;yourwdffile.vdf&#039;&#039;&#039; you have just created. In the black right panel, you should see an empty wireframe box from the top.&lt;br /&gt;
* Click the &amp;quot;Flow&amp;quot; tab, check the box &amp;quot;Instance 1&amp;quot;, click &amp;quot;OK&amp;quot; on a warning about flow lines below zero.  Select &amp;quot;Refinement&amp;quot; 2. You should see a picture like this (the starting points of the flow lines are picked randomly so they are different in every session):&lt;br /&gt;
[[File:Vapor-flowlines-window.png|600px]]&lt;br /&gt;
* Click the &amp;quot;Animation&amp;quot; tab and move the &amp;quot;Frame position&amp;quot; slider to the middle (in the ideal &amp;quot;hill&amp;quot; example), or to a time when you know that the fire has already well developed. The flowlines should move a little.&lt;br /&gt;
* Click the &amp;quot;2D&amp;quot; tab, check &amp;quot;Instance 1&amp;quot;, select &amp;quot;Refinement&amp;quot; 2, and 2D variable &#039;&#039;&#039;GRNHFX&#039;&#039;&#039;, check &amp;quot;Apply color and opacity to terrain surface&amp;quot;, and push the &amp;quot;Fit data&amp;quot; button at the bottom.&lt;br /&gt;
* Rotate the image with a mouse to see something like this:&lt;br /&gt;
[[File:Vapor-fire-window.png|600px]]&lt;br /&gt;
* Click on the &amp;quot;Animation&amp;quot; tab, click on the rewind and play VCR controls, and watch the movie. If the movie is too slow, go back to the &amp;quot;Flow&amp;quot; tab and reduce the &amp;quot;Refinement&amp;quot; value.&lt;br /&gt;
* To capture the movie, use &amp;quot;Capture&amp;quot;, &amp;quot;Begin image capture sequence in visualizer 0&amp;quot;, select directory, then run the movie, when done &amp;quot;Capture&amp;quot; &amp;quot;End image capture sequence&amp;quot;. You get the movie frames as jpg files.&lt;br /&gt;
* Use the DVR tab and other VAPOR features for a more advanced visualization as desired.&lt;br /&gt;
&lt;br /&gt;
==More advanced visualization==&lt;br /&gt;
&lt;br /&gt;
* Optional: If you plan to work with large files (over 2GB),  you must have WRF compiled with large file support.  This requires a netcdf&lt;br /&gt;
library with large file support as well.  To compile netcdf with large file support, follow the instructions at [[How to run WRF-Fire]], but add the flag&lt;br /&gt;
&amp;lt;code&amp;gt;--enable-largefile&amp;lt;/code&amp;gt; to the configure command, and set the environment variable &lt;br /&gt;
&amp;lt;code&amp;gt;WRFIO_NCD_LARGE_FILE_SUPPORT=1&amp;lt;/code&amp;gt; prior to compiling WRF.&lt;br /&gt;
&lt;br /&gt;
If you are running on a Mac, you can install nco with large file support using [http://www.macports.org/ macports],&lt;br /&gt;
 sudo port install nco&lt;br /&gt;
and see its [http://nco.sourceforge.net/nco.html user&#039;s guide] if you wish. On some linux distributions, the binaries that come with the package manager do not support large files.  You will need to recompile nco manually from the [http://nco.sourceforge.net/src/nco-4.0.3.tar.gz source package] with the following environment variables set to the location of you netcdf library.&lt;br /&gt;
 export NETCDF_LIB=${NETCDF}/lib&lt;br /&gt;
 export NETCDF_INC=${NETCDF}/include&lt;br /&gt;
&lt;br /&gt;
* If the wrfout file contains all WRF variables, which is way more than we need at this point, it is convenient to select only the desired variables: U,V,W for wind streamlines, GRNHFX for fire, QVAPOR for smoke and AVG_FUEL_FRAC for the burned area. &lt;br /&gt;
The selection of variables can be done in two ways:&lt;br /&gt;
* create new NetCDF file with these variables by (&amp;quot;-O&amp;quot; switch overrides the file and if some variable is not available, it will simply skip it)&lt;br /&gt;
 ncks -v U,V,W,QVAPOR,P,T,GRNHFX,AVG_FUEL_FRAC,PH,PHB,ROS,UF,VF,HGT,ZSF,Times wrfout -O file&lt;br /&gt;
 wrfvdfcreate file file.vdf&lt;br /&gt;
 wrf2vdf file.vdf file&lt;br /&gt;
The wrfvdfcreate command creates a vdf metafile with a description of the data for Vapor and wrf2vdf created a directory file_data with the actual data.&lt;br /&gt;
* the other option is to specify the variables in the wrfvdfcreate call, i.e., run something like&lt;br /&gt;
 wrfvdfcreate -vars3d U:V:W:QVAPOR -vars2d GRNHFX:AVG_FUEL_FRAC  wrfout file.vdf&lt;br /&gt;
 wrf2vdf file.vdf wrfout&lt;br /&gt;
This would create a directory wrfout_data with the same content as the directory file_data above.&lt;br /&gt;
&lt;br /&gt;
* Start VAPOR by clicking on its icon or vaporgui from the command line. &lt;br /&gt;
* If you are provided a &amp;quot;Vapor saved session file&amp;quot; *.vss click &amp;quot;File&amp;quot; in the top menu bar and load this file by &amp;quot;Open session&amp;quot; dialogue. In either case, click &amp;quot;Data&amp;quot; in the top menu bar, then &amp;quot;load dataset in the current session&amp;quot;, and navigate to the file.vdf (you might have just created). In the black right panel, you should see an empty wireframe box.&lt;br /&gt;
* To label the axes with coordinate values click &amp;quot;Edit&amp;quot; in the top main menu, then &amp;quot;Edit Visualizer Features&amp;quot; and check &amp;quot;Show X, Y, Z (R,G,B) Arrows&amp;quot;. You can also add &amp;quot;Enable axis annotation&amp;quot;, &amp;quot;Time annotation&amp;quot;, etc. In case you do not have a terrain image and you will not be able to acquire one using the steps described below, you might check &amp;quot;Display Terrain Surface&amp;quot; and pick (a constant) &amp;quot;Color&amp;quot; you like. If you have an image, do not import it here, but use the &amp;quot;Image tab&amp;quot; discussed below.&lt;br /&gt;
* If you do not have an image of the terrain, but your wrfout file contains the geo-coordinates of the domain you can acquire the image from the internet. If you already have an image or you don&#039;t know the coordinates then skip this step. We will use Vapor&#039;s bash-shell script [http://www.vapor.ucar.edu/docs/reference/index.php?id=man/getWMSImage getWMSImage.sh]  for retrieving maps and imagery from a Web Mapping Server (WMS). The call of the script has a general form&lt;br /&gt;
 getWMSImage.sh [options] minLon minLat maxLon maxLat&lt;br /&gt;
where we will use the following options to specify: map type -m landsat (the other option to consider is BMNG, but it seems to give worse quality images), the output file -o filename.tiff and the pixel resolution -r xres yres (the default is 1024x768). Assuming that minLon minLat maxLon maxLat are given as -95.03 29.3 -95.01 29.4, an example call of getWMSImage.sh can be&lt;br /&gt;
 getWMSImage.sh -m landsat -o fireflux_terrain_geo.tiff -r 1180 1580 -95.03 29.3 -95.01 29.4&lt;br /&gt;
Such an image will be automatically geo-referenced, i.e. it will include the longitude/latitude information. &lt;br /&gt;
If you have a tiff image which is not geo-referenced, e.g., an image obtained from the Google Earth screenshot, you can use [http://www.vapor.ucar.edu/docs/reference/index.php?id=man/tiff2geotiff tiff2geotiff] to convert it to a geo-referenced terrain image as&lt;br /&gt;
 tiff2geotiff -4 &amp;quot;+proj=longlat&amp;quot; -n &amp;quot;-95.03 29.3 -95.01 29.4&amp;quot; fireflux_terrain.tiff fireflux_terrain_geo.tiff&lt;br /&gt;
* If you have a tiff image of the terrain click on the &amp;quot;Image&amp;quot; tab. In VAPOR 1.5.0 you are allowed to use only tiff images without any compression. If your image is a tiff but not a geotiff (or you are not sure) uncheck &amp;quot;Georeference&amp;quot;, then &amp;quot;Select Image File&amp;quot; and navigate to your file. Finally check &amp;quot;Apply image to terrain&amp;quot; and &amp;quot;Instance: 1&amp;quot;. After the image is displayed you may also check &amp;quot;Crop to bounds&amp;quot; if needed. &lt;br /&gt;
* Click the &amp;quot;Animation&amp;quot; tab and move the &amp;quot;Frame position&amp;quot; slider to a time when you know that the fire has already well developed. &lt;br /&gt;
* Click the &amp;quot;2D&amp;quot; tab, select variable GRNHFX, check &amp;quot;Refinement&amp;quot; 2, and &amp;quot;Apply color and opacity to terrain surface&amp;quot;, If you do not have *.vtf file, set at the bottom of the tab the colormap and opacity as, e.g., in the following picture (the opacity is sharply cut off near zeros values and set full elsewhere, so that the areas not on fire are fully transparent):&lt;br /&gt;
[[File:Vapor-fire-colormap-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
If there is a *.vtf file available for the colormap and opacity, click &amp;quot;Load TF&amp;quot; and navigate to the file. Finally, check &amp;quot;Instance: 1&amp;quot;. You should see the fire area on the terrain. One might also check that the &amp;quot;Z-center&amp;quot; coordinate has a slightly higher value in the &amp;quot;2D&amp;quot; tab than in the &amp;quot;Image&amp;quot; tab, i.e., that the fire will be displayed &#039;on top of the terrain&#039;.&lt;br /&gt;
* On top of the &amp;quot;2D&amp;quot; tab under &amp;quot;Renderer Control&amp;quot; click &amp;quot;New&amp;quot; push &amp;quot;Instance: 2&amp;quot; and select the AVG_FUEL_FRAC variable, check &amp;quot;Refinement&amp;quot; 2, and &amp;quot;Apply color and opacity to terrain surface&amp;quot;. Scroll down to &amp;quot;Transfer Function Editor&amp;quot;, click &amp;quot;Load Installed TF&amp;quot; and select &#039;&#039;&#039;grayscale.vtf&#039;&#039;&#039;. The settings for opacity are illustrated by the picture below (the opacity is high and color is dark for regions with little fuel remaining):&lt;br /&gt;
[[File:Vapor-avg_fuel_frac-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
One might also like to make sure that the z-coordinate for AVG_FUEL_FRAC is a bit below the GRNHFX z-coordinate and a bit above the z-coordinate for the terrain image.  &lt;br /&gt;
Note that the AVG_FUEL_FRAC variable might not be convenient if there are areas that do not contain any fuel a-priori. &lt;br /&gt;
* Click the &amp;quot;Flow&amp;quot; tab, make sure that the &amp;quot;steady field&amp;quot; variables are U, V, W and select &amp;quot;Refinement&amp;quot; 2. Scroll down to &amp;quot;Flow Seeding Parameters&amp;quot;, select &amp;quot;Nonrandom Rake&amp;quot; and &amp;quot;seed count ... By dimension&amp;quot; to ,e.g., 3, 3, 1. In the &amp;quot;Shape parameters&amp;quot; area set &amp;quot;shape&amp;quot; to arrows, decrease &amp;quot;Diameter&amp;quot; to e.g., 0.5 and in &amp;quot;Color/Opacity mapping&amp;quot; area set &amp;quot;Color&amp;quot; to &amp;quot;Position along flow&amp;quot;. Check the box &amp;quot;Instance: 1&amp;quot;. If there is a warning about flow lines below zero click &amp;quot;OK&amp;quot;, but follow the instructions: in &amp;quot;Edit&amp;quot; top menu select &amp;quot;Edit Visualizer Features&amp;quot; and in the &amp;quot;Variable values outside grid&amp;quot; uncheck for U,V and W the &amp;quot;Extend, down&amp;quot; box so that the &amp;quot;Below&amp;quot; appears in white with 0 value in the box. Hit &amp;quot;Apply&amp;quot; and &amp;quot;OK&amp;quot;. One might also like to position the flow streamlines in the vertical direction. This can be done in two ways: either by sliding the &amp;quot;Rake center/sizes&amp;quot; slides in the &amp;quot;Flow Seeding Parameters&amp;quot; portion of the tab, or by clicking the &amp;quot;Region Select Mode&amp;quot; which is the second icon (the box) from the left under the top menu bar. This will display a box with handles in the visualizer window (see the image below) which can be resized by clicking and dragging with the right-button on the mouse. After the region is set, click the&amp;quot;Navigation Mode&amp;quot; icon (the rudder) which is the very left one under the top menu bar.  &lt;br /&gt;
* Click on the DVR (Direct Volume Rendering) tab and select the QVAPOR variable, which is used to visualize the smoke. This is the tricky part which can be in my opinion hardly &#039;automated&#039;. One might like to decrease the vertical size of the region in a way described above because there might be a significant amount of vapor present higher in the atmosphere. An example of setting for color and opacity are illustrated by the following picture: &lt;br /&gt;
[[File:Vapor-qvapor-window.png|600px]]&lt;br /&gt;
&lt;br /&gt;
Note that the displayed data correspond to the lower 1/3~1/4 (approximately) of the range of values and opacity increases slightly with the values. &amp;quot;Load Installed TF&amp;quot; as &#039;&#039;&#039;grayscale.vtf&#039;&#039;&#039; and ev. shuffle the color control points if you want the smoke to appear more dark.  Also, it might be better to leave the &amp;quot;Refinement&amp;quot; 0 not only because DVR is computationally demanding but also it might provide (surprisingly) better appearance of the fire. Also if one is still looking for the best point of view and is moving the region, it is recommended to uncheck the &amp;quot;Instance: 1&amp;quot; for the moment until the final point of view on the region is found. If the ultimate goal is a video sequence it is better to watch the full sequence using the controls in the &amp;quot;Animation&amp;quot; tab before the final decision about the (color and opacity) settings in the DVR tab for the QVAPOR variable are made.&lt;br /&gt;
* To capture a single jpg image, click &amp;quot;Capture&amp;quot; in the top menu bar and &amp;quot;Capture a single image in visualizer 0&amp;quot; and follow the instructions. &lt;br /&gt;
* To capture a sequence of jpg images (to be post-processed into a video out of Vapor) click &amp;quot;Capture&amp;quot; in the top menu bar and &amp;quot;Begin image capture sequence in visualizer 0&amp;quot;, select directory, then run the movie in the &amp;quot;Animation&amp;quot; tab or using the controls next to the top menu bar, when done click again &amp;quot;Capture&amp;quot; followed by &amp;quot;End image capture sequence&amp;quot;. You get the movie frames as a sequence of jpg files. The sequence of images can be processed into an avi in Virtual Dub under windows or using&lt;br /&gt;
 ffmpeg -f image2 -r 1 -i fireflux_small_%04d.jpg -r 25 -s 512x512  movie.avi&lt;br /&gt;
&lt;br /&gt;
under linux/Mac. The first &#039;-r 1&#039; means the frame rate of the input, so 1 means each picture is displayed for 1 second, 10 means 1/10 of a second, and so on.  Use this to adjust the speed of playback.  The &#039;-s 512x512&#039; means the resolution of the output in pixels (width x height).  While ffmpeg will let you put any numbers here, you should make sure that the width and height are both divisible by 16 otherwise some movie players will not be able to play it.&lt;br /&gt;
&lt;br /&gt;
It looks for input images starting at fireflux_small_0001.jpg and continues until a file doesn&#039;t exist.  This means if the output starts at 0000, then the first frame will not be in the movie.  I don&#039;t believe there is a way to configure this aspect of ffmpeg.&lt;br /&gt;
&lt;br /&gt;
This command will create the movie and compress it using a common video codec.  It will you use the highest quality setting by default, which is overboard for this kind of movie.  So if the files still end up larger than we want, we can always add a couple of more flags to limit the bitrate of the output.&lt;br /&gt;
&lt;br /&gt;
* Use other VAPOR features for a more advanced visualization as desired.&lt;br /&gt;
&lt;br /&gt;
==Works with==&lt;br /&gt;
* WRF-Fire {{WRF-Fire-commit|1e710fc81479ea71ed74dd9903da9917fc9dcd93|May 26 2010}} and hopefully later&lt;br /&gt;
* VAPOR  1.5.2 and hopefully later&lt;br /&gt;
* Tested on MacBook Pro 4GB OS X 10.6 GeForce 8600M GT 512MB&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Howtos|Visualize WRF-Fire output in VAPOR]]&lt;br /&gt;
[[Category:WRF-Fire]]&lt;br /&gt;
[[Category:Visualization]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2943</id>
		<title>WPS with GeoTIFF support</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2943"/>
		<updated>2016-05-04T19:01:31Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Installing GeoTIFF from source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
As of {{WRF-Fire-commit|d5746414a0bee94c1a18435cd7be9b2b311e338f|April 6, 2011}}, WRF-Fire&#039;s version of WPS supports reading of [http://trac.osgeo.org/geotiff/ geotiff] files directly without [[How to convert data for Geogrid|converting]] to geogrid&#039;s binary format.  This feature has been added to make it easier to incorporate high resolution data for real WRF-Fire simulations.  WPS must be linked with GeoTIFF support in order to use this feature.  To maintain compatibility, GeoTIFF support is not compiled in unless the necessary libraries are installed.&lt;br /&gt;
&lt;br /&gt;
=Prerequisite libraries=&lt;br /&gt;
In order to use this feature, the user must have both the [http://trac.osgeo.org/geotiff/ GeoTIFF] and [http://www.libtiff.org/ TIFF] libraries installed.  For many linux distributions, it is possible to install these libraries using its package manager.  Using Ubuntu, &lt;br /&gt;
 sudo apt-get install geotiff-bin&lt;br /&gt;
or Fedora,&lt;br /&gt;
 sudo yum install libgeotiff-devel&lt;br /&gt;
will install everything required.  For other distributions, search the package manager for geotiff; you will need the development libraries if they are packaged separately.  Users of Mac OSX can install [http://www.macports.org/install.php macports] and use the command&lt;br /&gt;
 sudo port install libgeotiff&lt;br /&gt;
to install all necessary libraries.&lt;br /&gt;
&lt;br /&gt;
==Installing libTIFF from source==&lt;br /&gt;
&lt;br /&gt;
The current stable version of libTIFF is 3.9.4; however, we recommend you use the latest development release of version 4.0.  Version 4.0 of libTIFF adds support for what is called BigTIFF, which are images larger than 2^32 bytes.  BigTIFF files are often seen in large GeoTIFF datasets that you may want to use with WRF-Fire.  To install, get the latest source package from [http://download.osgeo.org/libtiff/ here] or directly from [http://download.osgeo.org/libtiff/tiff-4.0.6.zip here], extract it, and go to the extracted directory in your terminal.  You will want to choose a place to install the new libraries, such as &amp;lt;code&amp;gt;~/wpslibs&amp;lt;/code&amp;gt; and create this directory by mkdir ~/wpslibs .  Run the configure script telling it where you want the library installed, then build and install.&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==Installing GeoTIFF from source==&lt;br /&gt;
&lt;br /&gt;
In order to make use of GeoTIFF images containing projected data, you must compile GeoTIFF with PROJ.4 support.  Download the source code for PROJ.4 [http://trac.osgeo.org/proj/ here] or directly from [https://github.com/OSGeo/proj.4/archive/master.zip here], then extract and install it into your library installation path.&lt;br /&gt;
 ./autogen.sh  (skip if configure script is already there)&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
Now, you can download GeoTIFF from [ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ here] or directly from [ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/libgeotiff-1.4.1.zip here].  Extract the archive and compile with PROJ.4 support.&lt;br /&gt;
 ./configure --with-libtiff=~/wpslibs --with-proj=~/wpslibs --prefix=~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
GeoTIFF may complain about using relative paths, so if that is the case provide the full path to your wpslibs directory. For instance:&lt;br /&gt;
  ./configure --with-libtiff=/home/your_user_name/wpslibs --with-proj=/home/your_user_name/wpslibs --prefix=/home/your_user_name/&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=Setting up the environment=&lt;br /&gt;
&lt;br /&gt;
Before compiling WPS, you must set environment variables informing the configure script where to find the GeoTIFF libraries.  The convention for these environment variables is the same as for the netCDF libraries; you must set &amp;lt;code&amp;gt;LIBTIFF&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;GEOTIFF&amp;lt;/code&amp;gt; to the prefix path of TIFF and GeoTIFF, respectively.  If you installed the libraries using the package manager on Linux, the prefix path for each will be &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt;, as follows.&lt;br /&gt;
 export LIBTIFF=/usr&lt;br /&gt;
 export GEOTIFF=/usr&lt;br /&gt;
If you installed GeoTIFF with macports, the prefix is &amp;lt;code&amp;gt;/opt/local&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export LIBTIFF=/opt/local&lt;br /&gt;
 export GEOTIFF=/opt/local&lt;br /&gt;
If you installed from source, then the prefix is the path given to the configure script.&lt;br /&gt;
 export LIBTIFF=~/wpslibs&lt;br /&gt;
 export GEOTIFF=~/wpslibs&lt;br /&gt;
&lt;br /&gt;
You may also need to configure the shared library search path, especially if you installed from source.  This can be done with the following command.&lt;br /&gt;
 export LD_LIBRARY_PATH=$GEOTIFF/lib&lt;br /&gt;
You may want to add these environment variables to your startup (such as &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;)  file to avoid having to type them in every time you log in or open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
After this step you are ready to compile WPS (WRF must be already compiled). If you have an old WPS version compiled before you remeber to clean it firts:&lt;br /&gt;
 ./clean -a&lt;br /&gt;
Then configure it again&lt;br /&gt;
 ./configure&lt;br /&gt;
and compile&lt;br /&gt;
 ./compile&lt;br /&gt;
&lt;br /&gt;
=Using GeoTIFF with WPS=&lt;br /&gt;
&lt;br /&gt;
With the environment properly set up, you can compile [[How to compile WRF-Fire|WRF]] and [[How to run WRF-Fire with real data#Compiling WPS|WPS]] in the normal way.&lt;br /&gt;
&lt;br /&gt;
==Specifying a GeoTIFF dataset for geogrid==&lt;br /&gt;
&lt;br /&gt;
The procedure for using a dataset in geogrid involves adding a field specification to the file &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt;.  The field specification provides paths to one or more datasets that can be used to initial the field.  These paths must each contain a text file named &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt;, which details the storage format of the data contained in that directory.  The specification of GeoTIFF files follows this convention; however, the &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; file must (at the least) contain a line such as &amp;lt;code&amp;gt;geotiff=XXXX.tif&amp;lt;/code&amp;gt; giving the name of the GeoTIFF file residing in the same directory.  &lt;br /&gt;
&lt;br /&gt;
For example, if you have a GeoTIFF file named &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; containing &lt;br /&gt;
topographical data that you want to use for the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;, you would edit the &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; section of &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt; with the line &amp;lt;code&amp;gt;abs_path=./ned_data&amp;lt;/code&amp;gt;.  Then create a directory under &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt;, and copy &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; to this directory.  Finally, you would add a text file called &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt; containing the line:&lt;br /&gt;
 geotiff=topo.tif&lt;br /&gt;
This would tell geogrid that the file &amp;lt;code&amp;gt;ned_data/topo.gif&amp;lt;/code&amp;gt; contains a GeoTIFF file that should be used to fill the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;.  The new extension to WPS will provide geogrid with the cartographic projection and storage details that are normally provided in the index.  Geogrid requires a bit more information about categorical fields than is actually provided by GeoTIFF.  For these fields, you must also specify values for &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;category_min&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;category_max&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While for a continuous field such as &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; this is the only line that absolutely must be in the index, you may wish to provide more information that cannot be determined from the GeoTIFF metadata.  All parameters supported by standard geogrid index files are allowed in GeoTIFF index files as well.  If a setting is present in the index file, it will override anything read from the GeoTIFF metadata.  This is useful in case the GeoTIFF extension or the GeoTIFF file itself provides incorrect information; the user can easily fix it by providing the correct value in the index.  To assist in debugging, geogrid creates a log file called &amp;lt;code&amp;gt;geogrid.log&amp;lt;/code&amp;gt;; this log contains source data parameters that were actually used.  Check this file for anything incorrect.&lt;br /&gt;
&lt;br /&gt;
For importing high resolution data from GeoTIFF files for WRF-Fire, we recommend the following index files:&lt;br /&gt;
 #ned_data/index&lt;br /&gt;
 geotiff = ned_data.tif&lt;br /&gt;
 description = &amp;quot;Topography height&amp;quot;&lt;br /&gt;
 type = continuous&lt;br /&gt;
 units = &amp;quot;meters&amp;quot;&lt;br /&gt;
 description = &amp;quot;National Elevation Dataset&amp;quot;&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
&lt;br /&gt;
 #landfire_data/index&lt;br /&gt;
 geotiff = lf_data.tif&lt;br /&gt;
 type = categorical&lt;br /&gt;
 category_min = 1&lt;br /&gt;
 category_max = 14&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
 units = &amp;quot;category&amp;quot;&lt;br /&gt;
 missing_value = 14&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2942</id>
		<title>WPS with GeoTIFF support</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2942"/>
		<updated>2016-05-04T19:00:00Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Installing libTIFF from source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
As of {{WRF-Fire-commit|d5746414a0bee94c1a18435cd7be9b2b311e338f|April 6, 2011}}, WRF-Fire&#039;s version of WPS supports reading of [http://trac.osgeo.org/geotiff/ geotiff] files directly without [[How to convert data for Geogrid|converting]] to geogrid&#039;s binary format.  This feature has been added to make it easier to incorporate high resolution data for real WRF-Fire simulations.  WPS must be linked with GeoTIFF support in order to use this feature.  To maintain compatibility, GeoTIFF support is not compiled in unless the necessary libraries are installed.&lt;br /&gt;
&lt;br /&gt;
=Prerequisite libraries=&lt;br /&gt;
In order to use this feature, the user must have both the [http://trac.osgeo.org/geotiff/ GeoTIFF] and [http://www.libtiff.org/ TIFF] libraries installed.  For many linux distributions, it is possible to install these libraries using its package manager.  Using Ubuntu, &lt;br /&gt;
 sudo apt-get install geotiff-bin&lt;br /&gt;
or Fedora,&lt;br /&gt;
 sudo yum install libgeotiff-devel&lt;br /&gt;
will install everything required.  For other distributions, search the package manager for geotiff; you will need the development libraries if they are packaged separately.  Users of Mac OSX can install [http://www.macports.org/install.php macports] and use the command&lt;br /&gt;
 sudo port install libgeotiff&lt;br /&gt;
to install all necessary libraries.&lt;br /&gt;
&lt;br /&gt;
==Installing libTIFF from source==&lt;br /&gt;
&lt;br /&gt;
The current stable version of libTIFF is 3.9.4; however, we recommend you use the latest development release of version 4.0.  Version 4.0 of libTIFF adds support for what is called BigTIFF, which are images larger than 2^32 bytes.  BigTIFF files are often seen in large GeoTIFF datasets that you may want to use with WRF-Fire.  To install, get the latest source package from [http://download.osgeo.org/libtiff/ here] or directly from [http://download.osgeo.org/libtiff/tiff-4.0.6.zip here], extract it, and go to the extracted directory in your terminal.  You will want to choose a place to install the new libraries, such as &amp;lt;code&amp;gt;~/wpslibs&amp;lt;/code&amp;gt; and create this directory by mkdir ~/wpslibs .  Run the configure script telling it where you want the library installed, then build and install.&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==Installing GeoTIFF from source==&lt;br /&gt;
&lt;br /&gt;
In order to make use of GeoTIFF images containing projected data, you must compile GeoTIFF with PROJ.4 support.  Download the source code for PROJ.4 [http://trac.osgeo.org/proj/ here] or directly from [https://github.com/OSGeo/proj.4/archive/master.zip here], then extract and install it into your library installation path.&lt;br /&gt;
 ./autogen.sh  (skip if configure script is already there)&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
Now, you can download GeoTIFF from [ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ here].  Extract the archive and compile with PROJ.4 support.&lt;br /&gt;
 ./configure --with-libtiff=~/wpslibs --with-proj=~/wpslibs --prefix=~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
GeoTIFF may complain about using relative paths, so if that is the case provide the full path to your wpslibs directory. For instance:&lt;br /&gt;
  ./configure --with-libtiff=/home/your_user_name/wpslibs --with-proj=/home/your_user_name/wpslibs --prefix=/home/your_user_name/&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=Setting up the environment=&lt;br /&gt;
&lt;br /&gt;
Before compiling WPS, you must set environment variables informing the configure script where to find the GeoTIFF libraries.  The convention for these environment variables is the same as for the netCDF libraries; you must set &amp;lt;code&amp;gt;LIBTIFF&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;GEOTIFF&amp;lt;/code&amp;gt; to the prefix path of TIFF and GeoTIFF, respectively.  If you installed the libraries using the package manager on Linux, the prefix path for each will be &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt;, as follows.&lt;br /&gt;
 export LIBTIFF=/usr&lt;br /&gt;
 export GEOTIFF=/usr&lt;br /&gt;
If you installed GeoTIFF with macports, the prefix is &amp;lt;code&amp;gt;/opt/local&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export LIBTIFF=/opt/local&lt;br /&gt;
 export GEOTIFF=/opt/local&lt;br /&gt;
If you installed from source, then the prefix is the path given to the configure script.&lt;br /&gt;
 export LIBTIFF=~/wpslibs&lt;br /&gt;
 export GEOTIFF=~/wpslibs&lt;br /&gt;
&lt;br /&gt;
You may also need to configure the shared library search path, especially if you installed from source.  This can be done with the following command.&lt;br /&gt;
 export LD_LIBRARY_PATH=$GEOTIFF/lib&lt;br /&gt;
You may want to add these environment variables to your startup (such as &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;)  file to avoid having to type them in every time you log in or open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
After this step you are ready to compile WPS (WRF must be already compiled). If you have an old WPS version compiled before you remeber to clean it firts:&lt;br /&gt;
 ./clean -a&lt;br /&gt;
Then configure it again&lt;br /&gt;
 ./configure&lt;br /&gt;
and compile&lt;br /&gt;
 ./compile&lt;br /&gt;
&lt;br /&gt;
=Using GeoTIFF with WPS=&lt;br /&gt;
&lt;br /&gt;
With the environment properly set up, you can compile [[How to compile WRF-Fire|WRF]] and [[How to run WRF-Fire with real data#Compiling WPS|WPS]] in the normal way.&lt;br /&gt;
&lt;br /&gt;
==Specifying a GeoTIFF dataset for geogrid==&lt;br /&gt;
&lt;br /&gt;
The procedure for using a dataset in geogrid involves adding a field specification to the file &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt;.  The field specification provides paths to one or more datasets that can be used to initial the field.  These paths must each contain a text file named &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt;, which details the storage format of the data contained in that directory.  The specification of GeoTIFF files follows this convention; however, the &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; file must (at the least) contain a line such as &amp;lt;code&amp;gt;geotiff=XXXX.tif&amp;lt;/code&amp;gt; giving the name of the GeoTIFF file residing in the same directory.  &lt;br /&gt;
&lt;br /&gt;
For example, if you have a GeoTIFF file named &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; containing &lt;br /&gt;
topographical data that you want to use for the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;, you would edit the &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; section of &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt; with the line &amp;lt;code&amp;gt;abs_path=./ned_data&amp;lt;/code&amp;gt;.  Then create a directory under &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt;, and copy &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; to this directory.  Finally, you would add a text file called &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt; containing the line:&lt;br /&gt;
 geotiff=topo.tif&lt;br /&gt;
This would tell geogrid that the file &amp;lt;code&amp;gt;ned_data/topo.gif&amp;lt;/code&amp;gt; contains a GeoTIFF file that should be used to fill the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;.  The new extension to WPS will provide geogrid with the cartographic projection and storage details that are normally provided in the index.  Geogrid requires a bit more information about categorical fields than is actually provided by GeoTIFF.  For these fields, you must also specify values for &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;category_min&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;category_max&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While for a continuous field such as &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; this is the only line that absolutely must be in the index, you may wish to provide more information that cannot be determined from the GeoTIFF metadata.  All parameters supported by standard geogrid index files are allowed in GeoTIFF index files as well.  If a setting is present in the index file, it will override anything read from the GeoTIFF metadata.  This is useful in case the GeoTIFF extension or the GeoTIFF file itself provides incorrect information; the user can easily fix it by providing the correct value in the index.  To assist in debugging, geogrid creates a log file called &amp;lt;code&amp;gt;geogrid.log&amp;lt;/code&amp;gt;; this log contains source data parameters that were actually used.  Check this file for anything incorrect.&lt;br /&gt;
&lt;br /&gt;
For importing high resolution data from GeoTIFF files for WRF-Fire, we recommend the following index files:&lt;br /&gt;
 #ned_data/index&lt;br /&gt;
 geotiff = ned_data.tif&lt;br /&gt;
 description = &amp;quot;Topography height&amp;quot;&lt;br /&gt;
 type = continuous&lt;br /&gt;
 units = &amp;quot;meters&amp;quot;&lt;br /&gt;
 description = &amp;quot;National Elevation Dataset&amp;quot;&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
&lt;br /&gt;
 #landfire_data/index&lt;br /&gt;
 geotiff = lf_data.tif&lt;br /&gt;
 type = categorical&lt;br /&gt;
 category_min = 1&lt;br /&gt;
 category_max = 14&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
 units = &amp;quot;category&amp;quot;&lt;br /&gt;
 missing_value = 14&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2941</id>
		<title>WPS with GeoTIFF support</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2941"/>
		<updated>2016-05-04T18:58:54Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Installing GeoTIFF from source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
As of {{WRF-Fire-commit|d5746414a0bee94c1a18435cd7be9b2b311e338f|April 6, 2011}}, WRF-Fire&#039;s version of WPS supports reading of [http://trac.osgeo.org/geotiff/ geotiff] files directly without [[How to convert data for Geogrid|converting]] to geogrid&#039;s binary format.  This feature has been added to make it easier to incorporate high resolution data for real WRF-Fire simulations.  WPS must be linked with GeoTIFF support in order to use this feature.  To maintain compatibility, GeoTIFF support is not compiled in unless the necessary libraries are installed.&lt;br /&gt;
&lt;br /&gt;
=Prerequisite libraries=&lt;br /&gt;
In order to use this feature, the user must have both the [http://trac.osgeo.org/geotiff/ GeoTIFF] and [http://www.libtiff.org/ TIFF] libraries installed.  For many linux distributions, it is possible to install these libraries using its package manager.  Using Ubuntu, &lt;br /&gt;
 sudo apt-get install geotiff-bin&lt;br /&gt;
or Fedora,&lt;br /&gt;
 sudo yum install libgeotiff-devel&lt;br /&gt;
will install everything required.  For other distributions, search the package manager for geotiff; you will need the development libraries if they are packaged separately.  Users of Mac OSX can install [http://www.macports.org/install.php macports] and use the command&lt;br /&gt;
 sudo port install libgeotiff&lt;br /&gt;
to install all necessary libraries.&lt;br /&gt;
&lt;br /&gt;
==Installing libTIFF from source==&lt;br /&gt;
&lt;br /&gt;
The current stable version of libTIFF is 3.9.4; however, we recommend you use the latest development release of version 4.0.  Version 4.0 of libTIFF adds support for what is called BigTIFF, which are images larger than 2^32 bytes.  BigTIFF files are often seen in large GeoTIFF datasets that you may want to use with WRF-Fire.  To install, get the latest source package from [http://download.osgeo.org/libtiff/ here], extract it, and go to the extracted directory in your terminal.  You will want to choose a place to install the new libraries, such as &amp;lt;code&amp;gt;~/wpslibs&amp;lt;/code&amp;gt; and create this directory by mkdir ~/wpslibs .  Run the configure script telling it where you want the library installed, then build and install.&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==Installing GeoTIFF from source==&lt;br /&gt;
&lt;br /&gt;
In order to make use of GeoTIFF images containing projected data, you must compile GeoTIFF with PROJ.4 support.  Download the source code for PROJ.4 [http://trac.osgeo.org/proj/ here] or directly from [https://github.com/OSGeo/proj.4/archive/master.zip here], then extract and install it into your library installation path.&lt;br /&gt;
 ./autogen.sh  (skip if configure script is already there)&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
Now, you can download GeoTIFF from [ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ here].  Extract the archive and compile with PROJ.4 support.&lt;br /&gt;
 ./configure --with-libtiff=~/wpslibs --with-proj=~/wpslibs --prefix=~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
GeoTIFF may complain about using relative paths, so if that is the case provide the full path to your wpslibs directory. For instance:&lt;br /&gt;
  ./configure --with-libtiff=/home/your_user_name/wpslibs --with-proj=/home/your_user_name/wpslibs --prefix=/home/your_user_name/&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=Setting up the environment=&lt;br /&gt;
&lt;br /&gt;
Before compiling WPS, you must set environment variables informing the configure script where to find the GeoTIFF libraries.  The convention for these environment variables is the same as for the netCDF libraries; you must set &amp;lt;code&amp;gt;LIBTIFF&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;GEOTIFF&amp;lt;/code&amp;gt; to the prefix path of TIFF and GeoTIFF, respectively.  If you installed the libraries using the package manager on Linux, the prefix path for each will be &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt;, as follows.&lt;br /&gt;
 export LIBTIFF=/usr&lt;br /&gt;
 export GEOTIFF=/usr&lt;br /&gt;
If you installed GeoTIFF with macports, the prefix is &amp;lt;code&amp;gt;/opt/local&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export LIBTIFF=/opt/local&lt;br /&gt;
 export GEOTIFF=/opt/local&lt;br /&gt;
If you installed from source, then the prefix is the path given to the configure script.&lt;br /&gt;
 export LIBTIFF=~/wpslibs&lt;br /&gt;
 export GEOTIFF=~/wpslibs&lt;br /&gt;
&lt;br /&gt;
You may also need to configure the shared library search path, especially if you installed from source.  This can be done with the following command.&lt;br /&gt;
 export LD_LIBRARY_PATH=$GEOTIFF/lib&lt;br /&gt;
You may want to add these environment variables to your startup (such as &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;)  file to avoid having to type them in every time you log in or open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
After this step you are ready to compile WPS (WRF must be already compiled). If you have an old WPS version compiled before you remeber to clean it firts:&lt;br /&gt;
 ./clean -a&lt;br /&gt;
Then configure it again&lt;br /&gt;
 ./configure&lt;br /&gt;
and compile&lt;br /&gt;
 ./compile&lt;br /&gt;
&lt;br /&gt;
=Using GeoTIFF with WPS=&lt;br /&gt;
&lt;br /&gt;
With the environment properly set up, you can compile [[How to compile WRF-Fire|WRF]] and [[How to run WRF-Fire with real data#Compiling WPS|WPS]] in the normal way.&lt;br /&gt;
&lt;br /&gt;
==Specifying a GeoTIFF dataset for geogrid==&lt;br /&gt;
&lt;br /&gt;
The procedure for using a dataset in geogrid involves adding a field specification to the file &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt;.  The field specification provides paths to one or more datasets that can be used to initial the field.  These paths must each contain a text file named &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt;, which details the storage format of the data contained in that directory.  The specification of GeoTIFF files follows this convention; however, the &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; file must (at the least) contain a line such as &amp;lt;code&amp;gt;geotiff=XXXX.tif&amp;lt;/code&amp;gt; giving the name of the GeoTIFF file residing in the same directory.  &lt;br /&gt;
&lt;br /&gt;
For example, if you have a GeoTIFF file named &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; containing &lt;br /&gt;
topographical data that you want to use for the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;, you would edit the &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; section of &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt; with the line &amp;lt;code&amp;gt;abs_path=./ned_data&amp;lt;/code&amp;gt;.  Then create a directory under &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt;, and copy &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; to this directory.  Finally, you would add a text file called &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt; containing the line:&lt;br /&gt;
 geotiff=topo.tif&lt;br /&gt;
This would tell geogrid that the file &amp;lt;code&amp;gt;ned_data/topo.gif&amp;lt;/code&amp;gt; contains a GeoTIFF file that should be used to fill the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;.  The new extension to WPS will provide geogrid with the cartographic projection and storage details that are normally provided in the index.  Geogrid requires a bit more information about categorical fields than is actually provided by GeoTIFF.  For these fields, you must also specify values for &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;category_min&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;category_max&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While for a continuous field such as &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; this is the only line that absolutely must be in the index, you may wish to provide more information that cannot be determined from the GeoTIFF metadata.  All parameters supported by standard geogrid index files are allowed in GeoTIFF index files as well.  If a setting is present in the index file, it will override anything read from the GeoTIFF metadata.  This is useful in case the GeoTIFF extension or the GeoTIFF file itself provides incorrect information; the user can easily fix it by providing the correct value in the index.  To assist in debugging, geogrid creates a log file called &amp;lt;code&amp;gt;geogrid.log&amp;lt;/code&amp;gt;; this log contains source data parameters that were actually used.  Check this file for anything incorrect.&lt;br /&gt;
&lt;br /&gt;
For importing high resolution data from GeoTIFF files for WRF-Fire, we recommend the following index files:&lt;br /&gt;
 #ned_data/index&lt;br /&gt;
 geotiff = ned_data.tif&lt;br /&gt;
 description = &amp;quot;Topography height&amp;quot;&lt;br /&gt;
 type = continuous&lt;br /&gt;
 units = &amp;quot;meters&amp;quot;&lt;br /&gt;
 description = &amp;quot;National Elevation Dataset&amp;quot;&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
&lt;br /&gt;
 #landfire_data/index&lt;br /&gt;
 geotiff = lf_data.tif&lt;br /&gt;
 type = categorical&lt;br /&gt;
 category_min = 1&lt;br /&gt;
 category_max = 14&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
 units = &amp;quot;category&amp;quot;&lt;br /&gt;
 missing_value = 14&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2940</id>
		<title>WPS with GeoTIFF support</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2940"/>
		<updated>2016-05-04T18:57:26Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Setting up the environment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
As of {{WRF-Fire-commit|d5746414a0bee94c1a18435cd7be9b2b311e338f|April 6, 2011}}, WRF-Fire&#039;s version of WPS supports reading of [http://trac.osgeo.org/geotiff/ geotiff] files directly without [[How to convert data for Geogrid|converting]] to geogrid&#039;s binary format.  This feature has been added to make it easier to incorporate high resolution data for real WRF-Fire simulations.  WPS must be linked with GeoTIFF support in order to use this feature.  To maintain compatibility, GeoTIFF support is not compiled in unless the necessary libraries are installed.&lt;br /&gt;
&lt;br /&gt;
=Prerequisite libraries=&lt;br /&gt;
In order to use this feature, the user must have both the [http://trac.osgeo.org/geotiff/ GeoTIFF] and [http://www.libtiff.org/ TIFF] libraries installed.  For many linux distributions, it is possible to install these libraries using its package manager.  Using Ubuntu, &lt;br /&gt;
 sudo apt-get install geotiff-bin&lt;br /&gt;
or Fedora,&lt;br /&gt;
 sudo yum install libgeotiff-devel&lt;br /&gt;
will install everything required.  For other distributions, search the package manager for geotiff; you will need the development libraries if they are packaged separately.  Users of Mac OSX can install [http://www.macports.org/install.php macports] and use the command&lt;br /&gt;
 sudo port install libgeotiff&lt;br /&gt;
to install all necessary libraries.&lt;br /&gt;
&lt;br /&gt;
==Installing libTIFF from source==&lt;br /&gt;
&lt;br /&gt;
The current stable version of libTIFF is 3.9.4; however, we recommend you use the latest development release of version 4.0.  Version 4.0 of libTIFF adds support for what is called BigTIFF, which are images larger than 2^32 bytes.  BigTIFF files are often seen in large GeoTIFF datasets that you may want to use with WRF-Fire.  To install, get the latest source package from [http://download.osgeo.org/libtiff/ here], extract it, and go to the extracted directory in your terminal.  You will want to choose a place to install the new libraries, such as &amp;lt;code&amp;gt;~/wpslibs&amp;lt;/code&amp;gt; and create this directory by mkdir ~/wpslibs .  Run the configure script telling it where you want the library installed, then build and install.&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==Installing GeoTIFF from source==&lt;br /&gt;
&lt;br /&gt;
In order to make use of GeoTIFF images containing projected data, you must compile GeoTIFF with PROJ.4 support.  Download the source code for PROJ.4 [http://trac.osgeo.org/proj/ here], then extract and install it into your library installation path.&lt;br /&gt;
 ./autogen.sh  (skip if configure script is already there)&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
Now, you can download GeoTIFF from [ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ here].  Extract the archive and compile with PROJ.4 support.&lt;br /&gt;
 ./configure --with-libtiff=~/wpslibs --with-proj=~/wpslibs --prefix=~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
GeoTIFF may complain about using relative paths, so if that is the case provide the full path to your wpslibs directory. For instance:&lt;br /&gt;
  ./configure --with-libtiff=/home/your_user_name/wpslibs --with-proj=/home/your_user_name/wpslibs --prefix=/home/your_user_name/&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=Setting up the environment=&lt;br /&gt;
&lt;br /&gt;
Before compiling WPS, you must set environment variables informing the configure script where to find the GeoTIFF libraries.  The convention for these environment variables is the same as for the netCDF libraries; you must set &amp;lt;code&amp;gt;LIBTIFF&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;GEOTIFF&amp;lt;/code&amp;gt; to the prefix path of TIFF and GeoTIFF, respectively.  If you installed the libraries using the package manager on Linux, the prefix path for each will be &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt;, as follows.&lt;br /&gt;
 export LIBTIFF=/usr&lt;br /&gt;
 export GEOTIFF=/usr&lt;br /&gt;
If you installed GeoTIFF with macports, the prefix is &amp;lt;code&amp;gt;/opt/local&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export LIBTIFF=/opt/local&lt;br /&gt;
 export GEOTIFF=/opt/local&lt;br /&gt;
If you installed from source, then the prefix is the path given to the configure script.&lt;br /&gt;
 export LIBTIFF=~/wpslibs&lt;br /&gt;
 export GEOTIFF=~/wpslibs&lt;br /&gt;
&lt;br /&gt;
You may also need to configure the shared library search path, especially if you installed from source.  This can be done with the following command.&lt;br /&gt;
 export LD_LIBRARY_PATH=$GEOTIFF/lib&lt;br /&gt;
You may want to add these environment variables to your startup (such as &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;)  file to avoid having to type them in every time you log in or open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
After this step you are ready to compile WPS (WRF must be already compiled). If you have an old WPS version compiled before you remeber to clean it firts:&lt;br /&gt;
 ./clean -a&lt;br /&gt;
Then configure it again&lt;br /&gt;
 ./configure&lt;br /&gt;
and compile&lt;br /&gt;
 ./compile&lt;br /&gt;
&lt;br /&gt;
=Using GeoTIFF with WPS=&lt;br /&gt;
&lt;br /&gt;
With the environment properly set up, you can compile [[How to compile WRF-Fire|WRF]] and [[How to run WRF-Fire with real data#Compiling WPS|WPS]] in the normal way.&lt;br /&gt;
&lt;br /&gt;
==Specifying a GeoTIFF dataset for geogrid==&lt;br /&gt;
&lt;br /&gt;
The procedure for using a dataset in geogrid involves adding a field specification to the file &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt;.  The field specification provides paths to one or more datasets that can be used to initial the field.  These paths must each contain a text file named &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt;, which details the storage format of the data contained in that directory.  The specification of GeoTIFF files follows this convention; however, the &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; file must (at the least) contain a line such as &amp;lt;code&amp;gt;geotiff=XXXX.tif&amp;lt;/code&amp;gt; giving the name of the GeoTIFF file residing in the same directory.  &lt;br /&gt;
&lt;br /&gt;
For example, if you have a GeoTIFF file named &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; containing &lt;br /&gt;
topographical data that you want to use for the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;, you would edit the &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; section of &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt; with the line &amp;lt;code&amp;gt;abs_path=./ned_data&amp;lt;/code&amp;gt;.  Then create a directory under &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt;, and copy &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; to this directory.  Finally, you would add a text file called &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt; containing the line:&lt;br /&gt;
 geotiff=topo.tif&lt;br /&gt;
This would tell geogrid that the file &amp;lt;code&amp;gt;ned_data/topo.gif&amp;lt;/code&amp;gt; contains a GeoTIFF file that should be used to fill the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;.  The new extension to WPS will provide geogrid with the cartographic projection and storage details that are normally provided in the index.  Geogrid requires a bit more information about categorical fields than is actually provided by GeoTIFF.  For these fields, you must also specify values for &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;category_min&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;category_max&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While for a continuous field such as &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; this is the only line that absolutely must be in the index, you may wish to provide more information that cannot be determined from the GeoTIFF metadata.  All parameters supported by standard geogrid index files are allowed in GeoTIFF index files as well.  If a setting is present in the index file, it will override anything read from the GeoTIFF metadata.  This is useful in case the GeoTIFF extension or the GeoTIFF file itself provides incorrect information; the user can easily fix it by providing the correct value in the index.  To assist in debugging, geogrid creates a log file called &amp;lt;code&amp;gt;geogrid.log&amp;lt;/code&amp;gt;; this log contains source data parameters that were actually used.  Check this file for anything incorrect.&lt;br /&gt;
&lt;br /&gt;
For importing high resolution data from GeoTIFF files for WRF-Fire, we recommend the following index files:&lt;br /&gt;
 #ned_data/index&lt;br /&gt;
 geotiff = ned_data.tif&lt;br /&gt;
 description = &amp;quot;Topography height&amp;quot;&lt;br /&gt;
 type = continuous&lt;br /&gt;
 units = &amp;quot;meters&amp;quot;&lt;br /&gt;
 description = &amp;quot;National Elevation Dataset&amp;quot;&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
&lt;br /&gt;
 #landfire_data/index&lt;br /&gt;
 geotiff = lf_data.tif&lt;br /&gt;
 type = categorical&lt;br /&gt;
 category_min = 1&lt;br /&gt;
 category_max = 14&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
 units = &amp;quot;category&amp;quot;&lt;br /&gt;
 missing_value = 14&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2939</id>
		<title>WPS with GeoTIFF support</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2939"/>
		<updated>2016-05-04T18:56:24Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Installing GeoTIFF from source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
As of {{WRF-Fire-commit|d5746414a0bee94c1a18435cd7be9b2b311e338f|April 6, 2011}}, WRF-Fire&#039;s version of WPS supports reading of [http://trac.osgeo.org/geotiff/ geotiff] files directly without [[How to convert data for Geogrid|converting]] to geogrid&#039;s binary format.  This feature has been added to make it easier to incorporate high resolution data for real WRF-Fire simulations.  WPS must be linked with GeoTIFF support in order to use this feature.  To maintain compatibility, GeoTIFF support is not compiled in unless the necessary libraries are installed.&lt;br /&gt;
&lt;br /&gt;
=Prerequisite libraries=&lt;br /&gt;
In order to use this feature, the user must have both the [http://trac.osgeo.org/geotiff/ GeoTIFF] and [http://www.libtiff.org/ TIFF] libraries installed.  For many linux distributions, it is possible to install these libraries using its package manager.  Using Ubuntu, &lt;br /&gt;
 sudo apt-get install geotiff-bin&lt;br /&gt;
or Fedora,&lt;br /&gt;
 sudo yum install libgeotiff-devel&lt;br /&gt;
will install everything required.  For other distributions, search the package manager for geotiff; you will need the development libraries if they are packaged separately.  Users of Mac OSX can install [http://www.macports.org/install.php macports] and use the command&lt;br /&gt;
 sudo port install libgeotiff&lt;br /&gt;
to install all necessary libraries.&lt;br /&gt;
&lt;br /&gt;
==Installing libTIFF from source==&lt;br /&gt;
&lt;br /&gt;
The current stable version of libTIFF is 3.9.4; however, we recommend you use the latest development release of version 4.0.  Version 4.0 of libTIFF adds support for what is called BigTIFF, which are images larger than 2^32 bytes.  BigTIFF files are often seen in large GeoTIFF datasets that you may want to use with WRF-Fire.  To install, get the latest source package from [http://download.osgeo.org/libtiff/ here], extract it, and go to the extracted directory in your terminal.  You will want to choose a place to install the new libraries, such as &amp;lt;code&amp;gt;~/wpslibs&amp;lt;/code&amp;gt; and create this directory by mkdir ~/wpslibs .  Run the configure script telling it where you want the library installed, then build and install.&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==Installing GeoTIFF from source==&lt;br /&gt;
&lt;br /&gt;
In order to make use of GeoTIFF images containing projected data, you must compile GeoTIFF with PROJ.4 support.  Download the source code for PROJ.4 [http://trac.osgeo.org/proj/ here], then extract and install it into your library installation path.&lt;br /&gt;
 ./autogen.sh  (skip if configure script is already there)&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
Now, you can download GeoTIFF from [ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ here].  Extract the archive and compile with PROJ.4 support.&lt;br /&gt;
 ./configure --with-libtiff=~/wpslibs --with-proj=~/wpslibs --prefix=~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
GeoTIFF may complain about using relative paths, so if that is the case provide the full path to your wpslibs directory. For instance:&lt;br /&gt;
  ./configure --with-libtiff=/home/your_user_name/wpslibs --with-proj=/home/your_user_name/wpslibs --prefix=/home/your_user_name/&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=Setting up the environment=&lt;br /&gt;
&lt;br /&gt;
Before compiling WPS, you must set environment variables informing the configure script where to find the GeoTIFF libraries.  The convention for these environment variables is the same as for the netCDF libraries; you must set &amp;lt;code&amp;gt;LIBTIFF&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;GEOTIFF&amp;lt;/code&amp;gt; to the prefix path of TIFF and GeoTIFF, respectively.  If you installed the libraries using the package manager on Linux, the prefix path for each will be &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt;, as follows.&lt;br /&gt;
 export LIBTIFF=/usr&lt;br /&gt;
 export GEOTIFF=/usr&lt;br /&gt;
If you installed GeoTIFF with macports, the prefix is &amp;lt;code&amp;gt;/opt/local&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export LIBTIFF=/opt/local&lt;br /&gt;
 export GEOTIFF=/opt/local&lt;br /&gt;
If you installed from source, then the prefix is the path given to the configure script.&lt;br /&gt;
 export LIBTIFF=~/wpslibs&lt;br /&gt;
 export GEOTIFF=~/wpslibs&lt;br /&gt;
&lt;br /&gt;
You may also need to configure the shared library search path, especially if you installed from source.  This can be done with the following command.&lt;br /&gt;
 export LD_LIBRARY_PATH=$GEOTIFF/lib&lt;br /&gt;
You may want to add these environment variables to your startup (such as &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;)  file to avoid having to type them in every time you log in or open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
=Using GeoTIFF with WPS=&lt;br /&gt;
&lt;br /&gt;
With the environment properly set up, you can compile [[How to compile WRF-Fire|WRF]] and [[How to run WRF-Fire with real data#Compiling WPS|WPS]] in the normal way.&lt;br /&gt;
&lt;br /&gt;
==Specifying a GeoTIFF dataset for geogrid==&lt;br /&gt;
&lt;br /&gt;
The procedure for using a dataset in geogrid involves adding a field specification to the file &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt;.  The field specification provides paths to one or more datasets that can be used to initial the field.  These paths must each contain a text file named &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt;, which details the storage format of the data contained in that directory.  The specification of GeoTIFF files follows this convention; however, the &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; file must (at the least) contain a line such as &amp;lt;code&amp;gt;geotiff=XXXX.tif&amp;lt;/code&amp;gt; giving the name of the GeoTIFF file residing in the same directory.  &lt;br /&gt;
&lt;br /&gt;
For example, if you have a GeoTIFF file named &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; containing &lt;br /&gt;
topographical data that you want to use for the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;, you would edit the &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; section of &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt; with the line &amp;lt;code&amp;gt;abs_path=./ned_data&amp;lt;/code&amp;gt;.  Then create a directory under &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt;, and copy &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; to this directory.  Finally, you would add a text file called &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt; containing the line:&lt;br /&gt;
 geotiff=topo.tif&lt;br /&gt;
This would tell geogrid that the file &amp;lt;code&amp;gt;ned_data/topo.gif&amp;lt;/code&amp;gt; contains a GeoTIFF file that should be used to fill the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;.  The new extension to WPS will provide geogrid with the cartographic projection and storage details that are normally provided in the index.  Geogrid requires a bit more information about categorical fields than is actually provided by GeoTIFF.  For these fields, you must also specify values for &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;category_min&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;category_max&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While for a continuous field such as &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; this is the only line that absolutely must be in the index, you may wish to provide more information that cannot be determined from the GeoTIFF metadata.  All parameters supported by standard geogrid index files are allowed in GeoTIFF index files as well.  If a setting is present in the index file, it will override anything read from the GeoTIFF metadata.  This is useful in case the GeoTIFF extension or the GeoTIFF file itself provides incorrect information; the user can easily fix it by providing the correct value in the index.  To assist in debugging, geogrid creates a log file called &amp;lt;code&amp;gt;geogrid.log&amp;lt;/code&amp;gt;; this log contains source data parameters that were actually used.  Check this file for anything incorrect.&lt;br /&gt;
&lt;br /&gt;
For importing high resolution data from GeoTIFF files for WRF-Fire, we recommend the following index files:&lt;br /&gt;
 #ned_data/index&lt;br /&gt;
 geotiff = ned_data.tif&lt;br /&gt;
 description = &amp;quot;Topography height&amp;quot;&lt;br /&gt;
 type = continuous&lt;br /&gt;
 units = &amp;quot;meters&amp;quot;&lt;br /&gt;
 description = &amp;quot;National Elevation Dataset&amp;quot;&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
&lt;br /&gt;
 #landfire_data/index&lt;br /&gt;
 geotiff = lf_data.tif&lt;br /&gt;
 type = categorical&lt;br /&gt;
 category_min = 1&lt;br /&gt;
 category_max = 14&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
 units = &amp;quot;category&amp;quot;&lt;br /&gt;
 missing_value = 14&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2938</id>
		<title>WPS with GeoTIFF support</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2938"/>
		<updated>2016-05-04T18:56:03Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Setting up the environment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
As of {{WRF-Fire-commit|d5746414a0bee94c1a18435cd7be9b2b311e338f|April 6, 2011}}, WRF-Fire&#039;s version of WPS supports reading of [http://trac.osgeo.org/geotiff/ geotiff] files directly without [[How to convert data for Geogrid|converting]] to geogrid&#039;s binary format.  This feature has been added to make it easier to incorporate high resolution data for real WRF-Fire simulations.  WPS must be linked with GeoTIFF support in order to use this feature.  To maintain compatibility, GeoTIFF support is not compiled in unless the necessary libraries are installed.&lt;br /&gt;
&lt;br /&gt;
=Prerequisite libraries=&lt;br /&gt;
In order to use this feature, the user must have both the [http://trac.osgeo.org/geotiff/ GeoTIFF] and [http://www.libtiff.org/ TIFF] libraries installed.  For many linux distributions, it is possible to install these libraries using its package manager.  Using Ubuntu, &lt;br /&gt;
 sudo apt-get install geotiff-bin&lt;br /&gt;
or Fedora,&lt;br /&gt;
 sudo yum install libgeotiff-devel&lt;br /&gt;
will install everything required.  For other distributions, search the package manager for geotiff; you will need the development libraries if they are packaged separately.  Users of Mac OSX can install [http://www.macports.org/install.php macports] and use the command&lt;br /&gt;
 sudo port install libgeotiff&lt;br /&gt;
to install all necessary libraries.&lt;br /&gt;
&lt;br /&gt;
==Installing libTIFF from source==&lt;br /&gt;
&lt;br /&gt;
The current stable version of libTIFF is 3.9.4; however, we recommend you use the latest development release of version 4.0.  Version 4.0 of libTIFF adds support for what is called BigTIFF, which are images larger than 2^32 bytes.  BigTIFF files are often seen in large GeoTIFF datasets that you may want to use with WRF-Fire.  To install, get the latest source package from [http://download.osgeo.org/libtiff/ here], extract it, and go to the extracted directory in your terminal.  You will want to choose a place to install the new libraries, such as &amp;lt;code&amp;gt;~/wpslibs&amp;lt;/code&amp;gt; and create this directory by mkdir ~/wpslibs .  Run the configure script telling it where you want the library installed, then build and install.&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==Installing GeoTIFF from source==&lt;br /&gt;
&lt;br /&gt;
In order to make use of GeoTIFF images containing projected data, you must compile GeoTIFF with PROJ.4 support.  Download the source code for PROJ.4 [http://trac.osgeo.org/proj/ here], then extract and install it into your library installation path.&lt;br /&gt;
 ./autogen.sh  (skip if configure script is already there)&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
Now, you can download GeoTIFF from [ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ here].  Extract the archive and compile with PROJ.4 support.&lt;br /&gt;
 ./configure --with-libtiff=~/wpslibs --with-proj=~/wpslibs --prefix=~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
GeoTIFF may complain about using relative paths, so if that is the case provide the full path to your wpslibs directory. For instance:&lt;br /&gt;
  ./configure --with-libtiff=/home/your_user_name/wpslibs --with-proj=/home/your_user_name/wpslibs --prefix=/home/your_user_name/&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
After this step you are ready to compile WPS (WRF must be already compiled). If you have an old WPS version compiled before you will need to clean it:&lt;br /&gt;
 ./clean -a&lt;br /&gt;
Then configure it again&lt;br /&gt;
 ./configure&lt;br /&gt;
and compile&lt;br /&gt;
 ./compile&lt;br /&gt;
&lt;br /&gt;
=Setting up the environment=&lt;br /&gt;
&lt;br /&gt;
Before compiling WPS, you must set environment variables informing the configure script where to find the GeoTIFF libraries.  The convention for these environment variables is the same as for the netCDF libraries; you must set &amp;lt;code&amp;gt;LIBTIFF&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;GEOTIFF&amp;lt;/code&amp;gt; to the prefix path of TIFF and GeoTIFF, respectively.  If you installed the libraries using the package manager on Linux, the prefix path for each will be &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt;, as follows.&lt;br /&gt;
 export LIBTIFF=/usr&lt;br /&gt;
 export GEOTIFF=/usr&lt;br /&gt;
If you installed GeoTIFF with macports, the prefix is &amp;lt;code&amp;gt;/opt/local&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export LIBTIFF=/opt/local&lt;br /&gt;
 export GEOTIFF=/opt/local&lt;br /&gt;
If you installed from source, then the prefix is the path given to the configure script.&lt;br /&gt;
 export LIBTIFF=~/wpslibs&lt;br /&gt;
 export GEOTIFF=~/wpslibs&lt;br /&gt;
&lt;br /&gt;
You may also need to configure the shared library search path, especially if you installed from source.  This can be done with the following command.&lt;br /&gt;
 export LD_LIBRARY_PATH=$GEOTIFF/lib&lt;br /&gt;
You may want to add these environment variables to your startup (such as &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;)  file to avoid having to type them in every time you log in or open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
=Using GeoTIFF with WPS=&lt;br /&gt;
&lt;br /&gt;
With the environment properly set up, you can compile [[How to compile WRF-Fire|WRF]] and [[How to run WRF-Fire with real data#Compiling WPS|WPS]] in the normal way.&lt;br /&gt;
&lt;br /&gt;
==Specifying a GeoTIFF dataset for geogrid==&lt;br /&gt;
&lt;br /&gt;
The procedure for using a dataset in geogrid involves adding a field specification to the file &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt;.  The field specification provides paths to one or more datasets that can be used to initial the field.  These paths must each contain a text file named &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt;, which details the storage format of the data contained in that directory.  The specification of GeoTIFF files follows this convention; however, the &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; file must (at the least) contain a line such as &amp;lt;code&amp;gt;geotiff=XXXX.tif&amp;lt;/code&amp;gt; giving the name of the GeoTIFF file residing in the same directory.  &lt;br /&gt;
&lt;br /&gt;
For example, if you have a GeoTIFF file named &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; containing &lt;br /&gt;
topographical data that you want to use for the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;, you would edit the &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; section of &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt; with the line &amp;lt;code&amp;gt;abs_path=./ned_data&amp;lt;/code&amp;gt;.  Then create a directory under &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt;, and copy &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; to this directory.  Finally, you would add a text file called &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt; containing the line:&lt;br /&gt;
 geotiff=topo.tif&lt;br /&gt;
This would tell geogrid that the file &amp;lt;code&amp;gt;ned_data/topo.gif&amp;lt;/code&amp;gt; contains a GeoTIFF file that should be used to fill the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;.  The new extension to WPS will provide geogrid with the cartographic projection and storage details that are normally provided in the index.  Geogrid requires a bit more information about categorical fields than is actually provided by GeoTIFF.  For these fields, you must also specify values for &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;category_min&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;category_max&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While for a continuous field such as &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; this is the only line that absolutely must be in the index, you may wish to provide more information that cannot be determined from the GeoTIFF metadata.  All parameters supported by standard geogrid index files are allowed in GeoTIFF index files as well.  If a setting is present in the index file, it will override anything read from the GeoTIFF metadata.  This is useful in case the GeoTIFF extension or the GeoTIFF file itself provides incorrect information; the user can easily fix it by providing the correct value in the index.  To assist in debugging, geogrid creates a log file called &amp;lt;code&amp;gt;geogrid.log&amp;lt;/code&amp;gt;; this log contains source data parameters that were actually used.  Check this file for anything incorrect.&lt;br /&gt;
&lt;br /&gt;
For importing high resolution data from GeoTIFF files for WRF-Fire, we recommend the following index files:&lt;br /&gt;
 #ned_data/index&lt;br /&gt;
 geotiff = ned_data.tif&lt;br /&gt;
 description = &amp;quot;Topography height&amp;quot;&lt;br /&gt;
 type = continuous&lt;br /&gt;
 units = &amp;quot;meters&amp;quot;&lt;br /&gt;
 description = &amp;quot;National Elevation Dataset&amp;quot;&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
&lt;br /&gt;
 #landfire_data/index&lt;br /&gt;
 geotiff = lf_data.tif&lt;br /&gt;
 type = categorical&lt;br /&gt;
 category_min = 1&lt;br /&gt;
 category_max = 14&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
 units = &amp;quot;category&amp;quot;&lt;br /&gt;
 missing_value = 14&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2937</id>
		<title>WPS with GeoTIFF support</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2937"/>
		<updated>2016-05-04T18:53:16Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Installing GeoTIFF from source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
As of {{WRF-Fire-commit|d5746414a0bee94c1a18435cd7be9b2b311e338f|April 6, 2011}}, WRF-Fire&#039;s version of WPS supports reading of [http://trac.osgeo.org/geotiff/ geotiff] files directly without [[How to convert data for Geogrid|converting]] to geogrid&#039;s binary format.  This feature has been added to make it easier to incorporate high resolution data for real WRF-Fire simulations.  WPS must be linked with GeoTIFF support in order to use this feature.  To maintain compatibility, GeoTIFF support is not compiled in unless the necessary libraries are installed.&lt;br /&gt;
&lt;br /&gt;
=Prerequisite libraries=&lt;br /&gt;
In order to use this feature, the user must have both the [http://trac.osgeo.org/geotiff/ GeoTIFF] and [http://www.libtiff.org/ TIFF] libraries installed.  For many linux distributions, it is possible to install these libraries using its package manager.  Using Ubuntu, &lt;br /&gt;
 sudo apt-get install geotiff-bin&lt;br /&gt;
or Fedora,&lt;br /&gt;
 sudo yum install libgeotiff-devel&lt;br /&gt;
will install everything required.  For other distributions, search the package manager for geotiff; you will need the development libraries if they are packaged separately.  Users of Mac OSX can install [http://www.macports.org/install.php macports] and use the command&lt;br /&gt;
 sudo port install libgeotiff&lt;br /&gt;
to install all necessary libraries.&lt;br /&gt;
&lt;br /&gt;
==Installing libTIFF from source==&lt;br /&gt;
&lt;br /&gt;
The current stable version of libTIFF is 3.9.4; however, we recommend you use the latest development release of version 4.0.  Version 4.0 of libTIFF adds support for what is called BigTIFF, which are images larger than 2^32 bytes.  BigTIFF files are often seen in large GeoTIFF datasets that you may want to use with WRF-Fire.  To install, get the latest source package from [http://download.osgeo.org/libtiff/ here], extract it, and go to the extracted directory in your terminal.  You will want to choose a place to install the new libraries, such as &amp;lt;code&amp;gt;~/wpslibs&amp;lt;/code&amp;gt; and create this directory by mkdir ~/wpslibs .  Run the configure script telling it where you want the library installed, then build and install.&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==Installing GeoTIFF from source==&lt;br /&gt;
&lt;br /&gt;
In order to make use of GeoTIFF images containing projected data, you must compile GeoTIFF with PROJ.4 support.  Download the source code for PROJ.4 [http://trac.osgeo.org/proj/ here], then extract and install it into your library installation path.&lt;br /&gt;
 ./autogen.sh  (skip if configure script is already there)&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
Now, you can download GeoTIFF from [ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ here].  Extract the archive and compile with PROJ.4 support.&lt;br /&gt;
 ./configure --with-libtiff=~/wpslibs --with-proj=~/wpslibs --prefix=~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
GeoTIFF may complain about using relative paths, so if that is the case provide the full path to your wpslibs directory. For instance:&lt;br /&gt;
  ./configure --with-libtiff=/home/your_user_name/wpslibs --with-proj=/home/your_user_name/wpslibs --prefix=/home/your_user_name/&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
After this step you are ready to compile WPS (WRF must be already compiled). If you have an old WPS version compiled before you will need to clean it:&lt;br /&gt;
 ./clean -a&lt;br /&gt;
Then configure it again&lt;br /&gt;
 ./configure&lt;br /&gt;
and compile&lt;br /&gt;
 ./compile&lt;br /&gt;
&lt;br /&gt;
=Setting up the environment=&lt;br /&gt;
&lt;br /&gt;
Before compiling WPS, you must set environment variables informing the configure script where to find the GeoTIFF libraries.  The convention for these environment variables is the same as for the netCDF libraries; you must set &amp;lt;code&amp;gt;LIBTIFF&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;GEOTIFF&amp;lt;/code&amp;gt; to the prefix path of TIFF and GeoTIFF, respectively.  If you installed the libraries using the package manager on Linux, the prefix path for each will be &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt;, as follows.&lt;br /&gt;
 export LIBTIFF=/usr&lt;br /&gt;
 export GEOTIFF=/usr&lt;br /&gt;
If you installed GeoTIFF with macports, the prefix is &amp;lt;code&amp;gt;/opt/local&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export LIBTIFF=/opt/local&lt;br /&gt;
 export GEOTIFF=/opt/local&lt;br /&gt;
If you installed from source, then the prefix is the path given to the configure script.  You may also need to configure the shared library search path, especially if you installed from source.  This can be done with the following command.&lt;br /&gt;
 export LD_LIBRARY_PATH=$GEOTIFF/lib&lt;br /&gt;
You may want to add these environment variables to your startup (such as &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;)  file to avoid having to type them in every time you log in or open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
=Using GeoTIFF with WPS=&lt;br /&gt;
&lt;br /&gt;
With the environment properly set up, you can compile [[How to compile WRF-Fire|WRF]] and [[How to run WRF-Fire with real data#Compiling WPS|WPS]] in the normal way.&lt;br /&gt;
&lt;br /&gt;
==Specifying a GeoTIFF dataset for geogrid==&lt;br /&gt;
&lt;br /&gt;
The procedure for using a dataset in geogrid involves adding a field specification to the file &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt;.  The field specification provides paths to one or more datasets that can be used to initial the field.  These paths must each contain a text file named &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt;, which details the storage format of the data contained in that directory.  The specification of GeoTIFF files follows this convention; however, the &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; file must (at the least) contain a line such as &amp;lt;code&amp;gt;geotiff=XXXX.tif&amp;lt;/code&amp;gt; giving the name of the GeoTIFF file residing in the same directory.  &lt;br /&gt;
&lt;br /&gt;
For example, if you have a GeoTIFF file named &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; containing &lt;br /&gt;
topographical data that you want to use for the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;, you would edit the &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; section of &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt; with the line &amp;lt;code&amp;gt;abs_path=./ned_data&amp;lt;/code&amp;gt;.  Then create a directory under &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt;, and copy &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; to this directory.  Finally, you would add a text file called &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt; containing the line:&lt;br /&gt;
 geotiff=topo.tif&lt;br /&gt;
This would tell geogrid that the file &amp;lt;code&amp;gt;ned_data/topo.gif&amp;lt;/code&amp;gt; contains a GeoTIFF file that should be used to fill the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;.  The new extension to WPS will provide geogrid with the cartographic projection and storage details that are normally provided in the index.  Geogrid requires a bit more information about categorical fields than is actually provided by GeoTIFF.  For these fields, you must also specify values for &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;category_min&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;category_max&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While for a continuous field such as &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; this is the only line that absolutely must be in the index, you may wish to provide more information that cannot be determined from the GeoTIFF metadata.  All parameters supported by standard geogrid index files are allowed in GeoTIFF index files as well.  If a setting is present in the index file, it will override anything read from the GeoTIFF metadata.  This is useful in case the GeoTIFF extension or the GeoTIFF file itself provides incorrect information; the user can easily fix it by providing the correct value in the index.  To assist in debugging, geogrid creates a log file called &amp;lt;code&amp;gt;geogrid.log&amp;lt;/code&amp;gt;; this log contains source data parameters that were actually used.  Check this file for anything incorrect.&lt;br /&gt;
&lt;br /&gt;
For importing high resolution data from GeoTIFF files for WRF-Fire, we recommend the following index files:&lt;br /&gt;
 #ned_data/index&lt;br /&gt;
 geotiff = ned_data.tif&lt;br /&gt;
 description = &amp;quot;Topography height&amp;quot;&lt;br /&gt;
 type = continuous&lt;br /&gt;
 units = &amp;quot;meters&amp;quot;&lt;br /&gt;
 description = &amp;quot;National Elevation Dataset&amp;quot;&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
&lt;br /&gt;
 #landfire_data/index&lt;br /&gt;
 geotiff = lf_data.tif&lt;br /&gt;
 type = categorical&lt;br /&gt;
 category_min = 1&lt;br /&gt;
 category_max = 14&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
 units = &amp;quot;category&amp;quot;&lt;br /&gt;
 missing_value = 14&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2936</id>
		<title>WPS with GeoTIFF support</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2936"/>
		<updated>2016-05-04T18:41:18Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Installing GeoTIFF from source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
As of {{WRF-Fire-commit|d5746414a0bee94c1a18435cd7be9b2b311e338f|April 6, 2011}}, WRF-Fire&#039;s version of WPS supports reading of [http://trac.osgeo.org/geotiff/ geotiff] files directly without [[How to convert data for Geogrid|converting]] to geogrid&#039;s binary format.  This feature has been added to make it easier to incorporate high resolution data for real WRF-Fire simulations.  WPS must be linked with GeoTIFF support in order to use this feature.  To maintain compatibility, GeoTIFF support is not compiled in unless the necessary libraries are installed.&lt;br /&gt;
&lt;br /&gt;
=Prerequisite libraries=&lt;br /&gt;
In order to use this feature, the user must have both the [http://trac.osgeo.org/geotiff/ GeoTIFF] and [http://www.libtiff.org/ TIFF] libraries installed.  For many linux distributions, it is possible to install these libraries using its package manager.  Using Ubuntu, &lt;br /&gt;
 sudo apt-get install geotiff-bin&lt;br /&gt;
or Fedora,&lt;br /&gt;
 sudo yum install libgeotiff-devel&lt;br /&gt;
will install everything required.  For other distributions, search the package manager for geotiff; you will need the development libraries if they are packaged separately.  Users of Mac OSX can install [http://www.macports.org/install.php macports] and use the command&lt;br /&gt;
 sudo port install libgeotiff&lt;br /&gt;
to install all necessary libraries.&lt;br /&gt;
&lt;br /&gt;
==Installing libTIFF from source==&lt;br /&gt;
&lt;br /&gt;
The current stable version of libTIFF is 3.9.4; however, we recommend you use the latest development release of version 4.0.  Version 4.0 of libTIFF adds support for what is called BigTIFF, which are images larger than 2^32 bytes.  BigTIFF files are often seen in large GeoTIFF datasets that you may want to use with WRF-Fire.  To install, get the latest source package from [http://download.osgeo.org/libtiff/ here], extract it, and go to the extracted directory in your terminal.  You will want to choose a place to install the new libraries, such as &amp;lt;code&amp;gt;~/wpslibs&amp;lt;/code&amp;gt; and create this directory by mkdir ~/wpslibs .  Run the configure script telling it where you want the library installed, then build and install.&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==Installing GeoTIFF from source==&lt;br /&gt;
&lt;br /&gt;
In order to make use of GeoTIFF images containing projected data, you must compile GeoTIFF with PROJ.4 support.  Download the source code for PROJ.4 [http://trac.osgeo.org/proj/ here], then extract and install it into your library installation path.&lt;br /&gt;
 ./autogen.sh  (skip if configure script is already there)&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
Now, you can download GeoTIFF from [ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ here].  Extract the archive and compile with PROJ.4 support.&lt;br /&gt;
 ./configure --with-libtiff=~/wpslibs --with-proj=~/wpslibs --prefix=~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=Setting up the environment=&lt;br /&gt;
&lt;br /&gt;
Before compiling WPS, you must set environment variables informing the configure script where to find the GeoTIFF libraries.  The convention for these environment variables is the same as for the netCDF libraries; you must set &amp;lt;code&amp;gt;LIBTIFF&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;GEOTIFF&amp;lt;/code&amp;gt; to the prefix path of TIFF and GeoTIFF, respectively.  If you installed the libraries using the package manager on Linux, the prefix path for each will be &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt;, as follows.&lt;br /&gt;
 export LIBTIFF=/usr&lt;br /&gt;
 export GEOTIFF=/usr&lt;br /&gt;
If you installed GeoTIFF with macports, the prefix is &amp;lt;code&amp;gt;/opt/local&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export LIBTIFF=/opt/local&lt;br /&gt;
 export GEOTIFF=/opt/local&lt;br /&gt;
If you installed from source, then the prefix is the path given to the configure script.  You may also need to configure the shared library search path, especially if you installed from source.  This can be done with the following command.&lt;br /&gt;
 export LD_LIBRARY_PATH=$GEOTIFF/lib&lt;br /&gt;
You may want to add these environment variables to your startup (such as &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;)  file to avoid having to type them in every time you log in or open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
=Using GeoTIFF with WPS=&lt;br /&gt;
&lt;br /&gt;
With the environment properly set up, you can compile [[How to compile WRF-Fire|WRF]] and [[How to run WRF-Fire with real data#Compiling WPS|WPS]] in the normal way.&lt;br /&gt;
&lt;br /&gt;
==Specifying a GeoTIFF dataset for geogrid==&lt;br /&gt;
&lt;br /&gt;
The procedure for using a dataset in geogrid involves adding a field specification to the file &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt;.  The field specification provides paths to one or more datasets that can be used to initial the field.  These paths must each contain a text file named &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt;, which details the storage format of the data contained in that directory.  The specification of GeoTIFF files follows this convention; however, the &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; file must (at the least) contain a line such as &amp;lt;code&amp;gt;geotiff=XXXX.tif&amp;lt;/code&amp;gt; giving the name of the GeoTIFF file residing in the same directory.  &lt;br /&gt;
&lt;br /&gt;
For example, if you have a GeoTIFF file named &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; containing &lt;br /&gt;
topographical data that you want to use for the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;, you would edit the &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; section of &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt; with the line &amp;lt;code&amp;gt;abs_path=./ned_data&amp;lt;/code&amp;gt;.  Then create a directory under &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt;, and copy &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; to this directory.  Finally, you would add a text file called &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt; containing the line:&lt;br /&gt;
 geotiff=topo.tif&lt;br /&gt;
This would tell geogrid that the file &amp;lt;code&amp;gt;ned_data/topo.gif&amp;lt;/code&amp;gt; contains a GeoTIFF file that should be used to fill the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;.  The new extension to WPS will provide geogrid with the cartographic projection and storage details that are normally provided in the index.  Geogrid requires a bit more information about categorical fields than is actually provided by GeoTIFF.  For these fields, you must also specify values for &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;category_min&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;category_max&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While for a continuous field such as &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; this is the only line that absolutely must be in the index, you may wish to provide more information that cannot be determined from the GeoTIFF metadata.  All parameters supported by standard geogrid index files are allowed in GeoTIFF index files as well.  If a setting is present in the index file, it will override anything read from the GeoTIFF metadata.  This is useful in case the GeoTIFF extension or the GeoTIFF file itself provides incorrect information; the user can easily fix it by providing the correct value in the index.  To assist in debugging, geogrid creates a log file called &amp;lt;code&amp;gt;geogrid.log&amp;lt;/code&amp;gt;; this log contains source data parameters that were actually used.  Check this file for anything incorrect.&lt;br /&gt;
&lt;br /&gt;
For importing high resolution data from GeoTIFF files for WRF-Fire, we recommend the following index files:&lt;br /&gt;
 #ned_data/index&lt;br /&gt;
 geotiff = ned_data.tif&lt;br /&gt;
 description = &amp;quot;Topography height&amp;quot;&lt;br /&gt;
 type = continuous&lt;br /&gt;
 units = &amp;quot;meters&amp;quot;&lt;br /&gt;
 description = &amp;quot;National Elevation Dataset&amp;quot;&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
&lt;br /&gt;
 #landfire_data/index&lt;br /&gt;
 geotiff = lf_data.tif&lt;br /&gt;
 type = categorical&lt;br /&gt;
 category_min = 1&lt;br /&gt;
 category_max = 14&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
 units = &amp;quot;category&amp;quot;&lt;br /&gt;
 missing_value = 14&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2935</id>
		<title>WPS with GeoTIFF support</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=WPS_with_GeoTIFF_support&amp;diff=2935"/>
		<updated>2016-05-04T18:38:06Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Installing libTIFF from source */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
As of {{WRF-Fire-commit|d5746414a0bee94c1a18435cd7be9b2b311e338f|April 6, 2011}}, WRF-Fire&#039;s version of WPS supports reading of [http://trac.osgeo.org/geotiff/ geotiff] files directly without [[How to convert data for Geogrid|converting]] to geogrid&#039;s binary format.  This feature has been added to make it easier to incorporate high resolution data for real WRF-Fire simulations.  WPS must be linked with GeoTIFF support in order to use this feature.  To maintain compatibility, GeoTIFF support is not compiled in unless the necessary libraries are installed.&lt;br /&gt;
&lt;br /&gt;
=Prerequisite libraries=&lt;br /&gt;
In order to use this feature, the user must have both the [http://trac.osgeo.org/geotiff/ GeoTIFF] and [http://www.libtiff.org/ TIFF] libraries installed.  For many linux distributions, it is possible to install these libraries using its package manager.  Using Ubuntu, &lt;br /&gt;
 sudo apt-get install geotiff-bin&lt;br /&gt;
or Fedora,&lt;br /&gt;
 sudo yum install libgeotiff-devel&lt;br /&gt;
will install everything required.  For other distributions, search the package manager for geotiff; you will need the development libraries if they are packaged separately.  Users of Mac OSX can install [http://www.macports.org/install.php macports] and use the command&lt;br /&gt;
 sudo port install libgeotiff&lt;br /&gt;
to install all necessary libraries.&lt;br /&gt;
&lt;br /&gt;
==Installing libTIFF from source==&lt;br /&gt;
&lt;br /&gt;
The current stable version of libTIFF is 3.9.4; however, we recommend you use the latest development release of version 4.0.  Version 4.0 of libTIFF adds support for what is called BigTIFF, which are images larger than 2^32 bytes.  BigTIFF files are often seen in large GeoTIFF datasets that you may want to use with WRF-Fire.  To install, get the latest source package from [http://download.osgeo.org/libtiff/ here], extract it, and go to the extracted directory in your terminal.  You will want to choose a place to install the new libraries, such as &amp;lt;code&amp;gt;~/wpslibs&amp;lt;/code&amp;gt; and create this directory by mkdir ~/wpslibs .  Run the configure script telling it where you want the library installed, then build and install.&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==Installing GeoTIFF from source==&lt;br /&gt;
&lt;br /&gt;
In order to make use of GeoTIFF images containing projected data, you must compile GeoTIFF with PROJ.4 support.  Download the source code for PROJ.4 [http://trac.osgeo.org/proj/ here], then extract and install it into your library installation path.&lt;br /&gt;
 ./configure --prefix ~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
Now, you can download GeoTIFF from [ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ here].  Extract the archive and compile with PROJ.4 support.&lt;br /&gt;
 ./configure --with-libtiff=~/wpslibs --with-proj=~/wpslibs --prefix=~/wpslibs&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=Setting up the environment=&lt;br /&gt;
&lt;br /&gt;
Before compiling WPS, you must set environment variables informing the configure script where to find the GeoTIFF libraries.  The convention for these environment variables is the same as for the netCDF libraries; you must set &amp;lt;code&amp;gt;LIBTIFF&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;GEOTIFF&amp;lt;/code&amp;gt; to the prefix path of TIFF and GeoTIFF, respectively.  If you installed the libraries using the package manager on Linux, the prefix path for each will be &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt;, as follows.&lt;br /&gt;
 export LIBTIFF=/usr&lt;br /&gt;
 export GEOTIFF=/usr&lt;br /&gt;
If you installed GeoTIFF with macports, the prefix is &amp;lt;code&amp;gt;/opt/local&amp;lt;/code&amp;gt;.&lt;br /&gt;
 export LIBTIFF=/opt/local&lt;br /&gt;
 export GEOTIFF=/opt/local&lt;br /&gt;
If you installed from source, then the prefix is the path given to the configure script.  You may also need to configure the shared library search path, especially if you installed from source.  This can be done with the following command.&lt;br /&gt;
 export LD_LIBRARY_PATH=$GEOTIFF/lib&lt;br /&gt;
You may want to add these environment variables to your startup (such as &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;)  file to avoid having to type them in every time you log in or open a new terminal window.&lt;br /&gt;
&lt;br /&gt;
=Using GeoTIFF with WPS=&lt;br /&gt;
&lt;br /&gt;
With the environment properly set up, you can compile [[How to compile WRF-Fire|WRF]] and [[How to run WRF-Fire with real data#Compiling WPS|WPS]] in the normal way.&lt;br /&gt;
&lt;br /&gt;
==Specifying a GeoTIFF dataset for geogrid==&lt;br /&gt;
&lt;br /&gt;
The procedure for using a dataset in geogrid involves adding a field specification to the file &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt;.  The field specification provides paths to one or more datasets that can be used to initial the field.  These paths must each contain a text file named &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt;, which details the storage format of the data contained in that directory.  The specification of GeoTIFF files follows this convention; however, the &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; file must (at the least) contain a line such as &amp;lt;code&amp;gt;geotiff=XXXX.tif&amp;lt;/code&amp;gt; giving the name of the GeoTIFF file residing in the same directory.  &lt;br /&gt;
&lt;br /&gt;
For example, if you have a GeoTIFF file named &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; containing &lt;br /&gt;
topographical data that you want to use for the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;, you would edit the &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; section of &amp;lt;code&amp;gt;geogrid/GEOGRID.TBL&amp;lt;/code&amp;gt; with the line &amp;lt;code&amp;gt;abs_path=./ned_data&amp;lt;/code&amp;gt;.  Then create a directory under &amp;lt;code&amp;gt;WPS&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt;, and copy &amp;lt;code&amp;gt;topo.tif&amp;lt;/code&amp;gt; to this directory.  Finally, you would add a text file called &amp;lt;code&amp;gt;index&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;ned_data&amp;lt;/code&amp;gt; containing the line:&lt;br /&gt;
 geotiff=topo.tif&lt;br /&gt;
This would tell geogrid that the file &amp;lt;code&amp;gt;ned_data/topo.gif&amp;lt;/code&amp;gt; contains a GeoTIFF file that should be used to fill the field &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt;.  The new extension to WPS will provide geogrid with the cartographic projection and storage details that are normally provided in the index.  Geogrid requires a bit more information about categorical fields than is actually provided by GeoTIFF.  For these fields, you must also specify values for &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;category_min&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;category_max&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
While for a continuous field such as &amp;lt;code&amp;gt;ZSF&amp;lt;/code&amp;gt; this is the only line that absolutely must be in the index, you may wish to provide more information that cannot be determined from the GeoTIFF metadata.  All parameters supported by standard geogrid index files are allowed in GeoTIFF index files as well.  If a setting is present in the index file, it will override anything read from the GeoTIFF metadata.  This is useful in case the GeoTIFF extension or the GeoTIFF file itself provides incorrect information; the user can easily fix it by providing the correct value in the index.  To assist in debugging, geogrid creates a log file called &amp;lt;code&amp;gt;geogrid.log&amp;lt;/code&amp;gt;; this log contains source data parameters that were actually used.  Check this file for anything incorrect.&lt;br /&gt;
&lt;br /&gt;
For importing high resolution data from GeoTIFF files for WRF-Fire, we recommend the following index files:&lt;br /&gt;
 #ned_data/index&lt;br /&gt;
 geotiff = ned_data.tif&lt;br /&gt;
 description = &amp;quot;Topography height&amp;quot;&lt;br /&gt;
 type = continuous&lt;br /&gt;
 units = &amp;quot;meters&amp;quot;&lt;br /&gt;
 description = &amp;quot;National Elevation Dataset&amp;quot;&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
&lt;br /&gt;
 #landfire_data/index&lt;br /&gt;
 geotiff = lf_data.tif&lt;br /&gt;
 type = categorical&lt;br /&gt;
 category_min = 1&lt;br /&gt;
 category_max = 14&lt;br /&gt;
 tile_bdr = 3&lt;br /&gt;
 units = &amp;quot;category&amp;quot;&lt;br /&gt;
 missing_value = 14&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:Corsica_Numerical_Wildfires_2013_4Web.pdf&amp;diff=2785</id>
		<title>File:Corsica Numerical Wildfires 2013 4Web.pdf</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:Corsica_Numerical_Wildfires_2013_4Web.pdf&amp;diff=2785"/>
		<updated>2013-09-09T18:23:01Z</updated>

		<summary type="html">&lt;p&gt;Adamko: Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, Martin Vejmelka, Forecasting of smoke and wildfire emissions using WRF-Sfire, Numerical Wildfires, Cargese, Corsica, 17th May 2013.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, Martin Vejmelka, Forecasting of smoke and wildfire emissions using WRF-Sfire, Numerical Wildfires, Cargese, Corsica, 17th May 2013.&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=Publications&amp;diff=2784</id>
		<title>Publications</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=Publications&amp;diff=2784"/>
		<updated>2013-09-09T18:17:59Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Conference papers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
&lt;br /&gt;
==WRF-Fire description==&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;The [[WRF-Fire]] code is described in these papers.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Journal papers===&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, and Adam K. Kochanski, [http://www.geosci-model-dev.net/4/591/2011/gmd-4-591-2011.html &#039;&#039;&#039;Coupled atmosphere-wildland fire modeling with WRF 3.3 and SFIRE 2011&#039;&#039;&#039;], [http://www.geoscientific-model-development.net Geoscientific Model Development (GMD)] 4, 591-610, 2011. {{doi|10.5194/gmd-4-591-2011}}&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Janice L. Coen, and Minjeong Kim, &#039;&#039;&#039;Data Assimilation for Wildland Fires: Ensemble Kalman filters in coupled atmosphere-surface models&#039;&#039;&#039;, IEEE Control Systems Magazine 29, Issue 3, June 2009, 47-65.  {{doi|10.1109/MCS.2009.932224}}. Preprint available as {{arXiv|0712.3965}}.&lt;br /&gt;
&lt;br /&gt;
* Coen, J., M. Cameron, J. Michalakes,  E. Patton, P. Riggan, and K. Yedinak,  2013: WRF-Fire: &#039;&#039;&#039;Coupled Weather-Wildland Fire Modeling with the Weather Research and Forecasting Model&#039;&#039;&#039;. J. Appl. Meteor. Climatol. 52, 16-38, {{doi|10.1175/JAMC-D-12-023.1}}.&lt;br /&gt;
&lt;br /&gt;
===Conference papers===&lt;br /&gt;
* Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, Martin Vejmelka, Forecasting of smoke and wildfire emissions using WRF-Sfire, Numerical Wildfires, Cargese, Corsica, 17th May 2013. [http://www.openwfm.org/wiki/File:Corsica_Numerical_Wildfires_2013_4Web.pdf presentation]&lt;br /&gt;
* Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, Craig B. Clements, &#039;&#039;&#039;Air pollution forecasting by coupled atmosphere-fire model WRF and SFIRE with WRF-Chem&#039;&#039;&#039;, [http://www.iawfonline.org/2013FuelsConference/index.php 4th Fire Behavior and Fuels Conference Raleigh, North Carolina, USA February 18 - 22, 2013], [http://www.openwfm.org/wiki/File:WRF-Chemcouplingabstract.pdf abstract] [http://www.openwfm.org/wiki/File:FAFB_conference_2013_final.pdf presentation] 	{{arXiv|1304.7703}}&lt;br /&gt;
&lt;br /&gt;
* Martin Vejmelka, Adam K. Kochanski, and Jan Mandel, [http://math.ucdenver.edu/~jmandel/papers/Vejmelka-2013-DAF.pdf &#039;&#039;&#039;Data assimilation of fuel moisture in WRF-SFIRE&#039;&#039;&#039;], [http://www.iawfonline.org/2013FuelsConference/index.php 4th Fire Behavior and Fuels Conference Raleigh, North Carolina, USA February 18 - 22, 2013]&lt;br /&gt;
&lt;br /&gt;
*Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, Craig B. Clements, [https://ams.confex.com/ams/93Annual/webprogram/Paper221879.html &#039;&#039;&#039;Wildland fire emission forecasting by coupled atmosphere-fire model WRF-SFIRE and WRF-Chem&#039;&#039;&#039;] [http://annual.ametsoc.org/2013 93rd AMS Annual Meeting, 6-10 January 2013, Austin, TX] &lt;br /&gt;
&lt;br /&gt;
* Jonathan Beezley, Mavin Martin, Paul Rosen, Jan Mandel, Adam K. Kochanski, &#039;&#039;&#039;Data management and analysis with WRF and SFIRE&#039;&#039;&#039;, IEEE Geoscience and Remote Sensing Symposium (IGARSS) 2012, 5274-5277, 2012 {{doi|10.1109/IGARSS.2012.6352419}} {{arXiv|1208.1061}} [http://www.igarss12.org/papers/ViewPapers_MS.asp?PaperNum=4033 abstract]&lt;br /&gt;
&lt;br /&gt;
* Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, and Minjeong Kim, &#039;&#039;&#039;WRF fire simulation coupled with a fuel moisture model and smoke transport by WRF-Chem&#039;&#039;&#039;, [http://www.mmm.ucar.edu/events/2012_wrfusers/ 2012 WRF Users Workshop], [http://www.openwfm.org/wiki/File:WRF_workshop_2012_poster.pdf Poster 51] [http://www.mmm.ucar.edu/events/2012_wrfusers/abstracts/p51.htm abstract] [https://www.regonline.com/AttendeeDocuments/1077122/43365086/wrf2012.pdf paper] {{arXiv|1208.1059}}&lt;br /&gt;
&lt;br /&gt;
* Jonathan D. Beezley, A. Kochanski, V. Y. Kondratenko, and J. Mandel, [http://ams.confex.com/ams/9FIRE/webprogram/Paper192276.html &#039;&#039;&#039;Integrating high-resolution static data into WRF for real fire simulations&#039;&#039;&#039;], [http://www.ametsoc.org/meet/fainst/20119fireforest.html Ninth Symposium on Fire and Forest Meteorology], Palm Springs, CA, October 18-20, 2011&lt;br /&gt;
&lt;br /&gt;
* P. Mates, E. Santos, J. Freire and C. Silva. [http://www.springerlink.com/content/v1w10731107216t3/ &#039;&#039;&#039;CrowdLabs: Social Analysis and Visualization for the Sciences&#039;&#039;&#039;] In proceedings of the 23rd International Conference on Scientific and Statistical Database Management (SSDBM), LNCS 6809/2011, pp. 555-564, 2011.&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, University of Colorado, Denver, CO; and J. D. Beezley, A. Kochanski, V. Y. Kondratenko, L. Zhang, E. Anderson, J. Daniels II, C. T. Silva, and C. Johnson, [http://ams.confex.com/ams/9FIRE/webprogram/Paper192277.html &#039;&#039;&#039;A wildland fire modeling and visualization environment&#039;&#039;&#039;], [http://www.ametsoc.org/meet/fainst/20119fireforest.html Ninth Symposium on Fire and Forest Meteorology], Palm Springs, CA, October 18-20, 2011 [[media:9fire_2011_jm.pdf|pdf]]&lt;br /&gt;
&lt;br /&gt;
* Jonathan D.  Beezley, &#039;&#039;&#039;Importing high-resolution datasets into Geogrid&#039;&#039;&#039;, 12th Annual WRF User&#039;s Workshop, Boulder, CO, June 2011. [http://www.mmm.ucar.edu/wrf/users/workshops/WS2011/Extended%20Abstracts%202011/P2_Beezley_ExtendedAbstract_11.pdf pdf] [http://www.openwfm.org/wiki/File:Wrf2011jb.pdf  local copy] [http://www.openwfm.org/wiki/File:Wrf2011jb-Poster.pdf poster]&lt;br /&gt;
&lt;br /&gt;
===Users&#039; guides===&lt;br /&gt;
&lt;br /&gt;
* Current: [[Coupled WRF and SFIRE model user&#039;s guide]] on [[Main_Page|this wiki]]&lt;br /&gt;
&lt;br /&gt;
* For the [[Fire_code_in_WRF_release#WRF_3.3|earlier version]] included in WRF release: Wang, W., Bruyere, C., Duda, M., Dudhia, J., Gill, D., Lin, H.C., Michalakes, J., Rizvi, S., Zhang, X., Beezley, J.D., Coen, J.L., Mandel, J. &#039;&#039;&#039;[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3/ARWUsersGuideV3.pdf ARW version 3 modeling system user’s guide]&#039;&#039;&#039;. Mesoscale &amp;amp; Miscroscale Meteorology Division, National Center for Atmospheric Research (July 2010, last updated January 2012)&lt;br /&gt;
&lt;br /&gt;
==Other WRF-Fire publications, applications, case studies==&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;These publications deal with various aspects related to WRF-Fire, or report on its use and specific simulations.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Journal papers===&lt;br /&gt;
&lt;br /&gt;
* Colin C. Simpson, Jason J. Sharples, Jason P. Evans, and Matthew F. McCabe, &#039;&#039;&#039;Large eddy simulation of atypical wildland fire spread on leeward slopes&#039;&#039;&#039;, International Journal of Wildland Fire &#039;&#039;&#039;22&#039;&#039;&#039;, 599-614, 2013  {{doi|10.1071/WF12072}}&lt;br /&gt;
&lt;br /&gt;
* Adam K. Kochanski, Mary Ann Jenkins, Steven K. Krueger, Jan Mandel, Jonathan D. Beezley, &#039;&#039;&#039;Real time simulation of 2007 Santa Ana fires&#039;&#039;&#039;,  Forest Ecology and Management &#039;&#039;&#039;15&#039;&#039;&#039;, 136-149, 2013 {{doi|10.1016/j.foreco.2012.12.014}}  {{arXiv|1202.3209}}&lt;br /&gt;
&lt;br /&gt;
* Adam K. Kochanski, Mary Ann Jenkins, Jan Mandel, Jonathan D. Beezley, Craig B. Clements, Steven Krueger, [http://www.geosci-model-dev.net/6/1109/2013/gmd-6-1109-2013.html &#039;&#039;&#039;Evaluation of WRF-Sfire Performance with Field Observations from the FireFlux experiment&#039;&#039;&#039;], Geoscientific Model Development &#039;&#039;&#039;6&#039;&#039;&#039;, 1109-1126, 2013 {{doi|10.5194/gmd-6-1109-2013}}&lt;br /&gt;
&lt;br /&gt;
===Theses===&lt;br /&gt;
&lt;br /&gt;
* Nina Dobrinkova, &#039;&#039;&#039;Information systems for simulating the behavior of forest and field fires&#039;&#039;&#039;, PhD Thesis, Bulgarian Academy of Sciences, 2012&lt;br /&gt;
&lt;br /&gt;
* Minjeong Kim, [http://www.ucdenver.edu/academics/colleges/CLAS/Departments/math/students/alumni/Documents/Student%20Theses/Kim-Minjeong-PhdThesis.pdf &#039;&#039;&#039;Reaction diffusion equations and numerical wildland fire models&#039;&#039;&#039;], PhD thesis, University of Colorado Denver, 2011&lt;br /&gt;
&lt;br /&gt;
* Jonathan D. Beezley, [http://www.ucdenver.edu/academics/colleges/CLAS/Departments/math/students/alumni/Documents/Student%20Theses/Beezley_PhDThesis.pdf &#039;&#039;&#039;High-Dimensional Data Assimilation and Morphing Ensemble Kalman Filters with Applications in Wildfire Modeling&#039;&#039;&#039;], PhD thesis, University of Colorado Denver, 2009&lt;br /&gt;
&lt;br /&gt;
=== Conference papers ===&lt;br /&gt;
* Nina Dobrinkova, Stefka Fidanova, Ivan Dimov, Krasimir Atanasov, and Jan Mandel, &#039;&#039;&#039;Game-Method Model And WRF-Fire Model Working Together&#039;&#039;&#039;, in Monte Carlo Methods and Applications, A. Sabelfeld and I. Dimov, eds., De Gruyter, Berlin, 2012, pp. 79--86, {{doi|10.1515/9783110293586.79}} &lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, J.D. Beezley, A. K. Kochanski, V. Y. Kondratenko, and M. Kim, &#039;&#039;&#039;Assimilation of Perimeter Data and Coupling with Fuel Moisture in a Wildland Fire - Atmosphere DDDAS&#039;&#039;&#039;, ICCS 2012, [http://dx.doi.org/10.1016/j.procs.2012.04.119 Procedia Computer Science 9, 2012, 1100-1109] {{doi|10.1016/j.procs.2012.04.119}}&lt;br /&gt;
&lt;br /&gt;
* Mary Ann Jenkins,  A. K. Kochanski and S. K. Krueger, [http://ams.confex.com/ams/9FIRE/webprogram/Paper192313.html &#039;&#039;&#039;The fluid dynamics of steady-state fireline propagation&#039;&#039;&#039;], [http://ams.confex.com/ams/9FIRE/webprogram/9FIRE.html Ninth Symposium on Fire and Forest Meteorology], Palm Springs, CA, October 18-20,  2011 &lt;br /&gt;
&lt;br /&gt;
* Mika Peace, T. Mattner and G. Mills, [http://ams.confex.com/ams/9FIRE/webprogram/Paper192200.html &#039;&#039;&#039;The Kangaroo Island bushfires of 2007 A meteorological case study and WRF-fire simulation&#039;&#039;&#039;], [http://ams.confex.com/ams/9FIRE/webprogram/9FIRE.html Ninth Symposium on Fire and Forest Meteorology], Palm Springs, CA, October 18-20, 2011 (Adelaide University/Bureau of Meteorology, Adelaide, SA, Australia)&lt;br /&gt;
&lt;br /&gt;
* Adam Kochanski, M. A. Jenkins, S. K. Krueger, J. Mandel, J. D. Beezley, and C. B. Clements, [http://ams.confex.com/ams/9FIRE/webprogram/Paper192314.html &#039;&#039;&#039;Coupled atmosphere-fire simulations of the FireFlux experiment: Impacts of model resolution on its performance&#039;&#039;&#039;], [http://www.ametsoc.org/meet/fainst/20119fireforest.html Ninth Symposium on Fire and Forest Meteorology], Palm Springs, CA, October 18-20, 2011&lt;br /&gt;
&lt;br /&gt;
* Georgi Jordanov, Jonathan D. Beezley, Nina Dobrinkova, Adam K. Kochanski, Jan Mandel, Bedr(ich Sousedík, &#039;&#039;&#039;Simulation of the 2009 Harmanli fire (Bulgaria)&#039;&#039;&#039;,  [http://dx.doi.org/10.1007/978-3-642-29843-1_33 Lecture Notes in Computer Science 7116, 291-298, 2012]  [http://parallel.bas.bg/Conferences/SciCom11.html 8th International Conference on Large-Scale Scientific Computations], June 6-10, 2011, Sozopol, Bulgaria. {{arXiv|1106.4736}}&lt;br /&gt;
&lt;br /&gt;
* Kondratenko, Volodymyr Y., Jonathan D. Beezley, Adam K. Kochanski, and Jan Mandel, &#039;&#039;&#039;Ignition from a Fire Perimeter in a WRF Wildland Fire Model&#039;&#039;&#039;, 12th Annual WRF User&#039;s Workshop, Boulder, CO, June 2011. [http://www.mmm.ucar.edu/wrf/users/workshops/WS2011/Extended%20Abstracts%202011/9_6_Kondratenko_ExtendedAbstract_11.pdf pdf] {{arXiv|1107.2675}} [http://www.openwfm.org/wiki/File:Wrf2011_VK-slides.pdf presentation]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan Beezley, and Adam Kochanski, [http://ams.confex.com/ams/91Annual/webprogram/Paper185887.html &#039;&#039;&#039;An overview of the coupled atmosphere-wildland fire model WRF-Fire&#039;&#039;&#039;], [http://ams.confex.com/ams/91Annual/webprogram/start.html 91st American Meteorological Society Annual Meeting], Seattle, WA, January 25, 2011. &lt;br /&gt;
&lt;br /&gt;
* Nina Dobrinkova, Georgi Jordanov, and Jan Mandel, &#039;&#039;&#039;WRF-Fire Applied in Bulgaria&#039;&#039;&#039;, Numerical Methods and Applications, I. Dimov, S. Dimova, and N. Kolkovska, eds., Lecture Notes in Computer Science 6046, Springer, Berlin/Heidelberg, 2011, pp. 133-140. Proceedings of 7th International Conference on Numerical Methods and Applications - NM&amp;amp;A&#039;10, August 20 - 24, 2010, Borovets, Bulgaria. {{doi|10.1007/978-3-642-18466-6_15}}. Preprint {{arXiv|1007.5347}}, July 2010.&lt;br /&gt;
&lt;br /&gt;
* Janice L. Coen and Craig C. Douglas, &#039;&#039;&#039;Computational Modeling of Large Wildfires: A Roadmap.&#039;&#039;&#039;, 9th International Symposium on Distributed Computing and Applications to Business, Engineering &amp;amp; Science. Accepted.  [http://www.mmm.ucar.edu/people/coen/files/Coen_Douglas_final.pdf preprint] &lt;br /&gt;
&lt;br /&gt;
*Jan Mandel, Jonathan D. Beezley, and Volodymyr Y. Kondratenko, &#039;&#039;&#039;Fast Fourier Transform Ensemble Kalman Filter with Application to a Coupled Atmosphere-Wildland Fire Model&#039;&#039;&#039;. Anna M. Gil-Lafuente, Jose M. Merigo (Eds.) [http://www.worldscibooks.com/compsci/7925.html Computational Intelligence in Business and Economics] (Proceedings of the [http://www.amse-modeling.com/ms10/ MS&#039;10 International Conference], Barcelona, Spain, 15-17 July 2010), World Scientific,  pp. 777-784. {{doi|10.1142/9789814324441_0089}}. Preprint available at {{arXiv|1001.1588}}.&lt;br /&gt;
&lt;br /&gt;
===Posters===&lt;br /&gt;
* Volodymyr Y. Kondratenko,  J. D. Beezley, J. Mandel, and A. Kochanski,  [https://ams.confex.com/ams/93Annual/webprogram/Paper221752.html Assimilation of fire perimeter data into the fire spread model SFIRE coupled with the WRF model], 93 AMS Annual Meeting, Austin, TX, January 5-10, 2013&lt;br /&gt;
&lt;br /&gt;
* Adam K. Kochanski, S. K. Krueger , M. A. Jenkins, J. Mandel and J. D. Beezley, &#039;&#039;&#039;Real time simulation of 2007 Santa Ana fires&#039;&#039;&#039;, [http://www.megafirereality.com/ Exploring the Mega-fire Reality] 2011.&lt;br /&gt;
&lt;br /&gt;
* M. Jenkins, A. Kochanski, S. K. Krueger, W. Mell, R. McDermott, [http://adsabs.harvard.edu/abs/2010AGUFMNH34A..08J &#039;&#039;&#039;The Fluid Dynamical Forces Involved in Grass Fire Propagation&#039;&#039;&#039;], AGU Fall Meeting, 2010 [[media:AGU.2010.poster.jenkins.etal.pdf|pdf]]&lt;br /&gt;
&lt;br /&gt;
* J. D. Beezley, A. Kochanski, V. Y. Kondratenko, J. Mandel, B. Sousedik, [[media:agu10_jb.pdf|&#039;&#039;&#039;Simulation of the Meadow Creek fire using WRF-Fire&#039;&#039;&#039;]], AGU Fall Meeting, 2010&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Adam K. Kochanski, Volodymyr Y. Kondratenko, Bedrich Sousedik, Erik Anderson, and Joel Daniels, [[media:agu10_jm.pdf|&#039;&#039;&#039;Wildland fire simulation by WRF-Fire&#039;&#039;&#039;]],  AGU Fall Meeting, 2010&lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, Brian Lamb, Janice Coen, &#039;&#039;&#039;[http://adsabs.harvard.edu/abs/2009AGUFM.A43C0246Y Sensitivity Analysis and Application of WRF-Fire]&#039;&#039;&#039;, AGU Fall Meeting, 2009. &lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, Brian Lamb, Janice Coen, &#039;&#039;&#039;Sensitivity Analyses of Ignition Area and Fire-Atmosphere Dynamics using WRF-FIRE&#039;&#039;&#039;, 8th Symposium on Fire &amp;amp; Forest Meteorology, American Meteorological Society, Kalispell. Oct 13-15, 2009. &lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, J. L. Coen, and B. Lamb, &#039;&#039;&#039;WRF-Fire: A fire-atmosphere dynamics module for air quality modeling&#039;&#039;&#039;, [http://ams.confex.com/ams/89annual/techprogram/MEETING.HTM The 89th American Meteorological Society Annual Meeting (Phoenix, AZ)], [http://ams.confex.com/ams/89annual/techprogram/program_532.htm 11th Conference on Atmospheric Chemistry], [http://ams.confex.com/ams/89annual/techprogram/paper_150173.htm Poster JP 1.10], January 2009.&lt;br /&gt;
&lt;br /&gt;
=== Presentations ===&lt;br /&gt;
&lt;br /&gt;
* Colin Simpson, Andrew Sturman and Peyman Zawar- Reza [http://www.mmm.ucar.edu/wrf/users/workshops/WS2011/Power%20Points%202011/9_5_Simpson_WRFWorkshop_11.pdf &#039;&#039;&#039;Numerical Modeling of Wildland Fire Behaviour under Foehn Winds in New Zealand&#039;&#039;&#039;], [http://www.mmm.ucar.edu/wrf/users/workshops/WS2011/WorkshopPapers.php 12th Annual WRF Users&#039; Workshop], 2011 (University of Canterbury, New Zealand)&lt;br /&gt;
* Simpson, C.; Sturman, A.; Zawar-Reza, P., [http://adsabs.harvard.edu/abs/2010AGUFMNH34A..07S &#039;&#039;&#039;Numerical Modelling of Fire-Atmosphere Interactions and the 2003 Canberra Bushfires&#039;&#039;&#039;], American Geophysical Union, Fall Meeting 2010, abstract #NH34A-07, 2010&lt;br /&gt;
*  A. Kochanski, M. Jenkins, S. K. Krueger, J. Mandel, J. D. Beezley, C. B. Clements, &#039;&#039;&#039;Evaluation of The Fire Plume Dynamics Simulated by WRF-Fire&#039;&#039;&#039;, AGU Fall Meeting, 2010 [[media:AGU.2010.kochanski.key.pdf|pdf]] [[media:AGU.2010.kochanski.key.gz|key]]&lt;br /&gt;
* J. Mandel, [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/abstracts.html#10318 &#039;&#039;&#039;Coupled atmosphere-wildland fire simulation by WRF-Fire&#039;&#039;&#039;], Invited lecture at [http://www.ima.umn.edu/ IMA] Workshop [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/ Numerical Solutions of Partial Differential Equations: Fast Solution Techniques], December 2, 2010. [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/activities/Mandel-Jan/ima10.key.pdf pdf] {{daseminar|slides/ima10/ima10.key.zip|key}} [http://www.ima.umn.edu/videos/?id=1507 video]&lt;br /&gt;
* Janice Coen, &#039;&#039;&#039;Computational Modeling of Wildland Fire Behavior and Weather for Research and Forecasting&#039;&#039;&#039;, keynote lecture at ICCS 2009 [http://www.science.uva.nl/sites/iccs-meeting/iccs2009/abs-Coen.html abstract]&lt;br /&gt;
&lt;br /&gt;
==Other publications from this project==&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;Here are publications and presentations, not dealing directly with the WRF-Fire code.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* N. Andrysco, P. Rosen, V. Popescu, B. Benes, and K.R. Gurney. [http://www.springerlink.com/content/j80q8736t460p785/ &#039;&#039;&#039;Experiences in disseminating educational visualizations&#039;&#039;&#039;]. In Lecture Notes in Computer Science (7th International Symposium on Visual Computing), volume 2, pages 239–248, September 2011.&lt;br /&gt;
&lt;br /&gt;
* Jonathan D. Beezley, Jan Mandel, and Loren Cobb, [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6072819 &#039;&#039;&#039;Wavelet Ensemble Kalman Filters&#039;&#039;&#039;], Proceedings of the 6th IEEE International Conference on Intelligent Data Acquisition and Advanced Computing Systems: Technology and Applications (IDAACS&#039;2011), Prague, September 15-17, 2011, 514-518, 2011&lt;br /&gt;
&lt;br /&gt;
* A.N.M.I. Choudhury, B. Wang, P. Rosen, V. Pascucci. [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6183557 &#039;&#039;&#039;Topological analysis and visualization of cyclical behavior in memory reference traces&#039;&#039;&#039;]. IEEE  Pacific Visualization Symposium (PacificVis), pp. 9-16, 2012.&lt;br /&gt;
&lt;br /&gt;
* A.N.M. I. Choudhury and P. Rosen. &#039;&#039;&#039;Cache ensemble analysis for understanding algorithmic memory performance&#039;&#039;&#039;. In submission to IEEE Computer, 2012.&lt;br /&gt;
&lt;br /&gt;
* A.N.M. Imroz Choudhury and P. Rosen. [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6069452 &#039;&#039;&#039;Abstract visualization of runtime memory behavior&#039;&#039;&#039;]. In 6th IEEE International Workshop on Visualizing Software for Understanding and Analysis (VISSOFT 2011), pages 22–29, 2011.&lt;br /&gt;
&lt;br /&gt;
* Janice L. Coen and Craig C. Douglas, &#039;&#039;&#039;Computational Modeling of Large Wildfires: A Roadmap.&#039;&#039;&#039;, 9th International Symposium on Distributed Computing and Applications to Business, Engineering &amp;amp; Science. Accepted.  [http://www.mmm.ucar.edu/people/coen/files/Coen_Douglas_final.pdf preprint] &lt;br /&gt;
&lt;br /&gt;
* Jan Mandel and Jonathan D. Beezley, [http://dx.doi.org/10.1007/978-3-642-01973-9_53 &#039;&#039;&#039;An Ensemble Kalman-Particle Predictor-Corrector Filter for Non-Gaussian Data Assimilation&#039;&#039;&#039;], Proceedings ICCS 2009, Lecture Notes in Computer Science 5545, Springer, 2009, pp. 470-478. Also available at {{arXiv|0812.2290}}.&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, &#039;&#039;&#039;Some new basics of fire behavior&#039;&#039;&#039;, Fire Management Today, In Press. [http://www.mmm.ucar.edu/people/coen/files/Coen_FMT_complete.pdf pdf]&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, 2010: &#039;&#039;&#039;Dry lightning&#039;&#039;&#039;. Southern California Fire Journal, Spring 2010, 18-23. &lt;br /&gt;
&lt;br /&gt;
* Zhen Wang, Janice Coen, Anthony Vodacek, 2009, [http://www.mmm.ucar.edu/people/coen/files/Wang_18_302-309.pdf &#039;&#039;&#039;Generation of synthetic infrared remote sensing scenes of wildland fire&#039;&#039;&#039;].  Intl. J. Wildland Fire, 18, 302-319. &lt;br /&gt;
&lt;br /&gt;
* Craig J. Johns and Jan Mandel, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/cjjm-fires-revised.pdf &#039;&#039;&#039;A two-stage Ensemble Kalman Filter for Smooth Data Assimilation&#039;&#039;&#039;], Environmental and Ecological Statistics 15, 101-110, 2008&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, 2008: Deadly fingers of flame. Southern California Fire Journal. 1(1):5-6.&lt;br /&gt;
&lt;br /&gt;
* Jonathan D. Beezley and Jan Mandel, &#039;&#039;&#039;Morphing Ensemble Kalman Filters&#039;&#039;&#039;, Tellus 60A, 131-140, 2008 [http://arxiv.org/abs/0705.3693 arXiv:0705.3693]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Lynn S. Bennethum, Jonathan D. Beezley, Janice L. Coen, Craig C. Douglas, Minjeong Kim, and Anthony Vodacek, [http://www-math.cudenver.edu/ccm/reports/rep233.pdf &#039;&#039;&#039;A wildland fire model with data assimilation&#039;&#039;&#039;], Mathematics and Computers in Simulation 79, 584-606, 2008, [http://dx.doi.org/10.1016/j.matcom.2008.03.015 article], [http://math.ucdenver.edu/%7Ejmandel/papers/rep233.pdf CCM Report 233 June 2006 revised January 2008]&lt;br /&gt;
&lt;br /&gt;
* K. Potter, R.M. Kirby, D. Xiu, C.R. Johnson. [http://www.dl.begellhouse.com/journals/52034eb04b657aea,43e225911b944538,47df428f4bae4afa.html&#039;&#039;&#039;Interactive visualization of probability and cumulative density functions,&#039;&#039;&#039;] In International Journal of Uncertainty Quantification, pp. (to appear). 2012.&lt;br /&gt;
&lt;br /&gt;
* K. Potter, P. Rosen, C. Johnson, [http://www.springerlink.com/content/l2307671664n2237/ &#039;&#039;&#039;From Quantification to Visualization: A Taxonomy of Uncertainty Visualization Approaches&#039;&#039;&#039;]. IFIP Advances in Information and Communication Technology, vol. 377, pp. 226-249, 2012.&lt;br /&gt;
&lt;br /&gt;
* Paul Rosen. [http://dl.acm.org/citation.cfm?id=2159641 &#039;&#039;&#039;Rectilinear texture warping for fast adaptive shadow mapping&#039;&#039;&#039;]. In Proceedings of the ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games (I3D &#039;12), pp. 151-158, 2012.&lt;br /&gt;
&lt;br /&gt;
* P. Rosen and V. Popescu. [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6060816 &#039;&#039;&#039;Simplification of node position data for interactive visualization of dynamic datasets&#039;&#039;&#039;]. IEEE Transactions on Visualization and Computer Graphics, pp. 1537-1548, 2012.&lt;br /&gt;
&lt;br /&gt;
* P. Rosen, V. Popescu, K. Hayward, and C. Wyman. [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=5733331 &#039;&#039;&#039;Non-pinhole approximations for interactive rendering&#039;&#039;&#039;]. IEEE Computer Graphics and Applications, 31(6), November/December 2011.&lt;br /&gt;
&lt;br /&gt;
* E. Santos, Lins, L Ahrens, J.P., Freire, J, and Silva, C. T., [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=5290771 &#039;&#039;&#039;VisMashup: Streamlining the Creation of Custom Visualization Applications&#039;&#039;&#039;],  IEEE Transactions on Visualizatiuon and Computer Graphics 15 (6) 1539-1546, 2009&lt;br /&gt;
&lt;br /&gt;
* P.C. Wong, H.-W. Shen, C.R. Johnson, C. Chen, R.B. Ross. [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6265057 &#039;&#039;&#039;The Top 10 Challenges in Extreme-Scale Visual Analytics,&#039;&#039;&#039;] In IEEE Computer Graphics and Applications, Visualization Viewpoints, Edited by Theresa-Marie Rhyne, pp. 63--67. July-August, 2012.&lt;br /&gt;
&lt;br /&gt;
* C. Yang, I. Jensen, P. Rosen. &#039;&#039;&#039;A Multiscale Approach to Network Event Identification using Geolocated Twitter Data&#039;&#039;&#039;. In submission to IMC Workshop on Internet Visualization, 2012.&lt;br /&gt;
&lt;br /&gt;
==Earlier publications (before 2008)==&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;Here are some related publications and presentations from our previous work.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, [http://www.cise.nsf.gov/cns/darema/dd_das/coen/ &#039;&#039;&#039;Coupled Atmosphere-Wildfire Modeling&#039;&#039;&#039;], NSF Workshop, April 25, 2000&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel [http://math.ucdenver.edu/%7Ejmandel/papers/rep231.pdf &#039;&#039;&#039;Efficient Implementation of the Ensemble Kalman Filter&#039;&#039;&#039;], CCM Report 231, May 2006.&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel and Jonathan D. Beezley, [http://math.ucdenver.edu/~jmandel/papers/ametsoc07.pdf &#039;&#039;&#039;Predictor-Corrector and Morphing Ensemble Filters for the Assimilation of Sparse Data into High-Dimensional Nonlinear Systems&#039;&#039;&#039;], 11th Symposium on Integrated Observing and Assimilation Systems for the Atmosphere, Oceans, and Land Surface (IOAS-AOLS), CD-ROM, [http://ams.confex.com/ams/87ANNUAL/techprogram/paper_119633.htm Paper 4.12], 87th American Meterological Society Annual Meeting, San Antonio, TX, January 2007 [http://math.ucdenver.edu/~jmandel/slides/ametsoc07-jm.pdf presentation], [http://www-math.cudenver.edu/ccm/reports/rep239.pdf CCM Report 239, November 2006]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Lynn S. Bennethum, Soham Chakraborty, Janice L. Coen, Craig C. Douglas, Jay Hatcher, Minjeong Kim, and Anthony Vodacek, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/iccs07-paper.pdf &#039;&#039;&#039;A Dynamic Data Driven Wildland Fire Model&#039;&#039;&#039;], ICCS 2007, Part I, Yong Shi, G. D. van Albada, P. M. A. Sloot and J. J. Dongarra (Eds), Lecture Notes in Computer Science 4487, 1042--1049, Springer, 2007. [http://math.ucdenver.edu/%7Ejmandel/fires/papers/iccs07-slides.pdf Presentation]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Lynn S. Bennethum, Mingshi Chen, Janice L. Coen, Craig C. Douglas, Leopoldo P. Franca, Craig J. Johns, Minjeong Kim, Andrew V. Knyazev, Robert Kremens, Vaibhav Kulkarni, Guan Qin, Anthony Vodacek, Jianjia Wu, Wei Zhao, and Adam Zornes, [http://math.ucdenver.edu/~jmandel/papers/fires-iccs05.pdf &#039;&#039;&#039;Towards a Dynamic Data Driven Application System for Wildfire Simulation&#039;&#039;&#039;] V.S. Sunderam et al. (Eds.): Computational Science - Proceedings ICCS&#039;2005, Lecture Notes in Computer Science 3515, pp. 632-639, 2005.&lt;br /&gt;
&lt;br /&gt;
* Craig C. Douglas, Jonathan D. Beezley, Janice Coen, Deng Li, Wei Li, Alan K. Mandel, Jan Mandel, Guan Qin, and Anthony Vodacek, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/wf-demo.pdf &#039;&#039;&#039;Demonstrating the Validity of Wildfire DDDAS&#039;&#039;&#039;], Computational Science - ICCS 2006: 6th International Conference, Reading, UK, May 28-31, 2006, Proceedings, Part III, Vassil N. Alexandrov, Dick van Albada, Dick Geert and Peter M. A. Sloot and Jack Dongarra (Eds.), Lecture Notes in Computer Science 3993, Springer 2006, pp. 522-529.&lt;br /&gt;
&lt;br /&gt;
* J. Mandel, M. Chen, L.P. Franca, C. Johns, A. Puhalskii, J.L. Coen, C.C. Douglas, R. Kremens, A. Vodacek, W. Zhao, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/fires_krakow.pdf &#039;&#039;&#039;A Note on Dynamic Data Driven Wildfire Modeling&#039;&#039;&#039;], Computational Science - Proceedings ICCS&#039;2004, vol. III, edited by Marian Bubak, G.Dick van Albada, Peter M.A. Sloot, Jack J. Dongarra, Lecture Notes in Computer Science 3038, Springer, pp. 725-731. Copyright Springer 2004. [http://dx.doi.org/10.1007/b97989 book], [http://math.ucdenver.edu/%7Ejmandel/papers/fires_krakow.pdf PDF 150K]&lt;br /&gt;
&lt;br /&gt;
* Edward G. Patton and Janice L. Coen, [http://www.mmm.ucar.edu/mm5/workshop/ws04/Session9/Patton_Edward.pdf WRF-Fire: A Coupled Atmosphere-Fire Module for WRF], Preprints of Joint MM5/Weather Research and Forecasting Model Users&#039; Workshop, Boulder, CO, June 22-25, 2004, pp. 221-223, NCAR.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{ccm|Spatial_epidemiology_project#Publications|Spatial epidemiology publications}}&lt;br /&gt;
* {{ccm|Data_assimilation_seminar_publications|Data assimilation seminar publications}}&lt;br /&gt;
[[Category:WRF-Fire|Publications]]&lt;br /&gt;
[[Category:Contents]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:Corscia_Numerical_Wildfires_2013_4Web.pdf&amp;diff=2783</id>
		<title>File:Corscia Numerical Wildfires 2013 4Web.pdf</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:Corscia_Numerical_Wildfires_2013_4Web.pdf&amp;diff=2783"/>
		<updated>2013-09-09T18:14:40Z</updated>

		<summary type="html">&lt;p&gt;Adamko: Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, Martin Vejmelka, Forecasting of smoke and wildfire emissions using WRF-Sfire, Numerical Wildfires, Cargese, Corsica, 17th May 2013.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, Martin Vejmelka, Forecasting of smoke and wildfire emissions using WRF-Sfire, Numerical Wildfires, Cargese, Corsica, 17th May 2013.&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=Publications&amp;diff=2719</id>
		<title>Publications</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=Publications&amp;diff=2719"/>
		<updated>2013-03-15T17:42:14Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Conference papers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{users guide}}&lt;br /&gt;
&lt;br /&gt;
==WRF-Fire description==&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;The [[WRF-Fire]] code is described in these papers.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Journal papers===&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, and Adam K. Kochanski, [http://www.geosci-model-dev.net/4/591/2011/gmd-4-591-2011.html &#039;&#039;&#039;Coupled atmosphere-wildland fire modeling with WRF 3.3 and SFIRE 2011&#039;&#039;&#039;], [http://www.geoscientific-model-development.net Geoscientific Model Development (GMD)] 4, 591-610, 2011. {{doi|10.5194/gmd-4-591-2011}}&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Janice L. Coen, and Minjeong Kim, &#039;&#039;&#039;Data Assimilation for Wildland Fires: Ensemble Kalman filters in coupled atmosphere-surface models&#039;&#039;&#039;, IEEE Control Systems Magazine 29, Issue 3, June 2009, 47-65.  {{doi|10.1109/MCS.2009.932224}}. Preprint available as {{arXiv|0712.3965}}.&lt;br /&gt;
&lt;br /&gt;
* Coen, J., M. Cameron, J. Michalakes,  E. Patton, P. Riggan, and K. Yedinak,  2012: WRF-Fire: &#039;&#039;&#039;Coupled Weather-Wildland Fire Modeling with the Weather Research and Forecasting Model&#039;&#039;&#039;. J. Appl. Meteor. Climatol. {{doi|10.1175/JAMC-D-12-023.1}}, in press.&lt;br /&gt;
&lt;br /&gt;
===Conference papers===&lt;br /&gt;
*Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, Craig B. Clements,&amp;quot;&#039;&#039;&#039;Air pollution forecasting by coupled atmosphere-fire model WRF and SFIRE with WRF-Chem&#039;&#039;&#039;&amp;quot;, [http://www.iawfonline.org/2013FuelsConference/index.php 4th Fire Behavior and Fuels Conference Raleigh, North Carolina, USA February 18 - 22, 2013], [http://www.openwfm.org/wiki/File:WRF-Chemcouplingabstract.pdf abstract] [http://www.openwfm.org/wiki/File:FAFB_conference_2013_final.pdf presentation] &lt;br /&gt;
&lt;br /&gt;
*Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, Craig B. Clements, [https://ams.confex.com/ams/93Annual/webprogram/Paper221879.html &#039;&amp;quot;&#039;&#039;&#039;Wildland fire emission forecasting by coupled atmosphere-fire model WRF-SFIRE and WRF-Chem&#039;&#039;&#039;&amp;quot;&#039;] [http://annual.ametsoc.org/2013 93rd AMS Annual Meeting, 6-10 January 2013, Austin, TX] &lt;br /&gt;
&lt;br /&gt;
* Jonathan Beezley, Mavin Martin, Paul Rosen, Jan Mandel, Adam K. Kochanski, &#039;&#039;&#039;Data management and analysis with WRF and SFIRE&#039;&#039;&#039;, Geoscience and Remote Sensing Symposium (IGARSS) 2012, 5274-5277, 2012 {{doi|10.1109/IGARSS.2012.6352419}} {{arXiv|1208.1061}} [http://www.igarss12.org/papers/ViewPapers_MS.asp?PaperNum=4033 abstract]&lt;br /&gt;
&lt;br /&gt;
* Adam K. Kochanski, Jonathan D. Beezley, Jan Mandel, and Minjeong Kim, &#039;&#039;&#039;WRF fire simulation coupled with a fuel moisture model and smoke transport by WRF-Chem&#039;&#039;&#039;, [http://www.mmm.ucar.edu/events/2012_wrfusers/ 2012 WRF Users Workshop], [http://www.openwfm.org/wiki/File:WRF_workshop_2012_poster.pdf Poster 51] [http://www.mmm.ucar.edu/events/2012_wrfusers/abstracts/p51.htm abstract] [https://www.regonline.com/AttendeeDocuments/1077122/43365086/wrf2012.pdf paper] {{arXiv|1208.1059}}&lt;br /&gt;
&lt;br /&gt;
* Jonathan D. Beezley, A. Kochanski, V. Y. Kondratenko, and J. Mandel, [http://ams.confex.com/ams/9FIRE/webprogram/Paper192276.html &#039;&#039;&#039;Integrating high-resolution static data into WRF for real fire simulations&#039;&#039;&#039;], [http://www.ametsoc.org/meet/fainst/20119fireforest.html Ninth Symposium on Fire and Forest Meteorology], Palm Springs, CA, October 18-20, 2011&lt;br /&gt;
&lt;br /&gt;
* P. Mates, E. Santos, J. Freire and C. Silva. [http://www.springerlink.com/content/v1w10731107216t3/ &#039;&#039;&#039;CrowdLabs: Social Analysis and Visualization for the Sciences&#039;&#039;&#039;] In proceedings of the 23rd International Conference on Scientific and Statistical Database Management (SSDBM), LNCS 6809/2011, pp. 555-564, 2011.&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, University of Colorado, Denver, CO; and J. D. Beezley, A. Kochanski, V. Y. Kondratenko, L. Zhang, E. Anderson, J. Daniels II, C. T. Silva, and C. Johnson, [http://ams.confex.com/ams/9FIRE/webprogram/Paper192277.html &#039;&#039;&#039;A wildland fire modeling and visualization environment&#039;&#039;&#039;], [http://www.ametsoc.org/meet/fainst/20119fireforest.html Ninth Symposium on Fire and Forest Meteorology], Palm Springs, CA, October 18-20, 2011 [[media:9fire_2011_jm.pdf|pdf]]&lt;br /&gt;
&lt;br /&gt;
* Jonathan D.  Beezley, &#039;&#039;&#039;Importing high-resolution datasets into Geogrid&#039;&#039;&#039;, 12th Annual WRF User&#039;s Workshop, Boulder, CO, June 2011. [http://www.mmm.ucar.edu/wrf/users/workshops/WS2011/Extended%20Abstracts%202011/P2_Beezley_ExtendedAbstract_11.pdf pdf] [http://www.openwfm.org/wiki/File:Wrf2011jb.pdf  local copy] [http://www.openwfm.org/wiki/File:Wrf2011jb-Poster.pdf poster]&lt;br /&gt;
&lt;br /&gt;
===Users&#039; guides===&lt;br /&gt;
&lt;br /&gt;
* Current: [[Coupled WRF and SFIRE model user&#039;s guide]] on [[Main_Page|this wiki]]&lt;br /&gt;
&lt;br /&gt;
* For the [[Fire_code_in_WRF_release#WRF_3.3|earlier version]] included in WRF release: Wang, W., Bruyere, C., Duda, M., Dudhia, J., Gill, D., Lin, H.C., Michalakes, J., Rizvi, S., Zhang, X., Beezley, J.D., Coen, J.L., Mandel, J. &#039;&#039;&#039;[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3/ARWUsersGuideV3.pdf ARW version 3 modeling system user’s guide]&#039;&#039;&#039;. Mesoscale &amp;amp; Miscroscale Meteorology Division, National Center for Atmospheric Research (July 2010, last updated January 2012)&lt;br /&gt;
&lt;br /&gt;
==Other WRF-Fire publications, applications, case studies==&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;These publications deal with various aspects related to WRF-Fire, or report on its use and specific simulations.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Journal papers===&lt;br /&gt;
&lt;br /&gt;
* Adam K. Kochanski, Mary Ann Jenkins, Steven K. Krueger, Jan Mandel, Jonathan D. Beezley, &#039;&#039;&#039;Real time simulation of 2007 Santa Ana fires&#039;&#039;&#039;, Forest Ecology and Management, in print. {{arXiv|1202.3209}}, 2012&lt;br /&gt;
&lt;br /&gt;
* Adam K. Kochanski, Mary Ann Jenkins, Jan Mandel, Jonathan D. Beezley, Craig B. Clements, Steven Krueger, [http://www.geosci-model-dev-discuss.net/6/121/2013/gmdd-6-121-2013.html &#039;&#039;&#039;Evaluation of WRF-Sfire Performance with Field Observations from the FireFlux experiment&#039;&#039;&#039;], Geosci. Model Dev. Discuss., 6, 121-169, 2013 {{doi|10.5194/gmdd-6-121-2013}}  {{arXiv|1206.3345}}&lt;br /&gt;
&lt;br /&gt;
===Theses===&lt;br /&gt;
&lt;br /&gt;
* Nina Dobrinkova, &#039;&#039;&#039;Information systems for simulating the behavior of forest and field fires&#039;&#039;&#039;, PhD Thesis, Bulgarian Academy of Sciences, 2012&lt;br /&gt;
&lt;br /&gt;
* Minjeong Kim, [http://www.ucdenver.edu/academics/colleges/CLAS/Departments/math/students/alumni/Documents/Student%20Theses/Kim-Minjeong-PhdThesis.pdf &#039;&#039;&#039;Reaction diffusion equations and numerical wildland fire models&#039;&#039;&#039;], PhD thesis, University of Colorado Denver, 2011&lt;br /&gt;
&lt;br /&gt;
* Jonathan D. Beezley, [http://www.ucdenver.edu/academics/colleges/CLAS/Departments/math/students/alumni/Documents/Student%20Theses/Beezley_PhDThesis.pdf &#039;&#039;&#039;High-Dimensional Data Assimilation and Morphing Ensemble Kalman Filters with Applications in Wildfire Modeling&#039;&#039;&#039;], PhD thesis, University of Colorado Denver, 2009&lt;br /&gt;
&lt;br /&gt;
=== Conference papers ===&lt;br /&gt;
* Nina Dobrinkova, Stefka Fidanova, Ivan Dimov, Krasimir Atanasov, and Jan Mandel, &#039;&#039;&#039;Game-Method Model And WRF-Fire Model Working Together&#039;&#039;&#039;, in Monte Carlo Methods and Applications, A. Sabelfeld and I. Dimov, eds., De Gruyter, Berlin, in print. &lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, J.D. Beezley, A. K. Kochanski, V. Y. Kondratenko, and M. Kim, &#039;&#039;&#039;Assimilation of Perimeter Data and Coupling with Fuel Moisture in a Wildland Fire - Atmosphere DDDAS&#039;&#039;&#039;, ICCS 2012, [http://dx.doi.org/10.1016/j.procs.2012.04.119 Procedia Computer Science 9, 2012, 1100-1109]&lt;br /&gt;
&lt;br /&gt;
* Mary Ann Jenkins,  A. K. Kochanski and S. K. Krueger, [http://ams.confex.com/ams/9FIRE/webprogram/Paper192313.html &#039;&#039;&#039;The fluid dynamics of steady-state fireline propagation&#039;&#039;&#039;], [http://ams.confex.com/ams/9FIRE/webprogram/9FIRE.html Ninth Symposium on Fire and Forest Meteorology], Palm Springs, CA, October 18-20,  2011 &lt;br /&gt;
&lt;br /&gt;
* Mika Peace, T. Mattner and G. Mills, [http://ams.confex.com/ams/9FIRE/webprogram/Paper192200.html &#039;&#039;&#039;The Kangaroo Island bushfires of 2007 A meteorological case study and WRF-fire simulation&#039;&#039;&#039;], [http://ams.confex.com/ams/9FIRE/webprogram/9FIRE.html Ninth Symposium on Fire and Forest Meteorology], Palm Springs, CA, October 18-20, 2011 (Adelaide University/Bureau of Meteorology, Adelaide, SA, Australia)&lt;br /&gt;
&lt;br /&gt;
* Adam Kochanski, M. A. Jenkins, S. K. Krueger, J. Mandel, J. D. Beezley, and C. B. Clements, [http://ams.confex.com/ams/9FIRE/webprogram/Paper192314.html &#039;&#039;&#039;Coupled atmosphere-fire simulations of the FireFlux experiment: Impacts of model resolution on its performance&#039;&#039;&#039;], [http://www.ametsoc.org/meet/fainst/20119fireforest.html Ninth Symposium on Fire and Forest Meteorology], Palm Springs, CA, October 18-20, 2011&lt;br /&gt;
&lt;br /&gt;
* Georgi Jordanov, Jonathan D. Beezley, Nina Dobrinkova, Adam K. Kochanski, Jan Mandel, Bedr(ich Sousedík, &#039;&#039;&#039;Simulation of the 2009 Harmanli fire (Bulgaria)&#039;&#039;&#039;,  [http://dx.doi.org/10.1007/978-3-642-29843-1_33 Lecture Notes in Computer Science 7116, 291-298, 2012]  [http://parallel.bas.bg/Conferences/SciCom11.html 8th International Conference on Large-Scale Scientific Computations], June 6-10, 2011, Sozopol, Bulgaria. {{arXiv|1106.4736}}&lt;br /&gt;
&lt;br /&gt;
* Kondratenko, Volodymyr Y., Jonathan D. Beezley, Adam K. Kochanski, and Jan Mandel, &#039;&#039;&#039;Ignition from a Fire Perimeter in a WRF Wildland Fire Model&#039;&#039;&#039;, 12th Annual WRF User&#039;s Workshop, Boulder, CO, June 2011. [http://www.mmm.ucar.edu/wrf/users/workshops/WS2011/Extended%20Abstracts%202011/9_6_Kondratenko_ExtendedAbstract_11.pdf pdf] {{arXiv|1107.2675}} [http://www.openwfm.org/wiki/File:Wrf2011_VK-slides.pdf presentation]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan Beezley, and Adam Kochanski, [http://ams.confex.com/ams/91Annual/webprogram/Paper185887.html &#039;&#039;&#039;An overview of the coupled atmosphere-wildland fire model WRF-Fire&#039;&#039;&#039;], [http://ams.confex.com/ams/91Annual/webprogram/start.html 91st American Meteorological Society Annual Meeting], Seattle, WA, January 25, 2011. &lt;br /&gt;
&lt;br /&gt;
* Nina Dobrinkova, Georgi Jordanov, and Jan Mandel, &#039;&#039;&#039;WRF-Fire Applied in Bulgaria&#039;&#039;&#039;, Numerical Methods and Applications, I. Dimov, S. Dimova, and N. Kolkovska, eds., Lecture Notes in Computer Science 6046, Springer, Berlin/Heidelberg, 2011, pp. 133-140. Proceedings of 7th International Conference on Numerical Methods and Applications - NM&amp;amp;A&#039;10, August 20 - 24, 2010, Borovets, Bulgaria. {{doi|10.1007/978-3-642-18466-6_15}}. Preprint {{arXiv|1007.5347}}, July 2010.&lt;br /&gt;
&lt;br /&gt;
* Janice L. Coen and Craig C. Douglas, &#039;&#039;&#039;Computational Modeling of Large Wildfires: A Roadmap.&#039;&#039;&#039;, 9th International Symposium on Distributed Computing and Applications to Business, Engineering &amp;amp; Science. Accepted.  [http://www.mmm.ucar.edu/people/coen/files/Coen_Douglas_final.pdf preprint] &lt;br /&gt;
&lt;br /&gt;
*Jan Mandel, Jonathan D. Beezley, and Volodymyr Y. Kondratenko, &#039;&#039;&#039;Fast Fourier Transform Ensemble Kalman Filter with Application to a Coupled Atmosphere-Wildland Fire Model&#039;&#039;&#039;. Anna M. Gil-Lafuente, Jose M. Merigo (Eds.) [http://www.worldscibooks.com/compsci/7925.html Computational Intelligence in Business and Economics] (Proceedings of the [http://www.amse-modeling.com/ms10/ MS&#039;10 International Conference], Barcelona, Spain, 15-17 July 2010), World Scientific,  pp. 777-784. {{doi|10.1142/9789814324441_0089}}. Preprint available at {{arXiv|1001.1588}}.&lt;br /&gt;
&lt;br /&gt;
===Posters===&lt;br /&gt;
&lt;br /&gt;
* Adam K. Kochanski, S. K. Krueger , M. A. Jenkins, J. Mandel and J. D. Beezley, &#039;&#039;&#039;Real time simulation of 2007 Santa Ana fires&#039;&#039;&#039;, [http://www.megafirereality.com/ Exploring the Mega-fire Reality] 2011.&lt;br /&gt;
&lt;br /&gt;
* M. Jenkins, A. Kochanski, S. K. Krueger, W. Mell, R. McDermott, [http://adsabs.harvard.edu/abs/2010AGUFMNH34A..08J &#039;&#039;&#039;The Fluid Dynamical Forces Involved in Grass Fire Propagation&#039;&#039;&#039;], AGU Fall Meeting, 2010 [[media:AGU.2010.poster.jenkins.etal.pdf|pdf]]&lt;br /&gt;
&lt;br /&gt;
* J. D. Beezley, A. Kochanski, V. Y. Kondratenko, J. Mandel, B. Sousedik, [[media:agu10_jb.pdf|&#039;&#039;&#039;Simulation of the Meadow Creek fire using WRF-Fire&#039;&#039;&#039;]], AGU Fall Meeting, 2010&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Adam K. Kochanski, Volodymyr Y. Kondratenko, Bedrich Sousedik, Erik Anderson, and Joel Daniels, [[media:agu10_jm.pdf|&#039;&#039;&#039;Wildland fire simulation by WRF-Fire&#039;&#039;&#039;]],  AGU Fall Meeting, 2010&lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, Brian Lamb, Janice Coen, &#039;&#039;&#039;[http://adsabs.harvard.edu/abs/2009AGUFM.A43C0246Y Sensitivity Analysis and Application of WRF-Fire]&#039;&#039;&#039;, AGU Fall Meeting, 2009. &lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, Brian Lamb, Janice Coen, &#039;&#039;&#039;Sensitivity Analyses of Ignition Area and Fire-Atmosphere Dynamics using WRF-FIRE&#039;&#039;&#039;, 8th Symposium on Fire &amp;amp; Forest Meteorology, American Meteorological Society, Kalispell. Oct 13-15, 2009. &lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, J. L. Coen, and B. Lamb, &#039;&#039;&#039;WRF-Fire: A fire-atmosphere dynamics module for air quality modeling&#039;&#039;&#039;, [http://ams.confex.com/ams/89annual/techprogram/MEETING.HTM The 89th American Meteorological Society Annual Meeting (Phoenix, AZ)], [http://ams.confex.com/ams/89annual/techprogram/program_532.htm 11th Conference on Atmospheric Chemistry], [http://ams.confex.com/ams/89annual/techprogram/paper_150173.htm Poster JP 1.10], January 2009.&lt;br /&gt;
&lt;br /&gt;
=== Presentations ===&lt;br /&gt;
&lt;br /&gt;
* Colin Simpson, Andrew Sturman and Peyman Zawar- Reza [http://www.mmm.ucar.edu/wrf/users/workshops/WS2011/Power%20Points%202011/9_5_Simpson_WRFWorkshop_11.pdf &#039;&#039;&#039;Numerical Modeling of Wildland Fire Behaviour under Foehn Winds in New Zealand&#039;&#039;&#039;], [http://www.mmm.ucar.edu/wrf/users/workshops/WS2011/WorkshopPapers.php 12th Annual WRF Users&#039; Workshop], 2011 (University of Canterbury, New Zealand)&lt;br /&gt;
* Simpson, C.; Sturman, A.; Zawar-Reza, P., [http://adsabs.harvard.edu/abs/2010AGUFMNH34A..07S &#039;&#039;&#039;Numerical Modelling of Fire-Atmosphere Interactions and the 2003 Canberra Bushfires&#039;&#039;&#039;], American Geophysical Union, Fall Meeting 2010, abstract #NH34A-07, 2010&lt;br /&gt;
*  A. Kochanski, M. Jenkins, S. K. Krueger, J. Mandel, J. D. Beezley, C. B. Clements, &#039;&#039;&#039;Evaluation of The Fire Plume Dynamics Simulated by WRF-Fire&#039;&#039;&#039;, AGU Fall Meeting, 2010 [[media:AGU.2010.kochanski.key.pdf|pdf]] [[media:AGU.2010.kochanski.key.gz|key]]&lt;br /&gt;
* J. Mandel, [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/abstracts.html#10318 &#039;&#039;&#039;Coupled atmosphere-wildland fire simulation by WRF-Fire&#039;&#039;&#039;], Invited lecture at [http://www.ima.umn.edu/ IMA] Workshop [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/ Numerical Solutions of Partial Differential Equations: Fast Solution Techniques], December 2, 2010. [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/activities/Mandel-Jan/ima10.key.pdf pdf] {{daseminar|slides/ima10/ima10.key.zip|key}} [http://www.ima.umn.edu/videos/?id=1507 video]&lt;br /&gt;
* Janice Coen, &#039;&#039;&#039;Computational Modeling of Wildland Fire Behavior and Weather for Research and Forecasting&#039;&#039;&#039;, keynote lecture at ICCS 2009 [http://www.science.uva.nl/sites/iccs-meeting/iccs2009/abs-Coen.html abstract]&lt;br /&gt;
&lt;br /&gt;
==Other publications from this project==&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;Here are publications and presentations, not dealing directly with the WRF-Fire code.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* N. Andrysco, P. Rosen, V. Popescu, B. Benes, and K.R. Gurney. [http://www.springerlink.com/content/j80q8736t460p785/ &#039;&#039;&#039;Experiences in disseminating educational visualizations&#039;&#039;&#039;]. In Lecture Notes in Computer Science (7th International Symposium on Visual Computing), volume 2, pages 239–248, September 2011.&lt;br /&gt;
&lt;br /&gt;
* Jonathan D. Beezley, Jan Mandel, and Loren Cobb, [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6072819 &#039;&#039;&#039;Wavelet Ensemble Kalman Filters&#039;&#039;&#039;], Proceedings of the 6th IEEE International Conference on Intelligent Data Acquisition and Advanced Computing Systems: Technology and Applications (IDAACS&#039;2011), Prague, September 15-17, 2011, 514-518, 2011&lt;br /&gt;
&lt;br /&gt;
* A.N.M.I. Choudhury, B. Wang, P. Rosen, V. Pascucci. [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6183557 &#039;&#039;&#039;Topological analysis and visualization of cyclical behavior in memory reference traces&#039;&#039;&#039;]. IEEE  Pacific Visualization Symposium (PacificVis), pp. 9-16, 2012.&lt;br /&gt;
&lt;br /&gt;
* A.N.M. I. Choudhury and P. Rosen. &#039;&#039;&#039;Cache ensemble analysis for understanding algorithmic memory performance&#039;&#039;&#039;. In submission to IEEE Computer, 2012.&lt;br /&gt;
&lt;br /&gt;
* A.N.M. Imroz Choudhury and P. Rosen. [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6069452 &#039;&#039;&#039;Abstract visualization of runtime memory behavior&#039;&#039;&#039;]. In 6th IEEE International Workshop on Visualizing Software for Understanding and Analysis (VISSOFT 2011), pages 22–29, 2011.&lt;br /&gt;
&lt;br /&gt;
* Janice L. Coen and Craig C. Douglas, &#039;&#039;&#039;Computational Modeling of Large Wildfires: A Roadmap.&#039;&#039;&#039;, 9th International Symposium on Distributed Computing and Applications to Business, Engineering &amp;amp; Science. Accepted.  [http://www.mmm.ucar.edu/people/coen/files/Coen_Douglas_final.pdf preprint] &lt;br /&gt;
&lt;br /&gt;
* Jan Mandel and Jonathan D. Beezley, [http://dx.doi.org/10.1007/978-3-642-01973-9_53 &#039;&#039;&#039;An Ensemble Kalman-Particle Predictor-Corrector Filter for Non-Gaussian Data Assimilation&#039;&#039;&#039;], Proceedings ICCS 2009, Lecture Notes in Computer Science 5545, Springer, 2009, pp. 470-478. Also available at {{arXiv|0812.2290}}.&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, &#039;&#039;&#039;Some new basics of fire behavior&#039;&#039;&#039;, Fire Management Today, In Press. [http://www.mmm.ucar.edu/people/coen/files/Coen_FMT_complete.pdf pdf]&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, 2010: &#039;&#039;&#039;Dry lightning&#039;&#039;&#039;. Southern California Fire Journal, Spring 2010, 18-23. &lt;br /&gt;
&lt;br /&gt;
* Zhen Wang, Janice Coen, Anthony Vodacek, 2009, [http://www.mmm.ucar.edu/people/coen/files/Wang_18_302-309.pdf &#039;&#039;&#039;Generation of synthetic infrared remote sensing scenes of wildland fire&#039;&#039;&#039;].  Intl. J. Wildland Fire, 18, 302-319. &lt;br /&gt;
&lt;br /&gt;
* Craig J. Johns and Jan Mandel, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/cjjm-fires-revised.pdf &#039;&#039;&#039;A two-stage Ensemble Kalman Filter for Smooth Data Assimilation&#039;&#039;&#039;], Environmental and Ecological Statistics 15, 101-110, 2008&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, 2008: Deadly fingers of flame. Southern California Fire Journal. 1(1):5-6.&lt;br /&gt;
&lt;br /&gt;
* Jonathan D. Beezley and Jan Mandel, &#039;&#039;&#039;Morphing Ensemble Kalman Filters&#039;&#039;&#039;, Tellus 60A, 131-140, 2008 [http://arxiv.org/abs/0705.3693 arXiv:0705.3693]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Lynn S. Bennethum, Jonathan D. Beezley, Janice L. Coen, Craig C. Douglas, Minjeong Kim, and Anthony Vodacek, [http://www-math.cudenver.edu/ccm/reports/rep233.pdf &#039;&#039;&#039;A wildland fire model with data assimilation&#039;&#039;&#039;], Mathematics and Computers in Simulation 79, 584-606, 2008, [http://dx.doi.org/10.1016/j.matcom.2008.03.015 article], [http://math.ucdenver.edu/%7Ejmandel/papers/rep233.pdf CCM Report 233 June 2006 revised January 2008]&lt;br /&gt;
&lt;br /&gt;
* K. Potter, R.M. Kirby, D. Xiu, C.R. Johnson. [http://www.dl.begellhouse.com/journals/52034eb04b657aea,43e225911b944538,47df428f4bae4afa.html&#039;&#039;&#039;Interactive visualization of probability and cumulative density functions,&#039;&#039;&#039;] In International Journal of Uncertainty Quantification, pp. (to appear). 2012.&lt;br /&gt;
&lt;br /&gt;
* K. Potter, P. Rosen, C. Johnson, [http://www.springerlink.com/content/l2307671664n2237/ &#039;&#039;&#039;From Quantification to Visualization: A Taxonomy of Uncertainty Visualization Approaches&#039;&#039;&#039;]. IFIP Advances in Information and Communication Technology, vol. 377, pp. 226-249, 2012.&lt;br /&gt;
&lt;br /&gt;
* Paul Rosen. [http://dl.acm.org/citation.cfm?id=2159641 &#039;&#039;&#039;Rectilinear texture warping for fast adaptive shadow mapping&#039;&#039;&#039;]. In Proceedings of the ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games (I3D &#039;12), pp. 151-158, 2012.&lt;br /&gt;
&lt;br /&gt;
* P. Rosen and V. Popescu. [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6060816 &#039;&#039;&#039;Simplification of node position data for interactive visualization of dynamic datasets&#039;&#039;&#039;]. IEEE Transactions on Visualization and Computer Graphics, pp. 1537-1548, 2012.&lt;br /&gt;
&lt;br /&gt;
* P. Rosen, V. Popescu, K. Hayward, and C. Wyman. [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=5733331 &#039;&#039;&#039;Non-pinhole approximations for interactive rendering&#039;&#039;&#039;]. IEEE Computer Graphics and Applications, 31(6), November/December 2011.&lt;br /&gt;
&lt;br /&gt;
* E. Santos, Lins, L Ahrens, J.P., Freire, J, and Silva, C. T., [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=5290771 &#039;&#039;&#039;VisMashup: Streamlining the Creation of Custom Visualization Applications&#039;&#039;&#039;],  IEEE Transactions on Visualizatiuon and Computer Graphics 15 (6) 1539-1546, 2009&lt;br /&gt;
&lt;br /&gt;
* P.C. Wong, H.-W. Shen, C.R. Johnson, C. Chen, R.B. Ross. [http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6265057 &#039;&#039;&#039;The Top 10 Challenges in Extreme-Scale Visual Analytics,&#039;&#039;&#039;] In IEEE Computer Graphics and Applications, Visualization Viewpoints, Edited by Theresa-Marie Rhyne, pp. 63--67. July-August, 2012.&lt;br /&gt;
&lt;br /&gt;
* C. Yang, I. Jensen, P. Rosen. &#039;&#039;&#039;A Multiscale Approach to Network Event Identification using Geolocated Twitter Data&#039;&#039;&#039;. In submission to IMC Workshop on Internet Visualization, 2012.&lt;br /&gt;
&lt;br /&gt;
==Earlier publications (before 2008)==&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;Here are some related publications and presentations from our previous work.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, [http://www.cise.nsf.gov/cns/darema/dd_das/coen/ &#039;&#039;&#039;Coupled Atmosphere-Wildfire Modeling&#039;&#039;&#039;], NSF Workshop, April 25, 2000&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel [http://math.ucdenver.edu/%7Ejmandel/papers/rep231.pdf &#039;&#039;&#039;Efficient Implementation of the Ensemble Kalman Filter&#039;&#039;&#039;], CCM Report 231, May 2006.&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel and Jonathan D. Beezley, [http://math.ucdenver.edu/~jmandel/papers/ametsoc07.pdf &#039;&#039;&#039;Predictor-Corrector and Morphing Ensemble Filters for the Assimilation of Sparse Data into High-Dimensional Nonlinear Systems&#039;&#039;&#039;], 11th Symposium on Integrated Observing and Assimilation Systems for the Atmosphere, Oceans, and Land Surface (IOAS-AOLS), CD-ROM, [http://ams.confex.com/ams/87ANNUAL/techprogram/paper_119633.htm Paper 4.12], 87th American Meterological Society Annual Meeting, San Antonio, TX, January 2007 [http://math.ucdenver.edu/~jmandel/slides/ametsoc07-jm.pdf presentation], [http://www-math.cudenver.edu/ccm/reports/rep239.pdf CCM Report 239, November 2006]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Lynn S. Bennethum, Soham Chakraborty, Janice L. Coen, Craig C. Douglas, Jay Hatcher, Minjeong Kim, and Anthony Vodacek, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/iccs07-paper.pdf &#039;&#039;&#039;A Dynamic Data Driven Wildland Fire Model&#039;&#039;&#039;], ICCS 2007, Part I, Yong Shi, G. D. van Albada, P. M. A. Sloot and J. J. Dongarra (Eds), Lecture Notes in Computer Science 4487, 1042--1049, Springer, 2007. [http://math.ucdenver.edu/%7Ejmandel/fires/papers/iccs07-slides.pdf Presentation]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Lynn S. Bennethum, Mingshi Chen, Janice L. Coen, Craig C. Douglas, Leopoldo P. Franca, Craig J. Johns, Minjeong Kim, Andrew V. Knyazev, Robert Kremens, Vaibhav Kulkarni, Guan Qin, Anthony Vodacek, Jianjia Wu, Wei Zhao, and Adam Zornes, [http://math.ucdenver.edu/~jmandel/papers/fires-iccs05.pdf &#039;&#039;&#039;Towards a Dynamic Data Driven Application System for Wildfire Simulation&#039;&#039;&#039;] V.S. Sunderam et al. (Eds.): Computational Science - Proceedings ICCS&#039;2005, Lecture Notes in Computer Science 3515, pp. 632-639, 2005.&lt;br /&gt;
&lt;br /&gt;
* Craig C. Douglas, Jonathan D. Beezley, Janice Coen, Deng Li, Wei Li, Alan K. Mandel, Jan Mandel, Guan Qin, and Anthony Vodacek, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/wf-demo.pdf &#039;&#039;&#039;Demonstrating the Validity of Wildfire DDDAS&#039;&#039;&#039;], Computational Science - ICCS 2006: 6th International Conference, Reading, UK, May 28-31, 2006, Proceedings, Part III, Vassil N. Alexandrov, Dick van Albada, Dick Geert and Peter M. A. Sloot and Jack Dongarra (Eds.), Lecture Notes in Computer Science 3993, Springer 2006, pp. 522-529.&lt;br /&gt;
&lt;br /&gt;
* J. Mandel, M. Chen, L.P. Franca, C. Johns, A. Puhalskii, J.L. Coen, C.C. Douglas, R. Kremens, A. Vodacek, W. Zhao, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/fires_krakow.pdf &#039;&#039;&#039;A Note on Dynamic Data Driven Wildfire Modeling&#039;&#039;&#039;], Computational Science - Proceedings ICCS&#039;2004, vol. III, edited by Marian Bubak, G.Dick van Albada, Peter M.A. Sloot, Jack J. Dongarra, Lecture Notes in Computer Science 3038, Springer, pp. 725-731. Copyright Springer 2004. [http://dx.doi.org/10.1007/b97989 book], [http://math.ucdenver.edu/%7Ejmandel/papers/fires_krakow.pdf PDF 150K]&lt;br /&gt;
&lt;br /&gt;
* Edward G. Patton and Janice L. Coen, [http://www.mmm.ucar.edu/mm5/workshop/ws04/Session9/Patton_Edward.pdf WRF-Fire: A Coupled Atmosphere-Fire Module for WRF], Preprints of Joint MM5/Weather Research and Forecasting Model Users&#039; Workshop, Boulder, CO, June 22-25, 2004, pp. 221-223, NCAR.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{ccm|Spatial_epidemiology_project#Publications|Spatial epidemiology publications}}&lt;br /&gt;
* {{ccm|Data_assimilation_seminar_publications|Data assimilation seminar publications}}&lt;br /&gt;
[[Category:WRF-Fire|Publications]]&lt;br /&gt;
[[Category:Contents]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:FAFB_conference_2013_final.pdf&amp;diff=2718</id>
		<title>File:FAFB conference 2013 final.pdf</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:FAFB_conference_2013_final.pdf&amp;diff=2718"/>
		<updated>2013-03-15T17:40:32Z</updated>

		<summary type="html">&lt;p&gt;Adamko: 4th Fire Behavior and Fuels Conference presentation.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;4th Fire Behavior and Fuels Conference presentation.&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=File:WRF-Chemcouplingabstract.pdf&amp;diff=2717</id>
		<title>File:WRF-Chemcouplingabstract.pdf</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=File:WRF-Chemcouplingabstract.pdf&amp;diff=2717"/>
		<updated>2013-03-15T17:25:53Z</updated>

		<summary type="html">&lt;p&gt;Adamko: 4th Fire Behavior and Fuels Conference abstract: Air pollution forecasting by coupled atmosphere-fire model WRF and SFIRE with WRF-Chem&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;4th Fire Behavior and Fuels Conference abstract: Air pollution forecasting by coupled atmosphere-fire model WRF and SFIRE with WRF-Chem&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=Publications&amp;diff=2344</id>
		<title>Publications</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=Publications&amp;diff=2344"/>
		<updated>2011-12-05T17:52:38Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Posters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Journal articles ==&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, and Adam K. Kochanski, [http://www.geosci-model-dev-discuss.net/4/497/2011/gmdd-4-497-2011.html &#039;&#039;&#039;Coupled atmosphere-wildland fire modeling with WRF-Fire version 3.3&#039;&#039;&#039;], [http://www.geoscientific-model-development.net Geoscientific Model Development Discussions (GMDD)] 4, 497-545, 2011&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, &#039;&#039;&#039;Some new basics of fire behavior&#039;&#039;&#039;, Fire Management Today, In Press. [http://www.mmm.ucar.edu/people/coen/files/Coen_FMT_complete.pdf pdf]&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, 2010: &#039;&#039;&#039;Dry lightning&#039;&#039;&#039;. Southern California Fire Journal, Spring 2010, 18-23. &lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Janice L. Coen, and Minjeong Kim, &#039;&#039;&#039;Data Assimilation for Wildland Fires: Ensemble Kalman filters in coupled atmosphere-surface models&#039;&#039;&#039;, [http://dx.doi.org/10.1109/MCS.2009.932224 IEEE Control Systems Magazine 29, Issue 3, June 2009, 47-65] Also available as {{arXiv|0712.3965}}.&lt;br /&gt;
&lt;br /&gt;
* Zhen Wang, Janice Coen, Anthony Vodacek, 2009, [http://www.mmm.ucar.edu/people/coen/files/Wang_18_302-309.pdf &#039;&#039;&#039;Generation of synthetic infrared remote sensing scenes of wildland fire&#039;&#039;&#039;].  Intl. J. Wildland Fire, 18, 302-319. &lt;br /&gt;
&lt;br /&gt;
* Jan Mandel and Craig W. Johns, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/cjjm-fires-revised.pdf &#039;&#039;&#039;A two-stage Ensemble Kalman Filter for Smooth Data Assimilation&#039;&#039;&#039;], Environmental and Ecological Statistics 15, 101-110, 2008&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, 2008: Deadly fingers of flame. Southern California Fire Journal. 1(1):5-6.&lt;br /&gt;
&lt;br /&gt;
* Jonathan D. Beezley and Jan Mandel, &#039;&#039;&#039;Morphing Ensemble Kalman Filters&#039;&#039;&#039;, Tellus 60A, 131-140, 2008 [http://arxiv.org/abs/0705.3693 arXiv:0705.3693]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Lynn S. Bennethum, Jonathan D. Beezley, Janice L. Coen, Craig C. Douglas, Minjeong Kim, and Anthony Vodacek, [http://www-math.cudenver.edu/ccm/reports/rep233.pdf &#039;&#039;&#039;A wildland fire model with data assimilation&#039;&#039;&#039;], Mathematics and Computers in Simulation 79, 584-606, 2008, [http://dx.doi.org/10.1016/j.matcom.2008.03.015 article], [http://math.ucdenver.edu/%7Ejmandel/papers/rep233.pdf CCM Report 233 June 2006 revised January 2008]&lt;br /&gt;
&lt;br /&gt;
== Conference proceedings ==&lt;br /&gt;
&lt;br /&gt;
* Nina Dobrinkova, Georgi Jordanov, and Jan Mandel, &#039;&#039;&#039;WRF-Fire Applied in Bulgaria&#039;&#039;&#039;, Numerical Methods and Applications, I. Dimov, S. Dimova, and N. Kolkovska, eds., Lecture Notes in Computer Science 6046, Springer, Berlin/Heidelberg, 2011, pp. 133-140. Proceedings of 7th International Conference on Numerical Methods and Applications - NM&amp;amp;A&#039;10, August 20 - 24, 2010, Borovets, Bulgaria. {{doi|10.1007/978-3-642-18466-6_15}}. Preprint {{arXiv|1007.5347}}, July 2010.&lt;br /&gt;
&lt;br /&gt;
* Janice L. Coen and Craig C. Douglas, &#039;&#039;&#039;Computational Modeling of Large Wildfires: A Roadmap.&#039;&#039;&#039;, 9th International Symposium on Distributed Computing and Applications to Business, Engineering &amp;amp; Science. Accepted.  [http://www.mmm.ucar.edu/people/coen/files/Coen_Douglas_final.pdf preprint] &lt;br /&gt;
&lt;br /&gt;
* Jan Mandel and Jonathan D. Beezley, [http://dx.doi.org/10.1007/978-3-642-01973-9_53 &#039;&#039;&#039;An Ensemble Kalman-Particle Predictor-Corrector Filter for Non-Gaussian Data Assimilation&#039;&#039;&#039;], Proceedings ICCS 2009, Lecture Notes in Computer Science 5545, Springer, 2009, pp. 470-478. Also available at {{arXiv|0812.2290}}.&lt;br /&gt;
&lt;br /&gt;
*Jan Mandel, Jonathan D. Beezley, and Volodymyr Y. Kondratenko, &#039;&#039;&#039;Fast Fourier Transform Ensemble Kalman Filter with Application to a Coupled Atmosphere-Wildland Fire Model&#039;&#039;&#039;. Anna M. Gil-Lafuente, Jose M. Merigo (Eds.) [http://www.worldscibooks.com/compsci/7925.html Computational Intelligence in Business and Economics] (Proceedings of the [http://www.amse-modeling.com/ms10/ MS&#039;10 International Conference], Barcelona, Spain, 15-17 July 2010), World Scientific,  pp. 777-784. Also available at {{arXiv|1001.1588}}.&lt;br /&gt;
&lt;br /&gt;
==Posters==&lt;br /&gt;
* Adam K. Kochanski, S. K. Krueger , M. A. Jenkins, J. Mandel and J. D. Beezley, &#039;&#039;&#039;Real time simulation of 2007 Santa Ana fires&#039;&#039;&#039;, Exploring the Mega-fire Reality 2011.&lt;br /&gt;
&lt;br /&gt;
* M. Jenkins, A. Kochanski, S. K. Krueger, W. Mell, R. McDermott, [[media:AGU.2010.poster.jenkins.etal.pdf|&#039;&#039;&#039;The Fluid Dynamical Forces Involved in Grass Fire Propagation&#039;&#039;&#039;]], AGU Fall Meeting, 2010&lt;br /&gt;
&lt;br /&gt;
* J. D. Beezley, A. Kochanski, V. Y. Kondratenko, J. Mandel, B. Sousedik, [[media:agu10_jb.pdf|&#039;&#039;&#039;Simulation of the Meadow Creek ﬁre using WRF-Fire&#039;&#039;&#039;]], AGU Fall Meeting, 2010&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Adam K. Kochanski, Volodymyr Y. Kondratenko, Bedrich Sousedik, Erik Anderson, and Joel Daniels, [[media:agu10_jm.pdf|&#039;&#039;&#039;Wildland fire simulation by WRF-Fire&#039;&#039;&#039;]],  AGU Fall Meeting, 2010&lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, Brian Lamb, Janice Coen, &#039;&#039;&#039;Sensitivity Analysis and Application of WRF-Fire&#039;&#039;&#039;, AGU Fall Meeting, 2009. &lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, Brian Lamb, Janice Coen, &#039;&#039;&#039;Sensitivity Analyses of Ignition Area and Fire-Atmosphere Dynamics using WRF-FIRE&#039;&#039;&#039;, 8th Symposium on Fire &amp;amp; Forest Meteorology, American Meteorological Society, Kalispell. Oct 13-15, 2009. &lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, J. L. Coen, and B. Lamb, &#039;&#039;&#039;WRF-Fire: A fire-atmosphere dynamics module for air quality modeling&#039;&#039;&#039;, [http://ams.confex.com/ams/89annual/techprogram/MEETING.HTM The 89th American Meteorological Society Annual Meeting (Phoenix, AZ)], [http://ams.confex.com/ams/89annual/techprogram/program_532.htm 11th Conference on Atmospheric Chemistry], [http://ams.confex.com/ams/89annual/techprogram/paper_150173.htm Poster JP 1.10], January 2009.&lt;br /&gt;
&lt;br /&gt;
== Presentations ==&lt;br /&gt;
*  A. Kochanski, M. Jenkins, S. K. Krueger, J. Mandel, J. D. Beezley, C. B. Clements, &#039;&#039;&#039;Coupled atmosphere-fire simulations of the FireFlux experiment: Impacts of model resolution on its performance&#039;&#039;&#039;, AMS Ninth Symposium on Fire and Forest Meteorology, Palm Springs, Nov. 2011. [http://ams.confex.com/ams/9FIRE/webprogram/Manuscript/Paper192314/AMS_2011_Extended_abstract_final.pdf extended abstract]&lt;br /&gt;
&lt;br /&gt;
*  A. Kochanski, M. Jenkins, S. K. Krueger, J. Mandel, J. D. Beezley, C. B. Clements, &#039;&#039;&#039;Evaluation of The Fire Plume Dynamics Simulated by WRF-Fire&#039;&#039;&#039;, AGU Fall Meeting, 2010 [[media:AGU.2010.kochanski.key.pdf|pdf]] [[media:AGU.2010.kochanski.key.gz|key]]&lt;br /&gt;
* J. Mandel, &#039;&#039;&#039;Coupled atmosphere-wildland fire simulation by WRF-Fire&#039;&#039;&#039;, Invited lecture at [http://www.ima.umn.edu/ IMA] Workshop [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/ Numerical Solutions of Partial Differential Equations: Fast Solution Techniques], December 2, 2010. [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/abstracts.html#10318  abstract] [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/activities/Mandel-Jan/ima10.key.pdf pdf] {{daseminar|slides/ima10/ima10.key.zip|key}} [http://www.ima.umn.edu/videos/?id=1507 video]&lt;br /&gt;
* Janice Coen, &#039;&#039;&#039;Computational Modeling of Wildland Fire Behavior and Weather for Research and Forecasting&#039;&#039;&#039;, keynote lecture at ICCS 2009 [http://www.science.uva.nl/sites/iccs-meeting/iccs2009/abs-Coen.html abstract]&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
&lt;br /&gt;
* Wang, W., Bruyere, C., Duda, M., Dudhia, J., Gill, D., Lin, H.C., Michalakes, J., Rizvi, S., Zhang, X., Beezley, J.D., Coen, J.L., Mandel, J.: &#039;&#039;&#039;[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3/ARWUsersGuideV3.pdf ARW version 3 modeling system user’s guide]&#039;&#039;&#039;. Mesoscale &amp;amp; Miscroscale Meteorology Division, National Center for Atmospheric Research (July 2010)&lt;br /&gt;
&lt;br /&gt;
== Earlier publications and presentations (before 2008)==&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;Here are some related publications and presentations from our previous work.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, [http://www.cise.nsf.gov/cns/darema/dd_das/coen/ &#039;&#039;&#039;Coupled Atmosphere-Wildfire Modeling&#039;&#039;&#039;], NSF Workshop, April 25, 2000&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel [http://math.ucdenver.edu/%7Ejmandel/papers/rep231.pdf &#039;&#039;&#039;Efficient Implementation of the Ensemble Kalman Filter&#039;&#039;&#039;], CCM Report 231, May 2006.&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel and Jonathan D. Beezley, [http://math.ucdenver.edu/~jmandel/papers/ametsoc07.pdf &#039;&#039;&#039;Predictor-Corrector and Morphing Ensemble Filters for the Assimilation of Sparse Data into High-Dimensional Nonlinear Systems&#039;&#039;&#039;], 11th Symposium on Integrated Observing and Assimilation Systems for the Atmosphere, Oceans, and Land Surface (IOAS-AOLS), CD-ROM, [http://ams.confex.com/ams/87ANNUAL/techprogram/paper_119633.htm Paper 4.12], 87th American Meterological Society Annual Meeting, San Antonio, TX, January 2007 [http://math.ucdenver.edu/~jmandel/slides/ametsoc07-jm.pdf presentation], [http://www-math.cudenver.edu/ccm/reports/rep239.pdf CCM Report 239, November 2006]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Lynn S. Bennethum, Soham Chakraborty, Janice L. Coen, Craig C. Douglas, Jay Hatcher, Minjeong Kim, and Anthony Vodacek, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/iccs07-paper.pdf &#039;&#039;&#039;A Dynamic Data Driven Wildland Fire Model&#039;&#039;&#039;], ICCS 2007, Part I, Yong Shi, G. D. van Albada, P. M. A. Sloot and J. J. Dongarra (Eds), Lecture Notes in Computer Science 4487, 1042--1049, Springer, 2007. [http://math.ucdenver.edu/%7Ejmandel/fires/papers/iccs07-slides.pdf Presentation]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Lynn S. Bennethum, Mingshi Chen, Janice L. Coen, Craig C. Douglas, Leopoldo P. Franca, Craig J. Johns, Minjeong Kim, Andrew V. Knyazev, Robert Kremens, Vaibhav Kulkarni, Guan Qin, Anthony Vodacek, Jianjia Wu, Wei Zhao, and Adam Zornes, [http://math.ucdenver.edu/~jmandel/papers/fires-iccs05.pdf &#039;&#039;&#039;Towards a Dynamic Data Driven Application System for Wildfire Simulation&#039;&#039;&#039;] V.S. Sunderam et al. (Eds.): Computational Science - Proceedings ICCS&#039;2005, Lecture Notes in Computer Science 3515, pp. 632-639, 2005.&lt;br /&gt;
&lt;br /&gt;
* Craig C. Douglas, Jonathan D. Beezley, Janice Coen, Deng Li, Wei Li, Alan K. Mandel, Jan Mandel, Guan Qin, and Anthony Vodacek, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/wf-demo.pdf &#039;&#039;&#039;Demonstrating the Validity of Wildfire DDDAS&#039;&#039;&#039;], Computational Science - ICCS 2006: 6th International Conference, Reading, UK, May 28-31, 2006, Proceedings, Part III, Vassil N. Alexandrov, Dick van Albada, Dick Geert and Peter M. A. Sloot and Jack Dongarra (Eds.), Lecture Notes in Computer Science 3993, Springer 2006, pp. 522-529.&lt;br /&gt;
&lt;br /&gt;
* J. Mandel, M. Chen, L.P. Franca, C. Johns, A. Puhalskii, J.L. Coen, C.C. Douglas, R. Kremens, A. Vodacek, W. Zhao, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/fires_krakow.pdf &#039;&#039;&#039;A Note on Dynamic Data Driven Wildfire Modeling&#039;&#039;&#039;], Computational Science - Proceedings ICCS&#039;2004, vol. III, edited by Marian Bubak, G.Dick van Albada, Peter M.A. Sloot, Jack J. Dongarra, Lecture Notes in Computer Science 3038, Springer, pp. 725-731. Copyright Springer 2004. [http://dx.doi.org/10.1007/b97989 book], [http://math.ucdenver.edu/%7Ejmandel/papers/fires_krakow.pdf PDF 150K]&lt;br /&gt;
&lt;br /&gt;
* Edward G. Patton and Janice L. Coen, [http://www.mmm.ucar.edu/mm5/workshop/ws04/Session9/Patton_Edward.pdf WRF-Fire: A Coupled Atmosphere-Fire Module for WRF], Preprints of Joint MM5/Weather Research and Forecasting Model Users&#039; Workshop, Boulder, CO, June 22-25, 2004, pp. 221-223, NCAR.&lt;br /&gt;
&lt;br /&gt;
[[Category:Contents]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=Publications&amp;diff=2343</id>
		<title>Publications</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=Publications&amp;diff=2343"/>
		<updated>2011-12-05T17:47:05Z</updated>

		<summary type="html">&lt;p&gt;Adamko: /* Presentations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Journal articles ==&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, and Adam K. Kochanski, [http://www.geosci-model-dev-discuss.net/4/497/2011/gmdd-4-497-2011.html &#039;&#039;&#039;Coupled atmosphere-wildland fire modeling with WRF-Fire version 3.3&#039;&#039;&#039;], [http://www.geoscientific-model-development.net Geoscientific Model Development Discussions (GMDD)] 4, 497-545, 2011&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, &#039;&#039;&#039;Some new basics of fire behavior&#039;&#039;&#039;, Fire Management Today, In Press. [http://www.mmm.ucar.edu/people/coen/files/Coen_FMT_complete.pdf pdf]&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, 2010: &#039;&#039;&#039;Dry lightning&#039;&#039;&#039;. Southern California Fire Journal, Spring 2010, 18-23. &lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Janice L. Coen, and Minjeong Kim, &#039;&#039;&#039;Data Assimilation for Wildland Fires: Ensemble Kalman filters in coupled atmosphere-surface models&#039;&#039;&#039;, [http://dx.doi.org/10.1109/MCS.2009.932224 IEEE Control Systems Magazine 29, Issue 3, June 2009, 47-65] Also available as {{arXiv|0712.3965}}.&lt;br /&gt;
&lt;br /&gt;
* Zhen Wang, Janice Coen, Anthony Vodacek, 2009, [http://www.mmm.ucar.edu/people/coen/files/Wang_18_302-309.pdf &#039;&#039;&#039;Generation of synthetic infrared remote sensing scenes of wildland fire&#039;&#039;&#039;].  Intl. J. Wildland Fire, 18, 302-319. &lt;br /&gt;
&lt;br /&gt;
* Jan Mandel and Craig W. Johns, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/cjjm-fires-revised.pdf &#039;&#039;&#039;A two-stage Ensemble Kalman Filter for Smooth Data Assimilation&#039;&#039;&#039;], Environmental and Ecological Statistics 15, 101-110, 2008&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, 2008: Deadly fingers of flame. Southern California Fire Journal. 1(1):5-6.&lt;br /&gt;
&lt;br /&gt;
* Jonathan D. Beezley and Jan Mandel, &#039;&#039;&#039;Morphing Ensemble Kalman Filters&#039;&#039;&#039;, Tellus 60A, 131-140, 2008 [http://arxiv.org/abs/0705.3693 arXiv:0705.3693]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Lynn S. Bennethum, Jonathan D. Beezley, Janice L. Coen, Craig C. Douglas, Minjeong Kim, and Anthony Vodacek, [http://www-math.cudenver.edu/ccm/reports/rep233.pdf &#039;&#039;&#039;A wildland fire model with data assimilation&#039;&#039;&#039;], Mathematics and Computers in Simulation 79, 584-606, 2008, [http://dx.doi.org/10.1016/j.matcom.2008.03.015 article], [http://math.ucdenver.edu/%7Ejmandel/papers/rep233.pdf CCM Report 233 June 2006 revised January 2008]&lt;br /&gt;
&lt;br /&gt;
== Conference proceedings ==&lt;br /&gt;
&lt;br /&gt;
* Nina Dobrinkova, Georgi Jordanov, and Jan Mandel, &#039;&#039;&#039;WRF-Fire Applied in Bulgaria&#039;&#039;&#039;, Numerical Methods and Applications, I. Dimov, S. Dimova, and N. Kolkovska, eds., Lecture Notes in Computer Science 6046, Springer, Berlin/Heidelberg, 2011, pp. 133-140. Proceedings of 7th International Conference on Numerical Methods and Applications - NM&amp;amp;A&#039;10, August 20 - 24, 2010, Borovets, Bulgaria. {{doi|10.1007/978-3-642-18466-6_15}}. Preprint {{arXiv|1007.5347}}, July 2010.&lt;br /&gt;
&lt;br /&gt;
* Janice L. Coen and Craig C. Douglas, &#039;&#039;&#039;Computational Modeling of Large Wildfires: A Roadmap.&#039;&#039;&#039;, 9th International Symposium on Distributed Computing and Applications to Business, Engineering &amp;amp; Science. Accepted.  [http://www.mmm.ucar.edu/people/coen/files/Coen_Douglas_final.pdf preprint] &lt;br /&gt;
&lt;br /&gt;
* Jan Mandel and Jonathan D. Beezley, [http://dx.doi.org/10.1007/978-3-642-01973-9_53 &#039;&#039;&#039;An Ensemble Kalman-Particle Predictor-Corrector Filter for Non-Gaussian Data Assimilation&#039;&#039;&#039;], Proceedings ICCS 2009, Lecture Notes in Computer Science 5545, Springer, 2009, pp. 470-478. Also available at {{arXiv|0812.2290}}.&lt;br /&gt;
&lt;br /&gt;
*Jan Mandel, Jonathan D. Beezley, and Volodymyr Y. Kondratenko, &#039;&#039;&#039;Fast Fourier Transform Ensemble Kalman Filter with Application to a Coupled Atmosphere-Wildland Fire Model&#039;&#039;&#039;. Anna M. Gil-Lafuente, Jose M. Merigo (Eds.) [http://www.worldscibooks.com/compsci/7925.html Computational Intelligence in Business and Economics] (Proceedings of the [http://www.amse-modeling.com/ms10/ MS&#039;10 International Conference], Barcelona, Spain, 15-17 July 2010), World Scientific,  pp. 777-784. Also available at {{arXiv|1001.1588}}.&lt;br /&gt;
&lt;br /&gt;
==Posters==&lt;br /&gt;
&lt;br /&gt;
* M. Jenkins, A. Kochanski, S. K. Krueger, W. Mell, R. McDermott, [[media:AGU.2010.poster.jenkins.etal.pdf|&#039;&#039;&#039;The Fluid Dynamical Forces Involved in Grass Fire Propagation&#039;&#039;&#039;]], AGU Fall Meeting, 2010&lt;br /&gt;
&lt;br /&gt;
* J. D. Beezley, A. Kochanski, V. Y. Kondratenko, J. Mandel, B. Sousedik, [[media:agu10_jb.pdf|&#039;&#039;&#039;Simulation of the Meadow Creek ﬁre using WRF-Fire&#039;&#039;&#039;]], AGU Fall Meeting, 2010&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Adam K. Kochanski, Volodymyr Y. Kondratenko, Bedrich Sousedik, Erik Anderson, and Joel Daniels, [[media:agu10_jm.pdf|&#039;&#039;&#039;Wildland fire simulation by WRF-Fire&#039;&#039;&#039;]],  AGU Fall Meeting, 2010&lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, Brian Lamb, Janice Coen, &#039;&#039;&#039;Sensitivity Analysis and Application of WRF-Fire&#039;&#039;&#039;, AGU Fall Meeting, 2009. &lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, Brian Lamb, Janice Coen, &#039;&#039;&#039;Sensitivity Analyses of Ignition Area and Fire-Atmosphere Dynamics using WRF-FIRE&#039;&#039;&#039;, 8th Symposium on Fire &amp;amp; Forest Meteorology, American Meteorological Society, Kalispell. Oct 13-15, 2009. &lt;br /&gt;
&lt;br /&gt;
* Kara Yedinak, J. L. Coen, and B. Lamb, &#039;&#039;&#039;WRF-Fire: A fire-atmosphere dynamics module for air quality modeling&#039;&#039;&#039;, [http://ams.confex.com/ams/89annual/techprogram/MEETING.HTM The 89th American Meteorological Society Annual Meeting (Phoenix, AZ)], [http://ams.confex.com/ams/89annual/techprogram/program_532.htm 11th Conference on Atmospheric Chemistry], [http://ams.confex.com/ams/89annual/techprogram/paper_150173.htm Poster JP 1.10], January 2009.&lt;br /&gt;
&lt;br /&gt;
== Presentations ==&lt;br /&gt;
*  A. Kochanski, M. Jenkins, S. K. Krueger, J. Mandel, J. D. Beezley, C. B. Clements, &#039;&#039;&#039;Coupled atmosphere-fire simulations of the FireFlux experiment: Impacts of model resolution on its performance&#039;&#039;&#039;, AMS Ninth Symposium on Fire and Forest Meteorology, Palm Springs, Nov. 2011. [http://ams.confex.com/ams/9FIRE/webprogram/Manuscript/Paper192314/AMS_2011_Extended_abstract_final.pdf extended abstract]&lt;br /&gt;
&lt;br /&gt;
*  A. Kochanski, M. Jenkins, S. K. Krueger, J. Mandel, J. D. Beezley, C. B. Clements, &#039;&#039;&#039;Evaluation of The Fire Plume Dynamics Simulated by WRF-Fire&#039;&#039;&#039;, AGU Fall Meeting, 2010 [[media:AGU.2010.kochanski.key.pdf|pdf]] [[media:AGU.2010.kochanski.key.gz|key]]&lt;br /&gt;
* J. Mandel, &#039;&#039;&#039;Coupled atmosphere-wildland fire simulation by WRF-Fire&#039;&#039;&#039;, Invited lecture at [http://www.ima.umn.edu/ IMA] Workshop [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/ Numerical Solutions of Partial Differential Equations: Fast Solution Techniques], December 2, 2010. [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/abstracts.html#10318  abstract] [http://www.ima.umn.edu/2010-2011/W11.29-12.3.10/activities/Mandel-Jan/ima10.key.pdf pdf] {{daseminar|slides/ima10/ima10.key.zip|key}} [http://www.ima.umn.edu/videos/?id=1507 video]&lt;br /&gt;
* Janice Coen, &#039;&#039;&#039;Computational Modeling of Wildland Fire Behavior and Weather for Research and Forecasting&#039;&#039;&#039;, keynote lecture at ICCS 2009 [http://www.science.uva.nl/sites/iccs-meeting/iccs2009/abs-Coen.html abstract]&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
&lt;br /&gt;
* Wang, W., Bruyere, C., Duda, M., Dudhia, J., Gill, D., Lin, H.C., Michalakes, J., Rizvi, S., Zhang, X., Beezley, J.D., Coen, J.L., Mandel, J.: &#039;&#039;&#039;[http://www.mmm.ucar.edu/wrf/users/docs/user_guide_V3/ARWUsersGuideV3.pdf ARW version 3 modeling system user’s guide]&#039;&#039;&#039;. Mesoscale &amp;amp; Miscroscale Meteorology Division, National Center for Atmospheric Research (July 2010)&lt;br /&gt;
&lt;br /&gt;
== Earlier publications and presentations (before 2008)==&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;Here are some related publications and presentations from our previous work.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Janice Coen, [http://www.cise.nsf.gov/cns/darema/dd_das/coen/ &#039;&#039;&#039;Coupled Atmosphere-Wildfire Modeling&#039;&#039;&#039;], NSF Workshop, April 25, 2000&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel [http://math.ucdenver.edu/%7Ejmandel/papers/rep231.pdf &#039;&#039;&#039;Efficient Implementation of the Ensemble Kalman Filter&#039;&#039;&#039;], CCM Report 231, May 2006.&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel and Jonathan D. Beezley, [http://math.ucdenver.edu/~jmandel/papers/ametsoc07.pdf &#039;&#039;&#039;Predictor-Corrector and Morphing Ensemble Filters for the Assimilation of Sparse Data into High-Dimensional Nonlinear Systems&#039;&#039;&#039;], 11th Symposium on Integrated Observing and Assimilation Systems for the Atmosphere, Oceans, and Land Surface (IOAS-AOLS), CD-ROM, [http://ams.confex.com/ams/87ANNUAL/techprogram/paper_119633.htm Paper 4.12], 87th American Meterological Society Annual Meeting, San Antonio, TX, January 2007 [http://math.ucdenver.edu/~jmandel/slides/ametsoc07-jm.pdf presentation], [http://www-math.cudenver.edu/ccm/reports/rep239.pdf CCM Report 239, November 2006]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Jonathan D. Beezley, Lynn S. Bennethum, Soham Chakraborty, Janice L. Coen, Craig C. Douglas, Jay Hatcher, Minjeong Kim, and Anthony Vodacek, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/iccs07-paper.pdf &#039;&#039;&#039;A Dynamic Data Driven Wildland Fire Model&#039;&#039;&#039;], ICCS 2007, Part I, Yong Shi, G. D. van Albada, P. M. A. Sloot and J. J. Dongarra (Eds), Lecture Notes in Computer Science 4487, 1042--1049, Springer, 2007. [http://math.ucdenver.edu/%7Ejmandel/fires/papers/iccs07-slides.pdf Presentation]&lt;br /&gt;
&lt;br /&gt;
* Jan Mandel, Lynn S. Bennethum, Mingshi Chen, Janice L. Coen, Craig C. Douglas, Leopoldo P. Franca, Craig J. Johns, Minjeong Kim, Andrew V. Knyazev, Robert Kremens, Vaibhav Kulkarni, Guan Qin, Anthony Vodacek, Jianjia Wu, Wei Zhao, and Adam Zornes, [http://math.ucdenver.edu/~jmandel/papers/fires-iccs05.pdf &#039;&#039;&#039;Towards a Dynamic Data Driven Application System for Wildfire Simulation&#039;&#039;&#039;] V.S. Sunderam et al. (Eds.): Computational Science - Proceedings ICCS&#039;2005, Lecture Notes in Computer Science 3515, pp. 632-639, 2005.&lt;br /&gt;
&lt;br /&gt;
* Craig C. Douglas, Jonathan D. Beezley, Janice Coen, Deng Li, Wei Li, Alan K. Mandel, Jan Mandel, Guan Qin, and Anthony Vodacek, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/wf-demo.pdf &#039;&#039;&#039;Demonstrating the Validity of Wildfire DDDAS&#039;&#039;&#039;], Computational Science - ICCS 2006: 6th International Conference, Reading, UK, May 28-31, 2006, Proceedings, Part III, Vassil N. Alexandrov, Dick van Albada, Dick Geert and Peter M. A. Sloot and Jack Dongarra (Eds.), Lecture Notes in Computer Science 3993, Springer 2006, pp. 522-529.&lt;br /&gt;
&lt;br /&gt;
* J. Mandel, M. Chen, L.P. Franca, C. Johns, A. Puhalskii, J.L. Coen, C.C. Douglas, R. Kremens, A. Vodacek, W. Zhao, [http://math.ucdenver.edu/%7Ejmandel/fires/papers/fires_krakow.pdf &#039;&#039;&#039;A Note on Dynamic Data Driven Wildfire Modeling&#039;&#039;&#039;], Computational Science - Proceedings ICCS&#039;2004, vol. III, edited by Marian Bubak, G.Dick van Albada, Peter M.A. Sloot, Jack J. Dongarra, Lecture Notes in Computer Science 3038, Springer, pp. 725-731. Copyright Springer 2004. [http://dx.doi.org/10.1007/b97989 book], [http://math.ucdenver.edu/%7Ejmandel/papers/fires_krakow.pdf PDF 150K]&lt;br /&gt;
&lt;br /&gt;
* Edward G. Patton and Janice L. Coen, [http://www.mmm.ucar.edu/mm5/workshop/ws04/Session9/Patton_Edward.pdf WRF-Fire: A Coupled Atmosphere-Fire Module for WRF], Preprints of Joint MM5/Weather Research and Forecasting Model Users&#039; Workshop, Boulder, CO, June 22-25, 2004, pp. 221-223, NCAR.&lt;br /&gt;
&lt;br /&gt;
[[Category:Contents]]&lt;/div&gt;</summary>
		<author><name>Adamko</name></author>
	</entry>
</feed>