| 1 |
<!-- meta page description: wxGUI Animation tool --> |
| 2 |
<!-- meta page index: topic_GUI|GUI --> |
| 3 |
<h2>DESCRIPTION</h2> |
| 4 |
|
| 5 |
The <b>Animation Tool</b> is a <em><a href="wxGUI.html">wxGUI</a></em> component |
| 6 |
for animating series of GRASS raster or vector maps or space time datasets (created by t.* modules). |
| 7 |
|
| 8 |
<p> |
| 9 |
Animation Tool allows you to: |
| 10 |
|
| 11 |
<ul> |
| 12 |
<li>display up to 4 synchronized animations</li> |
| 13 |
<li>each animation can consist of base map layer(s) and (multiple) series in arbitrary order |
| 14 |
(for example, raising water level with elevation)</li> |
| 15 |
<li>control the animation speed</li> |
| 16 |
<li>interactively change active frame using a slider</li> |
| 17 |
<li>visualize space time datasets with unequally spaced intervals</li> |
| 18 |
<li>animate 3d view (partially implemented, not supported on Windows)</li> |
| 19 |
<li>export animation as a series of images, animated GIF, AVI or SWF</li> |
| 20 |
<li>choose format of time labels in case of animating maps with absolute time</li> |
| 21 |
<li>choose background color</li> |
| 22 |
<li>set starting and ending region in order to change region during animation |
| 23 |
(alternatively you can set N-S/E-W values instead of the ending region; |
| 24 |
these are used for making the region smaller or larger for each step)</li> |
| 25 |
</ul> |
| 26 |
|
| 27 |
<p> |
| 28 |
3D view animation enables to animate raster (as an elevation map or a |
| 29 |
color map) or vector map (points, lines). Internally, |
| 30 |
module <em><a href="m.nviz.image.html">m.nviz.image</a></em> is used. |
| 31 |
To display 3D view animation follow these steps: |
| 32 |
<ul> |
| 33 |
<li>open GRASS GUI, load maps and start 3D view</li> |
| 34 |
<li>set view, light and other parameters as you like</li> |
| 35 |
<li>save workspace file</li> |
| 36 |
<li>add new animation in Animation Tool, choose 3D view mode</li> |
| 37 |
<li>choose data (series of maps or space time dataset) used for animation</li> |
| 38 |
<li>set workspace file</li> |
| 39 |
<li>choose parameter (parameter |
| 40 |
of <em><a href="m.nviz.image.html">m.nviz.image</a></em>) to animate |
| 41 |
(e.g. color_map)</li> |
| 42 |
|
| 43 |
</ul> |
| 44 |
|
| 45 |
<center> |
| 46 |
<br> |
| 47 |
<img src="wxGUI_animation_tool.jpg" border="1" alt="Animation Tool screenshot"> |
| 48 |
<br> |
| 49 |
<br> |
| 50 |
</center> |
| 51 |
|
| 52 |
<h2>NOTE</h2> |
| 53 |
|
| 54 |
The Animation Tool follows the computational region settings, |
| 55 |
so please be sure your computational region is set to the geographic extent of maps you are animating. |
| 56 |
You can change the computational region (using <em><a href="g.region.html">g.region</a></em>) |
| 57 |
and then reload the maps to update the animation. |
| 58 |
|
| 59 |
<h2>EXAMPLES</h2> |
| 60 |
|
| 61 |
<div class="code"><pre> |
| 62 |
g.gui.animation raster=rmap1,rmap2,rmap3 |
| 63 |
|
| 64 |
g.gui.animation vector=vmap1,vmap2,vmap3 |
| 65 |
|
| 66 |
g.gui.animation strds=precipitation_2000_2010 |
| 67 |
</pre></div> |
| 68 |
|
| 69 |
The loading of a series of maps into the Animation Tool can be simplified |
| 70 |
with <em><a href="g.list.html">g.list</a></em> (back ticks syntax works for Linux and Mac only): |
| 71 |
<div class="code"><pre> |
| 72 |
g.gui.animation raster=`g.list type=raster mapset=. separator=comma pattern="precip*"` |
| 73 |
</pre></div> |
| 74 |
|
| 75 |
Using extended regular expressions, the list of a series of raster maps can be subset by |
| 76 |
e.g., numeric range (here: precipitation for the years 1997-2012): |
| 77 |
<div class="code"><pre> |
| 78 |
g.gui.animation raster=`g.list -e type=raster mapset=. separator=comma pattern="precip_total.(199[7-9]|200[0-9]|201[0-2]).sum"` |
| 79 |
</pre></div> |
| 80 |
|
| 81 |
<h2>SEE ALSO</h2> |
| 82 |
|
| 83 |
<em> |
| 84 |
<a href="wxGUI.html">wxGUI</a>, |
| 85 |
<a href="wxGUI.components.html">wxGUI components</a> |
| 86 |
</em> |
| 87 |
|
| 88 |
<p> |
| 89 |
<em> |
| 90 |
<a href="g.gui.timeline.html">g.gui.timeline</a>, |
| 91 |
<a href="g.list.html">g.list</a>, |
| 92 |
<a href="m.nviz.image.html">m.nviz.image</a> |
| 93 |
</em> |
| 94 |
|
| 95 |
<p> |
| 96 |
See also related <a href="https://grasswiki.osgeo.org/wiki/WxGUI_Animation_Tool">wiki page</a>. |
| 97 |
|
| 98 |
<h2>AUTHOR</h2> |
| 99 |
|
| 100 |
Anna Kratochvilova, |
| 101 |
<a href="https://www.cvut.cz">Czech Technical University in Prague</a>, Czech Republic |