Skip to content

v0.2.14

Choose a tag to compare

@CyrilJl CyrilJl released this 04 Jan 11:48
· 26 commits to main since this release

v0.2.14

  • Added video_width to control the target output video width (pixels) when creating animations.
  • Added pad_inches to control the padding (inches) around saved frames; default is 0.2.
  • These options are available on animation APIs and documented in usage examples.
import xarray as xr
from mapflow import animate

ds = xr.tutorial.open_dataset("era5-2mt-2019-03-uk.grib")
animate(da=ds['t2m'].isel(time=slice(120)), path='animation.mp4', video_width=1280, pad_inches=0.2)
animation.mp4