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_df
geopandas.GeoDataFrame
- target_df
geopandas.GeoDataFrame
- source_df
- Returns
- tables
tuple
(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
- tables
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