Movie

Overview Functions

Functions

GEMS.generate_movieFunction
generate_movie(rd::ResultData; seconds::Int64 = 60, fps::Int64 = 24, savepath::String = "video.mp4")

Generates a video of the disease progression on a geographical map based on the infections dataframe in the ResultData object. Note that the population model used in the simulation must contain geolocated settings, otherwise there is nothing to show. The optional parameters control video length (seconds), framerate (fps), and output path (savepath).

For very large models the number of rendered points is capped at MAX_MAP_POINTS_VIDEO (set in constants.jl; a value between 1,000,000 and 2,000,000 is recommended). If there are more geolocated infections than the cap, a random subsample is taken.

Parameters

  • rd::ResultData: Must contain the infections dataframe with geolocations.
  • seconds::Int64 = 60 (optional): Length of the video in seconds.
  • fps::Int64 = 24 (optional): Frames per second.
  • savepath::String = "video.mp4" (optional): Output path (must end in .mp4).
Missing docstring.

Missing docstring for steps. Check Documenter's build log for details.