Data product
-
Clone this repository.
-
Run
pixi install
, thenpixi run build
and optionallypixi run tests
. These commands setup the enviroment and all the required packages.- Alternatively you can manually install the conda-forge dependencies, but you have to still run the pixi build and tests commands:
pixi add momepy umap-learn fast_hdbscan jupyterlab pyarrow matplotlib lonboard folium mapclassify datashader dask pip sidecar glasbey scikit-image colorcet pandas holoviews bokeh=3.1 esda pytest hdbscan
- Alternatively you can manually install the conda-forge dependencies, but you have to still run the pixi build and tests commands:
-
To run jupyter use either
pixi run jupyter lab
or pass extra arguments likepixi run jupyter lab --port 8888
. -
To run the analysis on the whole dataset - first, make sure you have the correct folder structure in place. Then, run:
code/download_buildings.ipynb
to download all the cadastre data for central europecode/explore_cadastre_data.ipynb
to standardise all the cadstre data from different countries into a single formatcode/generate_regions.ipynb
to split the buildings into regions for independent processingcode/download_streets.ipynb
to download the raw overture streets for every regioncode/processing_apartment_blocks.ipynb
to update socialist housing in Czechia ( needs to be run after building simplification)bash full_run.sh
to run the entire processing pipeline from building, street preprocessing, element generation, characters calculations and morphotope creation.code/region_ward_clustering.ipynb
to generate the heirarchy of morphotopes.
-
(optional) to run the analysis on individual regions use -
code/process_region.ipynb
andcode/region_clustering.ipynb
notebooks.