<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openwfm.org/index.php?action=history&amp;feed=atom&amp;title=How_to_visualize_WRF-Fire_output_in_Mayavi2</id>
	<title>How to visualize WRF-Fire output in Mayavi2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openwfm.org/index.php?action=history&amp;feed=atom&amp;title=How_to_visualize_WRF-Fire_output_in_Mayavi2"/>
	<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_Mayavi2&amp;action=history"/>
	<updated>2026-05-18T11:22:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_Mayavi2&amp;diff=2157&amp;oldid=prev</id>
		<title>Jmandel: {{users guide}}</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_Mayavi2&amp;diff=2157&amp;oldid=prev"/>
		<updated>2011-08-02T05:18:42Z</updated>

		<summary type="html">&lt;p&gt;{{users guide}}&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:18, 2 August 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{users guide}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://code.enthought.com/projects/mayavi/ Mayavi2] is a [[wikipedia:VTK|VTK]] based visualization application and API.  This document is specifically about Mayavi2 developed by [http://enthought.com/ Enthought] and not [http://mayavi.sourceforge.net/ MavaVI], which is not in active development.  The script developed for this purpose can conceivably create datasets that can be used with other visualization applications such as Paraview, Vistrails, etc.  Future iterations of this script may provide this capability.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://code.enthought.com/projects/mayavi/ Mayavi2] is a [[wikipedia:VTK|VTK]] based visualization application and API.  This document is specifically about Mayavi2 developed by [http://enthought.com/ Enthought] and not [http://mayavi.sourceforge.net/ MavaVI], which is not in active development.  The script developed for this purpose can conceivably create datasets that can be used with other visualization applications such as Paraview, Vistrails, etc.  Future iterations of this script may provide this capability.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jmandel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_Mayavi2&amp;diff=2011&amp;oldid=prev</id>
		<title>Jmandel: cat</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_Mayavi2&amp;diff=2011&amp;oldid=prev"/>
		<updated>2011-04-20T20:13:00Z</updated>

		<summary type="html">&lt;p&gt;cat&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:13, 20 April 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The number of options available for the visualizations is daunting.  Here are a few tips to improve the visualizations of WRF-Fire output.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The number of options available for the visualizations is daunting.  Here are a few tips to improve the visualizations of WRF-Fire output.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*To be continued...&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*To be continued...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:WRF-Fire]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jmandel</name></author>
	</entry>
	<entry>
		<id>https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_Mayavi2&amp;diff=1955&amp;oldid=prev</id>
		<title>Jbeezley: Created page with &#039;[http://code.enthought.com/projects/mayavi/ Mayavi2] is a VTK based visualization application and API.  This document is specifically about Mayavi2 developed by…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.openwfm.org/index.php?title=How_to_visualize_WRF-Fire_output_in_Mayavi2&amp;diff=1955&amp;oldid=prev"/>
		<updated>2011-04-19T03:51:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;[http://code.enthought.com/projects/mayavi/ Mayavi2] is a &lt;a href=&quot;http://en.wikipedia.org/wiki/VTK&quot; class=&quot;extiw&quot; title=&quot;wikipedia:VTK&quot;&gt;VTK&lt;/a&gt; based visualization application and API.  This document is specifically about Mayavi2 developed by…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[http://code.enthought.com/projects/mayavi/ Mayavi2] is a [[wikipedia:VTK|VTK]] based visualization application and API.  This document is specifically about Mayavi2 developed by [http://enthought.com/ Enthought] and not [http://mayavi.sourceforge.net/ MavaVI], which is not in active development.  The script developed for this purpose can conceivably create datasets that can be used with other visualization applications such as Paraview, Vistrails, etc.  Future iterations of this script may provide this capability.&lt;br /&gt;
&lt;br /&gt;
=Installing=&lt;br /&gt;
The easiest method of installing all needed software is to install the [http://enthought.com/products/epd.php Enthought Python Distribution]; however, this is a commercial product.  Students and faculty can get a free academic license for this distribution [http://enthought.com/products/edudownload.php].  As of version 7.0, the 64-bit version of EPD does not include mayavi, so users of Mac OS should download the 32-bit package.&lt;br /&gt;
&lt;br /&gt;
Many software repositories for Linux also contain mayavi and its dependencies.  Mac OS users can also install via [http://www.macports.org/ macports].  A more difficult option is to use [http://packages.python.org/distribute/easy_install.html easy_install] to install all of the python packages; however,&lt;br /&gt;
you will need to install all non-python libraries (VTK, wxWidgets, etc) manually.  As a last resort, you can try [http://github.enthought.com/mayavi/mayavi/installation.html installing from source].&lt;br /&gt;
&lt;br /&gt;
Once you have installed, make sure everything is set up correctly by typing &amp;lt;code&amp;gt;mayavi2&amp;lt;/code&amp;gt; on the command line to start the application.&lt;br /&gt;
&lt;br /&gt;
=Importing Data from WRF output files=&lt;br /&gt;
&lt;br /&gt;
You can download a python script for importing data from WRF into a mayavi session [https://gist.github.com/926712 here].  This script will automatically take care of data conversion from netCDF including proper coordinate grids for all surface, fire, and atmospheric variables.  The script can also combine several scalar field to create a vector field (such as for wind).  As of version 4bb2e391a, the options for this script are as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Usage: WRF2mayavi.py [options] filename&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
  -h, --help            show this help message and exit&lt;br /&gt;
  -v VARIABLES, --variables=VARIABLES&lt;br /&gt;
                        A comma separated list of variables&lt;br /&gt;
  -w VECTORS, --vectors=VECTORS&lt;br /&gt;
                        A comma separated list of vectors &lt;br /&gt;
                        (i.e. -w wind1:U:V:W,wind2:UF:VF)&lt;br /&gt;
  -t TIME, --time=TIME  The time slice to convert [default 0]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Try the &amp;lt;code&amp;gt;-h&amp;lt;/code&amp;gt; flag for current usage.&lt;br /&gt;
&lt;br /&gt;
A typical use of this script to visualize a number of variables from a fire simulation is as follows.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
python WRF2mayavi.py -t 0 -v FGRNHFX,GRNHFX -w surface_wind:UF:VF,atm_wind:U:V:W wrfout&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will open a new mayavi application window that looks something like [[Media:Mayav2_import.png|this]].&lt;br /&gt;
[[File:Mayav2_import.png|thumb|Mayavi application window after importing data]]&lt;br /&gt;
A list of all the variables and vectors you specified on the command line are given.  Double click on the &amp;quot;Add module or filter&amp;quot; item under what you want to see.  This will open a list of possible visualization modules that you can choose from.  For surface variables, try &amp;quot;Surface&amp;quot;.  For vectors, try &amp;quot;Vectors&amp;quot; or &amp;quot;Streamline&amp;quot;.  For 3D scalar variables, try &amp;quot;ScalarCutPlane&amp;quot; or &amp;quot;IsoSurface&amp;quot;.  You can render multiple visualizations on a single figure window.  See the [http://github.enthought.com/mayavi/mayavi/application.html mayavi documentation] for details of how to use the GUI.&lt;br /&gt;
&lt;br /&gt;
=Tips and tricks=&lt;br /&gt;
The number of options available for the visualizations is daunting.  Here are a few tips to improve the visualizations of WRF-Fire output.&lt;br /&gt;
*To be continued...&lt;/div&gt;</summary>
		<author><name>Jbeezley</name></author>
	</entry>
</feed>