momepy.
VolumeFacadeRatio
Calculates volume/facade ratio of each object in given GeoDataFrame.
Adapted from [SA15].
GeoDataFrame containing objects
the name of the dataframe column, np.array, or pd.Series where is stored height value
np.array
pd.Series
the name of the dataframe column, np.array, or pd.Series where is stored volume value
the name of the dataframe column, np.array, or pd.Series where is stored perimeter value
Examples
>>> buildings_df['vfr'] = momepy.VolumeFacadeRatio(buildings_df, 'height').series >>> buildings_df.vfr[0] 5.310715735236504
Series containing resulting values
original GeoDataFrame
Series containing used perimeter values
Series containing used volume values
__init__
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(gdf, heights[, volumes, perimeters])
Initialize self.