API

This is a beta version of the documentation written in MyST with autodoc2

Area Weighted Interpolation

Area weighted approaches use the area of overlap between the source and target geometries to weight the variables being assigned to the target.

tobler.area_weighted.area_interpolate.area_interpolate

Area interpolation for extensive, intensive and categorical variables.

tobler.area_weighted.area_join.area_join

Join variables from source_df based on the largest intersection. In case of a tie it picks the first one.

Dasymetric Interpolation

Dasymetric approaches use auxiliary data in addition to use the area of overlap between the source and target geometries to weight the variables being assigned to the target.

tobler.dasymetric.raster_tools.extract_raster_features

Generate a geodataframe from raster data by polygonizing contiguous pixels with the same value using rasterio’s features module.

tobler.dasymetric.masked_area_interpolate.masked_area_interpolate

Interpolate data between two polygonal datasets using an auxiliary raster to mask out uninhabited land.

Pycnophylactic Interpolation

Pycnophylactic interpolation is based on Tobler’s technique for generating smooth, volume-preserving contour maps.

tobler.pycno.pycno.pycno_interpolate

Pycnophylactic Inerpolation.

Utility Functions

tobler.util.util.h3fy

Generate a hexgrid geodataframe that covers the face of a source geodataframe.

tobler.util.util.circumradius

Find the circumradius of an h3 hexagon at given resolution.