Skip to content

google/Xee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

359 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

⚠️ 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 xee and conda install xee may still install the previous stable line. To use the refactored API documented here, install a prerelease with pip install --upgrade --pre xee or pin an RC such as pip install xee==0.1.0rc1.

Xee: Xarray + Google Earth Engine

Xee Logo

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.

image image Conda Recipe image Conda Downloads

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

Apache 2.0

SPDX-License-Identifier: Apache-2.0

This is not an official Google product.

About

An Xarray extension for Google Earth Engine

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages