Skip to content

sun-data/regridding

Repository files navigation

regridding

tests codecov Black Ruff Documentation Status PyPI version

Numba-accelerated multilinear and first-order conservative interpolation of Numpy arrays.

Installation

regridding is published on the Python Package Index and can be installed using pip

pip install regridding

Features

  • 1D linear interpolation
  • 2D first-order conservative resampling of logically-rectangular curvilinear grids

Gallery

2D conservative resampling

regridding.regrid() can be used to perform flux-conserving 2D resampling using the "conservative" method.

conservative resampling