momepy.
CellAlignment
Calculate the difference between cell orientation and orientation of object
GeoDataFrame containing objects to analyse
GeoDataFrame containing tessellation cells (or relevant spatial units)
the name of the left dataframe column, np.array, or pd.Series where is stored object orientation value (can be calculated using momepy.Orientation)
np.array
pd.Series
momepy.Orientation
the name of the right dataframe column, np.array, or pd.Series where is stored object orientation value (can be calculated using momepy.Orientation)
left
and right gdf
right
the name of the right dataframe column with unique id shared between left and right gdf
Examples
>>> buildings_df['cell_alignment'] = momepy.CellAlignment(buildings_df, ... tessellation_df, ... 'bl_orient', ... 'tes_orient', ... 'uID', ... 'uID').series >>> buildings_df['cell_alignment'][0] 0.8795123936951939
Series containing resulting values
original left GeoDataFrame
original right GeoDataFrame
Series containing used left orientations
Series containing used right orientations
Series containing used left ID
Series containing used right ID
__init__
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(left, right, left_orientations, …)
Initialize self.