Skip to main content

Tests codecov PyPI version conda-forge docs License

Geedim

Geedim provides a Python API and command line toolkit for exporting and cloud masking Google Earth Engine (GEE) imagery. Images and Image collections can be exported to:

  • GeoTIFF file

  • NumPy array

  • Xarray Dataset / DataArray

  • Google Cloud platforms

And cloud masking is supported on:

Installation

To install from PyPI:

pip install geedim

To install from conda-forge:

conda install -c conda-forge geedim

To support exporting to Xarray, use pip install geedim[xarray] or conda install -c conda-forge geedim xarray instead.

A registered Google Cloud project is required for access to Earth Engine. Once installation and registration is done, Earth Engine should be authenticated:

earthengine authenticate

Examples

API

Geedim provides access to its functionality through the gd accessor on the ee.Image and ee.ImageCollection GEE classes. This example exports a 6 month cloud-free composite of Sentinel-2 surface reflectance imagery to a GeoTIFF file:

import ee

# import geedim to enable accessors
import geedim  # noqa: F401

ee.Initialize()

# filter collection based on cloud-free portion etc.
region = ee.Geometry.Rectangle(24.35, -33.75, 24.45, -33.65)
coll = ee.ImageCollection('COPERNICUS/S2_SR_HARMONIZED')
filt_coll = coll.gd.filter(
    '2021-10-01', '2022-04-01', region=region, cloudless_portion=60
)

# print image properties
print(filt_coll.gd.schemaTable)
print(filt_coll.gd.propertiesTable)

# create a cloud-free composite & download
comp_im = filt_coll.gd.composite('median')
prep_im = comp_im.gd.prepareForExport(
    crs='EPSG:3857', region=region, scale=10, dtype='uint16'
)
prep_im.gd.toGeoTIFF('s2_comp.tif')

Command line interface

Much of the API functionality can also be accessed on the command line with geedim and its sub-commands. This repeats the API example, exporting a 6-month cloud-free composite of Sentinel-2 surface reflectance imagery to a GeoTIFF file:

geedim search -c COPERNICUS/S2_SR_HARMONIZED -s 2024-10-01 -e 2025-04-01 -b 24.35 -33.75 24.45 -33.65 -cp 60 composite -cm median download -c EPSG:3857 -r - -s 10 -dt uint16

Documentation

Documentation is hosted at geedim.readthedocs.io.

License

This project is licensed under the terms of the Apache-2.0 License.

Credits

Metadata

Release files for geedim 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geedim 2.0.1
File Size Uploaded Provenance Actions
geedim-2.0.1.tar.gz 97.4 kB With provenance Details for geedim-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geedim 2.0.1
File Interpreter ABI Platform Actions
geedim-2.0.1-py3-none-any.whl Python 3 none any Details for geedim-2.0.1-py3-none-any.whl

Total release size: 170.7 kB

Release files / geedim-2.0.1.tar.gz

Download URL geedim-2.0.1.tar.gz
Size 97.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ca1b6560719e239caaa3b1bb4734a7ae8cfeb672102254dbc3a9c641175000a1
BLAKE2b-256 checksum
How to use checksums
2ee472baa70f3da996c4bfc85749e247b03deca133a483c90f6df4ca64887821
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / geedim-2.0.1-py3-none-any.whl

Download URL geedim-2.0.1-py3-none-any.whl
Size 73.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fb2043d2416db9b1d5b8481af7b8715a2804a1a031930848ace65b435c61898
BLAKE2b-256 checksum
How to use checksums
ea77d3df02afb15ce5e3d8823a0656372216234137fbf6707e0b702d1f6379fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for geedim 2.0.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for geedim-2.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page