Skip to content

Commit

Permalink
prototyping
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis committed Nov 23, 2023
1 parent 8e6bb29 commit dd1fa2e
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
16 changes: 16 additions & 0 deletions book/notes.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ This page is constantly updated on an (almost) daily base, meaning that the orde

NB: in reverse order, that is more recent stuff is at the top of the document.

## Generalisation

1. Get the extent of AoI
2. Get H3 grid with the data for the AoI
3. Make predictive models ready
4. Get Graph subset and save it as a sparse matrix
5. Create baseline predictions
5. Make accessibility ready
6. Get GTFS
7. Get network from OSM
8. Get OS Greenspace
9. Process OS Greenspace
10. Create traveltime matrix (origins are cells, destinations are cells plus greenspace entrances)
11. Wrap to a demoland_engine accessibility
12. Generate files for the app

## February

### Greens space sites
Expand Down
75 changes: 75 additions & 0 deletions code/04_generalisation/prototype.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import geopandas as gpd"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"1. Get the extent of AoI"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"aoi = gpd.read_file(\"https://github.com/Urban-Analytics-Technology-Platform/demoland-web/raw/main/web/src/data/geography.json\")"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"aoi = aoi.to_crs(27700).unary_union"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2. Get H3 grid with the data for the AoI"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"grid = "
]
}
],
"metadata": {
"kernelspec": {
"display_name": "demoland",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit dd1fa2e

Please sign in to comment.