GeoGIF
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:
- Wanting to animate a time-stack of imagery (like you'd get from stackstac) is a common task in the earth-observation/geospatial world.
- I think
GeoGIFis 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.
Installation
pip install geogif
Documentation
See https://geogif.readthedocs.io/en/latest/.
Development
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 install
Running Tests
GeoGIF has some basic end-to-end tests, written with Hypothesis. To run:
pytest
This will take ~30 seconds (longer the first time), as Hypothesis generates fake data to root out possible errors.
Code style
GeoGIF is formatted with shed, in order to allow for as few opinions as possible.
Metadata
Release files for geogif 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geogif-0.3.tar.gz | 8.3 kB | Without provenance | Details for geogif-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geogif-0.3-py3-none-any.whl | Python 3 | none | any | Details for geogif-0.3-py3-none-any.whl |
Total release size: 17.1 kB
Release files / geogif-0.3.tar.gz
| Download URL | geogif-0.3.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
559ad993d8cb9d4c86347a75aae9c38ec920a273abf9b29cba14ed1264dc143d
|
|
BLAKE2b-256 checksum How to use checksums |
a1c16e1fdf9339ae7e211e2b22c9fa9c07ff1653d208de8fb329cc404d95e6d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.12.8 Darwin/24.2.0
|
Release files / geogif-0.3-py3-none-any.whl
| Download URL | geogif-0.3-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8af0ad05a5e87d315d2bd56390d4aecddc9eecc5a3ee062cb6b63a7b765f989d
|
|
BLAKE2b-256 checksum How to use checksums |
1332a2d6608ae23970b3cd84fa74201a40d68bc9ab93f08c38a64ee63f4cac4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.12.8 Darwin/24.2.0
|
Security for geogif 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.