A Google Earth Engine extension for Xarray.
Project description
⚠️ Breaking Change in v0.1.0
v0.1.0 includes a major refactor with breaking API changes.
- Migration steps: docs/migration-guide-v0.1.0.md
- Canonical install options (prerelease vs stable): docs/installation.md
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 latest v0.1.0 prerelease:
pip install --upgrade --pre xee
For all installation paths (including stable line and conda), see docs/installation.md.
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. For local development, we recommend the Pixi environments defined in this repository for reproducible test and docs runs.
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.1.tar.gz.
File metadata
- Download URL: xee-0.1.1.tar.gz
- Upload date:
- Size: 560.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9b24f73686e7b8fb99d1033127b55e924ddc7f633c96c4fd9fd89c1839864f7
|
|
| MD5 |
a860566b9298381f042eda4850ca50d1
|
|
| BLAKE2b-256 |
6abaea1609cd9fae85e58b8e586a76410fffd68bcd49c96171fff273f47763ef
|
File details
Details for the file xee-0.1.1-py3-none-any.whl.
File metadata
- Download URL: xee-0.1.1-py3-none-any.whl
- Upload date:
- Size: 35.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0ee23a6c04458f475f272075ff772d5467b25d424d506b58023f83b6395368e
|
|
| MD5 |
b3928b3f05ca29dbde32991f0dc799ed
|
|
| BLAKE2b-256 |
67c5f44c430cd446c18a220cf9f18e16aebcb56c7b77fa306d6f542338d0a779
|