User Tools

Site Tools


wiki:exercise4d

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:exercise4d [2017/12/05 22:53] (current)
Line 1: Line 1:
 +====== Exercise 4d: Create animation of NDVI time series ======
 +In this exercise the following tools will be used:
 +  * bash: for loop
 +  * ImageMagick:​ animate, convert, display
  
 +__Animate a number of TIF files as a movie using ImageMagick (animate)__
 +<code bash>
 +animate -delay 50 $(for file in ${OUTPUTDIR}/​exercise4/​20*-MODIS500_CW_NDVI.tif;​do echo $file;done)
 +</​code>​
 +
 +__Create a movie for the same animation using ImageMagick (convert)__
 +<code bash>
 +convert -delay 50 $(for file in ${OUTPUTDIR}/​exercise4/​20*-MODIS500_CW_NDVI.tif;​do echo $file;done) -loop 0 ${OUTPUTDIR}/​movie.gif ​
 +</​code>​
 +
 +__Play just created movie (display)__
 +<code bash>
 +display ${OUTPUTDIR}/​movie.gif ​
 +</​code>​
wiki/exercise4d.txt ยท Last modified: 2017/12/05 22:53 (external edit)