tobler.area_weighted.area_tables

tobler.area_weighted.area_tables(source_df, target_df)[source]

Construct area allocation and source-target correspondence tables.

Parameters
source_dfgeopandas.GeoDataFrame
target_dfgeopandas.GeoDataFrame
Returns
tablestuple (optional)

two 2-D numpy arrays SU: area of intersection of source geometry i with union geometry j UT: binary mapping of union geometry j to target geometry t

Notes

The assumption is both dataframes have the same coordinate reference system.

Union geometry is a geometry formed by the intersection of a source geometry and a target geometry

SU Maps source geometry to union geometry, UT maps union geometry to target geometry