Create Graphics for Forest Fire Model

Once we have run our Cell2Fire using docker image we create various outputs in the form of .png which are saved in the contributed folder. As the outputs are based on same geographical location with change in time being the only difference, therefore we can easily showcase these images in the form of clips. This would make it simpler to analyze the spread of fire and the magnitude of its extent.

To convert the images in the form of .gif files we have to follow these steps:

  • We need to download Pillow to convert .png files to .gif.

Open the bash window and download using the command

1
pip install Pillow
  • Once we have installed the pillow package we could open our code block gif.py

in the following file location.

1
mydirectory/Cell2Fire/docsrc/source/gif.py
  • In the python program we need to specify the location of the images which would

be converted to gif. Once we mention the .png files that need to be converted we store the output in in the desirsered loction to be used as an output.

This gif.py file can also be used to convert other outputs to the .gif format.