Skip to main content
Ctrl+K
pyinterp pyinterp
  • Installing the library
    • Setup with pip
    • Setup with Anaconda / conda-forge
    • Building from source
  • Examples Gallery
    • Getting Started: Axes and Grids
    • Interpolation & Regridding
    • Optimal Interpolation Examples
    • Binning & Statistics
    • Geospatial & Geodetic Operations
    • Utilities & Date Handling
    • Orbit & Temporal Analysis
  • API Documentation
    • Axes
    • Grid Structures
    • Interpolation on Regular Grids
    • Interpolation on Unstructured Grids
    • Reduced Gaussian Grids
    • Optimal Interpolation
    • Gap Filling
    • Conservative Regridding
    • Statistics & Binning
    • Configuration Objects
    • Geometric Primitives
    • Geohash
    • Orbit Propagation
    • CF Helpers
    • Date and Period Utilities
    • Dask Integration
  • Benchmarks
  • Design Notes
  • Changelog
  • Migration Guide
  • .rst

Examples Gallery

Contents

  • Getting Started: Axes and Grids
  • Interpolation & Regridding
  • Optimal Interpolation Examples
  • Binning & Statistics
  • Geospatial & Geodetic Operations
  • Utilities & Date Handling
  • Orbit & Temporal Analysis

Examples Gallery#

This gallery contains examples demonstrating the various features of pyinterp. Browse through the examples to learn how to use the library for different interpolation tasks.

Getting Started: Axes and Grids#

Start here: create the axes and grids on which every interpolation of pyinterp is performed.

Interpolator Objects

Interpolator Objects

Manipulating Axes

Manipulating Axes

Interpolation & Regridding#

Interpolate gridded fields with the xarray accessor or with NumPy, from 1D to 4D, regrid them conservatively between rectilinear grids, read reduced Gaussian grids, and interpolate scattered observations with R*-trees.

Interpolating an xarray DataArray

Interpolating an xarray DataArray

1D Interpolation

1D Interpolation

2D Interpolation

2D Interpolation

3D Interpolation

3D Interpolation

4D Interpolation

4D Interpolation

Conservative Regridding

Conservative Regridding

Reduced Gaussian Grids

Reduced Gaussian Grids

Unstructured Grid Interpolation

Unstructured Grid Interpolation

Geodesic Distances in RTree3D

Geodesic Distances in RTree3D

Optimal Interpolation Examples#

Explore pyinterp’s capabilities for optimal interpolation.

Optimal Interpolation (OI) — 2D + time

Optimal Interpolation (OI) — 2D + time

Optimal Interpolation (OI) — global mode (lon, lat, time)

Optimal Interpolation (OI) — global mode (lon, lat, time)

Binning & Statistics#

Learn how to bin scattered data on a grid, in a plane or on the sphere, and to compute descriptive statistics, quantiles and histograms, including on chunked arrays with Dask.

Descriptive Statistics

Descriptive Statistics

Binning

Binning

Binning on the Sphere

Binning on the Sphere

Robust Statistics with Histograms and T-Digest

Robust Statistics with Histograms and T-Digest

Statistics on Chunked Data with Dask

Statistics on Chunked Data with Dask

Geospatial & Geodetic Operations#

Starts with an overview of the geometry module, then details its primitives, spatial predicates and operations, and ends with geohash encoding.

Geometry Module Overview

Geometry Module Overview

Basic Geometric Primitives

Basic Geometric Primitives

Spatial Predicates and Relationships

Spatial Predicates and Relationships

Geometric Operations

Geometric Operations

Advanced Geometric Features

Advanced Geometric Features

Satellite-Specific Geometric Operations

Satellite-Specific Geometric Operations

Geohash

Geohash

Utilities & Date Handling#

Covers utility functions for date manipulation and handling undefined values in datasets.

Date and Time Utilities

Date and Time Utilities

Filling Undefined Values

Filling Undefined Values

Orbit & Temporal Analysis#

Examples focused on orbit-related computations and temporal data analysis.

Orbit Interpolation

Orbit Interpolation

Track Decomposition

Track Decomposition

Download all examples in Python source code: auto_examples_python.zip

Download all examples in Jupyter notebooks: auto_examples_jupyter.zip

Gallery generated by Sphinx-Gallery

previous

Building from source

next

Getting Started: Axes and Grids

Contents
  • Getting Started: Axes and Grids
  • Interpolation & Regridding
  • Optimal Interpolation Examples
  • Binning & Statistics
  • Geospatial & Geodetic Operations
  • Utilities & Date Handling
  • Orbit & Temporal Analysis

By CNES/CLS

© Copyright (2026, CNES/CLS).