momepy.
FloorArea
Calculates floor area of each object based on height and area.
Number of floors is simplified into formula height / 3 (it is assumed that on average one floor is approximately 3 metres)
GeoDataFrame containing objects to analyse
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 area value. If set to None, function will calculate areas during the process without saving them separately.
Examples
>>> buildings['floor_area'] = momepy.FloorArea(buildings, ... heights='height_col').series Calculating floor areas... Floor areas calculated. >>> buildings.floor_area[0] 2185.672484113309
>>> buildings['floor_area'] = momepy.FloorArea(buildings, heights='height_col', ... areas='area_col').series >>> buildings.floor_area[0] 2185.672484113309
Series containing resulting values
original GeoDataFrame
Series containing used heights values
Series containing used areas values
__init__
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(gdf, heights[, areas])
Initialize self.