Examples¶
This section provides practical examples of using openEO by TiTiler for various Earth Observation tasks.
Web Editor Examples¶
The openEO Web Editor provides a graphical interface for interacting with the API. To get started:
- Start the services:
echo "TITILER_OPENEO_AUTH_USERS='{\"test\":{\"password\":\"test\"}}'" >> .env # local development only
docker compose up
-
Access the editor at localhost:8080 and set the backend URL to localhost:8081
-
Log in with the local development user that the
echoline adds (usernametest, passwordtest). For other authentication setups, see the Admin Guide
Jupyter Notebook Examples¶
We provide several Jupyter notebooks demonstrating different use cases:
Manhattan Satellite Imagery¶
Learn how to:
- Connect to the openEO backend
- Load and process Sentinel-2 imagery using default resolution (1024 pixels width)
- Control output resolution with explicit width/height parameters
- Create true-color RGB visualizations
- Apply color enhancements for better visualization
NDVI Time Series Analysis¶
Explore how to:
- Calculate vegetation indices (NDVI)
- Extract time series data for specific areas
- Control memory usage with appropriate resolution settings
- Analyze temporal patterns in vegetation
- Visualize results using matplotlib
Resolution Control Examples¶
The examples demonstrate different approaches to managing resolution:
- Default Resolution (Recommended):
loadcol = load_collection(
"SENTINEL2_L2A",
spatial_extent=bbox,
temporal_extent=["2021-01-01", "2021-12-31"],
bands=["B04", "B08"]
)
# Reduce temporal dimension
reduced = reduce_dimension(loadcol, dimension="time", reducer="first")
# Uses default width of 1024 pixels for memory efficiency
- Custom Resolution:
loadcol = load_collection(
"SENTINEL2_L2A",
spatial_extent=bbox,
temporal_extent=["2021-01-01", "2021-12-31"],
bands=["B04", "B08"],
width=2048, # Explicitly control resolution
)
reduced = reduce_dimension(loadcol, dimension="time", reducer="first")
Running the Notebooks¶
To run the notebooks locally:
- Install the development dependencies:
- Start Jupyter:
- Open the desired notebook and follow the instructions
Parameter Management¶
For examples of using the comprehensive parameter management system (query parameters, defaults, validation), see the Parameter Management documentation.