Plugin preview. This package is part of the v2.0.0 plugin preview and only works with the
pluginsbranch of earthaccess (earthaccess-dev/earthaccess@plugins). It is not on PyPI yet — see Installing and testing the drafts.
On-demand processing of ICESat-2 and GEDI data with SlideRule, through earthaccess.
SlideRule is a cloud computing platform for satellite altimetry and lidar data.
Instead of downloading ATL03/ATL06/ATL08 or GEDI granules and processing them
locally, you send SlideRule a processing request — an API such as atl06p,
atl03p, atl08p, atl13p or a GEDI processor, plus parameters and a region
of interest — and it runs the analysis server-side over the granules you name,
returning derived, geolocated point data as a GeoDataFrame.
Because the processing happens remotely and is scoped to a region and set of resources, SlideRule is a good fit for large-area or on-the-fly analysis where downloading raw granules would be wasteful.
This package is not on PyPI yet. It is part of the v2.0.0 plugin preview and
must be installed together with the plugins branch of earthaccess. The full
steps (credentials, notebook deps, sanity check) are in
Installing and testing the drafts.
git clone git@github.com:earthaccess-dev/earthaccess.git
cd earthaccess
git checkout plugins
uv venv
uv pip install -e ".[all]"
uv pip install "git+https://github.com/earthaccess-dev/earthaccess-plugin-sliderule.git"import earthaccess as ea
results = ea.search_data(
short_name="ATL06",
bounding_box=(-120, 40, -110, 45),
temporal=("2020-01-01", "2020-02-01"),
)
df = ea.plugins.sliderule.request(
results,
api="atl06p",
parms={"pass_invalid": False},
aoi={"type": "Polygon", "coordinates": [[[...]]]},
).results()
# df is a geopandas.GeoDataFrame of geolocated pointsThe searched granules scope the request automatically (their granule URs are
sent as resources). You can also run from an area of interest and parameters
alone, with no search results — SlideRule does not need them:
df = ea.plugins.sliderule.request(
api="atl06p",
parms={...},
aoi={"type": "Polygon", "coordinates": [[[...]]]},
).results()Or work with the job explicitly:
job = ea.plugins.sliderule.request(results, api="atl06p", parms={...})
df = job.results() # blocks until the processing finishesBecause the result is already a usable GeoDataFrame, ea.open(job) returns it
as-is.
| Option | Meaning |
|---|---|
api |
required; the processor, e.g. "atl06p", "atl03p", "atl08p" |
parms |
processor parameters (plain dict, passed through) |
aoi |
GeoJSON region of interest |
resources |
explicit granule names; defaults to the searched granules |
SlideRule manages its own credentials, so this plugin does not use your Earthdata Login session. Configure the endpoint and organization before the first call:
ea.plugins.sliderule.configure(
url="https://slideruleearth.io",
organization="my-org",
)SlideRule supports a small set of datasets (ICESat-2 and GEDI). The plugin rejects anything else early and lists the processors it can run:
ea.plugins.sliderule.capabilities("ATL06")
# sliderule supported ATL06
# process run an on-demand processor selected by api
# subset_bbox restrict the result to a spatial extent (bbox or wkt)
# subset_temporal restrict the result to a time interval (temporal)
# formats: geoparquet
# apis: atl03sp, atl03vp, atl03x, atl06p, atl06sp, atl08p, atl13sp, atl24v,
# gedil1b, gedil2a, gedil4a
# hint: use .explain() for options and examples
ea.plugins.sliderule.request(landsat_results, api="atl06p").results()
# UnsupportedCollectionError: sliderule does not support LANDSAT_8_C1 (...):
# LANDSAT_8_C1 is not a SlideRule dataset. ...MIT.