momepy.NeighboringStreetOrientationDeviation#

class momepy.NeighboringStreetOrientationDeviation(gdf)[source]#

Calculate the mean deviation of solar orientation of adjacent streets

Orientation of street segment is represented by the orientation of line connecting first and last point of the segment.

\[\frac{1}{n}\sum_{i=1}^n dev_i=\frac{dev_1+dev_2+\cdots+dev_n}{n}\]
Parameters
gdfGeoDataFrame

GeoDataFrame containing street network to analyse

Examples

>>> streets_df['orient_dev'] = momepy.NeighboringStreetOrientationDeviation(
...     streets_df
... ).series
>>> streets_df['orient_dev'][6]
7.043096518688273
Attributes
seriesSeries

Series containing resulting values

gdfGeoDataFrame

original GeoDataFrame

orientationSeries

Series containing used street orientation values

__init__(gdf)[source]#

Methods

__init__(gdf)