Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A Python interface between Earth Engine and xarray for processing time series data

License

NotificationsYou must be signed in to change notification settings

aazuspan/wxee

Repository files navigation

wxee .-- -..-

Earth Engine PythonPyPIconda-forgeOpen in ColabRead the DocsBuild statusCode coverage

Demo downloading weather data to xarray using wxee.

What is wxee?

wxee was built to make processing gridded, mesoscale time series data quickand easy by integrating the data catalog and processing power ofGoogle Earth Engine with theflexibility ofxarray, with no complicated setup required. To accomplish this, wxee implementsconvenient methods for data processing, aggregation, downloading, and ingestion.

wxee can be found in theEarth Engine Developer Resources!

Features

To see some of the capabilities of wxee and try it yourself, check out the interactive notebookshere!

Install

Pip

pip install wxee

Conda

conda install -c conda-forge wxee

Quickstart

Setup

Once you have access to Google Earth Engine, just import and initializeee andwxee.

importeeimportwxeewxee.Initialize()

Download Images

Download and conversion methods are extended toee.Image andee.ImageCollection using thewx accessor. Justimport wxee and use thewx accessor.

xarray

ee.ImageCollection("IDAHO_EPSCOR/GRIDMET").wx.to_xarray()

GeoTIFF

ee.ImageCollection("IDAHO_EPSCOR/GRIDMET").wx.to_tif()

Create a Time Series

Additional methods for processing image collections in the time dimension are available through theTimeSeries subclass.ATimeSeries can be created from an existingee.ImageCollection...

col=ee.ImageCollection("IDAHO_EPSCOR/GRIDMET")ts=col.wx.to_time_series()

Or instantiated directly just like you would anee.ImageCollection!

ts=wxee.TimeSeries("IDAHO_EPSCOR/GRIDMET")

Aggregate Daily Data

Many weather datasets are in daily or hourly resolution. These can be aggregated to coarser resolutions using theaggregate_timemethod of theTimeSeries class.

ts=wxee.TimeSeries("IDAHO_EPSCOR/GRIDMET")monthly_max=ts.aggregate_time(frequency="month",reducer=ee.Reducer.max())

Calculate Climatological Means

Long-term climatological means can be calculated using theclimatology_mean method of theTimeSeries class.

ts=wxee.TimeSeries("IDAHO_EPSCOR/GRIDMET")mean_clim=ts.climatology_mean(frequency="month")

Contribute

Bugs or feature requests are always appreciated! They can be submittedhere.

Code contributions are also welcome! Please open anissue to discuss implementation,then follow the steps below. Developer setup instructions can be foundin the docs.


[8]ページ先頭

©2009-2025 Movatter.jp