Example - Biomass Heatmap Movie

This example will create a graph for every tick. We will then use ffmpeg to encode it into a movie which can then be played in any media player.

Code

Post-Processing

ffmpeg is used to assemble the png files saved by the python script into a m4v video:

$ ffmpeg -r 10 -f image2 -i %04d.png -vcodec libx264 -b 500k biomass_heatmap_movie_out.m4v

or in gif format:

$ ffmpeg -r 10 -f image2 -i %04d.png biomass_heatmap_movie_out.gif

Output

#.. image:: example_images/biomass_heatmap_movie_out.gif