Skip to content

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:

  1. Start the services:
echo "TITILER_OPENEO_AUTH_USERS='{\"test\":{\"password\":\"test\"}}'" >> .env   # local development only
docker compose up
  1. Access the editor at localhost:8080 and set the backend URL to localhost:8081

  2. Log in with the local development user that the echo line adds (username test, password test). 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:

  1. 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
  1. 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:

  1. Install the development dependencies:
python -m pip install -e ".[dev]"
  1. Start Jupyter:
jupyter notebook docs/notebooks
  1. 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.