A Google Earth Engine extension for Xarray.
Project description
⚠️ Breaking Change in v0.1.0
A major refactor was released in v0.1.0, introducing breaking changes to the Xee API. In most cases, existing code written for pre-v0.1.0 versions will require updates to remain compatible.
- See the Migration Guide for details on updating your code.
- If you need more time to migrate, you can pin your environment to the latest pre-v0.1.0 release.
During the v0.1.0 prerelease window:
pip install xeeandconda install xeemay still install the previous stable line. To use the refactored API documented here, install a prerelease withpip install --upgrade --pre xeeor pin an RC such aspip install xee==0.1.0rc1.
Xee: Xarray + Google Earth Engine
Xee is an Xarray backend for Google Earth Engine. Open ee.Image / ee.ImageCollection objects as lazy xarray.Datasets and analyze petabyte‑scale Earth data with the scientific Python stack.
Install
For the refactored v0.1.0 API documented below (prerelease period):
pip install --upgrade --pre xee
or pin a specific release candidate:
pip install xee==0.1.0rc1
For the current stable line (pre-v0.1.0 API):
pip install --upgrade xee
or
conda install -c conda-forge xee
Note: conda-forge may lag PyPI during prerelease testing. Use pip for the latest RC builds.
Minimal example
import ee
import xarray as xr
from xee import helpers
# Authenticate once (on a persistent machine):
# earthengine authenticate
project = 'PROJECT-ID' # Set your Earth Engine registered Google Cloud project ID
# Initialize (high‑volume endpoint recommended for reading stored collections)
ee.Initialize(project=project, opt_url='https://earthengine-highvolume.googleapis.com')
# Open a dataset by matching its native grid
ic = ee.ImageCollection('ECMWF/ERA5_LAND/MONTHLY_AGGR')
grid = helpers.extract_grid_params(ic)
ds = xr.open_dataset(ic, engine='ee', **grid)
print(ds)
Next steps:
Features
- Lazy, parallel pixel retrieval through Earth Engine
- Flexible output grid definition (fixed resolution or fixed shape)
- CF-friendly dimension order:
[time, y, x] - Plays nicely with Xarray, Dask, and friends
Community & Support
Contributing
See Contributing and sign the required CLA.
License
SPDX-License-Identifier: Apache-2.0
This is not an official Google product.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xee-0.1.0rc1.tar.gz.
File metadata
- Download URL: xee-0.1.0rc1.tar.gz
- Upload date:
- Size: 440.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2f23dd27658ab3a5e79d8e3cbde83ac914746a4dd93316382a8b11a82b9ea39
|
|
| MD5 |
2f046e800a40bff29e302b8f987fc8a2
|
|
| BLAKE2b-256 |
527202a36ad5080706993e5c91f3c3e893964b4d97b82958a3a6b1b790142cbd
|
File details
Details for the file xee-0.1.0rc1-py3-none-any.whl.
File metadata
- Download URL: xee-0.1.0rc1-py3-none-any.whl
- Upload date:
- Size: 35.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
707d5c9b62ec51b0b827b2c624c6e19b0a078d3247022ec6e0466e2de60c31a5
|
|
| MD5 |
0cb04b76e732bfdc5b299cb68a76de54
|
|
| BLAKE2b-256 |
6adc36a57f868be6c120fb6cf108b3273e68262499783adc7c0b159580efec01
|