fatiando/verde

Processing and gridding spatial data, machine-learning style

What it solves

Scientists and engineers often have measurements taken at scattered points (like topography, bathymetry, or GPS velocities) but need a continuous, regularly spaced grid for analysis or visualization. Verde provides a Python library that processes such spatial data and interpolates it onto a 2D surface, using an interface inspired by scikit-learn to make the workflow familiar to machine-learning users.

How it works

Verde offers gridding methods that are designed like machine-learning estimators. You fit the model to your scattered data and then predict values on a regular grid. It also includes common preprocessing and analysis tools that pair well with gridding, such as removing trends, applying blocked or windowed operations, and performing cross-validation. The library integrates with the SciPy stack (numpy, pandas, scikit-learn, xarray) and supports both Cartesian and geographic coordinates, as well as scalar and vector data.

Who it's for

Researchers, geoscientists, and developers who work with spatial or geophysical survey data and need to create interpolated surfaces. It is especially useful for those already comfortable with scikit-learn's fit/predict paradigm and who want a consistent way to handle gridding tasks.

Highlights

  • Machine-learning-style interface compatible with scikit-learn conventions
  • Supports gridding of both scalar and vector data (e.g., wind speed, GPS velocities)
  • Handles both Cartesian and geographic coordinate systems
  • Includes trend removal, blocked/windowed operations, and cross-validation utilities
  • Stable and ready for production use, with a focus on avoiding breaking changes
  • Part of the Fatiando a Terra open-source geoscience ecosystem

Related

  • Project
  • Project
  • Project
  • Project
  • Project