- class momepy.Courtyards(gdf, spatial_weights=None, verbose=True)#
Calculate the number of courtyards within the joined structure.
Adapted from [Schirmer and Axhausen, 2015].
GeoDataFrame containing objects to analyse
- spatial_weightslibpysal.weights, optional
spatial weights matrix - If None, Queen contiguity matrix will be calculated based on objects. It is to denote adjacent buildings (note: based on integer index).
- verbosebool (default True)
if True, shows progress bars in loops and indication of steps
>>> buildings_df['courtyards'] = mm.Courtyards(buildings_df).series Calculating spatial weights...
Series containing resulting values
spatial weights matrix
- __init__(gdf, spatial_weights=None, verbose=True)#
__init__(gdf[, spatial_weights, verbose])