g.gui.animation.html 3.6 KB

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