将 xarray 时间堆栈转换为 GIF
Make GIFs from time-stacked xarray.DataArrays (time, [optional band], y, x), dead-simple.
from geogif import gif, dgif
gif(data_array)
dgif(dask_data_array).compute()The "geo" part is a lie, actually. The arrays don't have to be geospatial in nature. But I called it GeoGIF because:
GeoGIF is a hilarious idea1.1: To ruin the joke, it sounds like GeoTIFF, a ubiquitous geospatial image format. If you also think this is a funny idea, and believe you'd have a better use for the name than I do, I'd happily cede it to you.
pip install geogifSee https://geogif.readthedocs.io/en/latest/.
GeoGIF is managed by Poetry, so be sure that's installed first. To develop locally, first fork or clone the repo. Then, to set up a virtual environment and install the necessary dependencies:
cd geogif
poetry installGeoGIF has some basic end-to-end tests, written with Hypothesis. To run:
pytestThis will take ~30 seconds (longer the first time), as Hypothesis generates fake data to root out possible errors.
GeoGIF is formatted with shed, in order to allow for as few opinions as possible.
暂无开放 Issues,或尚未同步最近议题。