Skip to content

Commit

Permalink
plan next steps
Browse files Browse the repository at this point in the history
  • Loading branch information
temospena committed Feb 12, 2024
1 parent 786d9ff commit 1698b2f
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 8 deletions.
1 change: 1 addition & 0 deletions R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ make_grid = function(CITYlimit) {

CITYlimit_meters = st_transform(CITYlimit, 3857) #projected
cellsize = c(200, 200) #200x200m
# cellsize = cellsize

grid = st_make_grid(CITYlimit_meters,
cellsize = cellsize,
Expand Down
15 changes: 14 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,20 @@ SiteSelection is a full script that uses a dynamic pipeline, and gathers and pro
* Public Transit demand
* POI and activities

This work is part of Streets4All Project, developed at the University of Lisbon and at the University of Coimbra, and funded by Fundação para a Ciência e Tecnologia (PT).
This work is part of [Streets4All Project](https://streets4all.tecnico.ulisboa.pt), developed at the University of Lisbon and at the University of Coimbra, and funded by Fundação para a Ciência e Tecnologia (PT).

## Sources

The SIteSelection package is based in Portuguese open datasets, such as census and GTFS data.

Although it is easy to run for any location in Portugal, you may adapt the code to run at other locations (considering you have the similar data needed).

Data needed for other locations:

* Census data (population and buildings)
* GTFS data
* Administrative boundaries


## Setup

Expand Down
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,25 @@ and gathers and processes information on:
- Public Transit demand
- POI and activities

This work is part of Streets4All Project, developed at the University of
Lisbon and at the University of Coimbra, and funded by Fundação para a
Ciência e Tecnologia (PT).
This work is part of [Streets4All
Project](https://streets4all.tecnico.ulisboa.pt), developed at the
University of Lisbon and at the University of Coimbra, and funded by
Fundação para a Ciência e Tecnologia (PT).

## Sources

The SIteSelection package is based in Portuguese open datasets, such as
census and GTFS data.

Although it is easy to run for any location in Portugal, you may adapt
the code to run at other locations (considering you have the similar
data needed).

Data needed for other locations:

- Census data (population and buildings)
- GTFS data
- Administrative boundaries

## Setup

Expand Down
19 changes: 15 additions & 4 deletions code/landuse.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# aim: landuse class for each cell


# landuse -----------------------------------------------------------------

# density -----------------------------------------------------------------
ir buscar o edificado (OSM? CENSOS)
classificar o edificado (residencial, industrial, comercial, etc)
- hoteis
- edificações predominantemente residenciais
- serviços
- restauração
- comércio

# entropy - diversity -----------------------------------------------------

é por número de classes ou por área?
por número.

# entropy - diversity -----------------------------------------------------
1 valor para cada célula

# colocar info na grid --------------------------------------------------

censos edificado?

# medida associada à GRID
10 changes: 10 additions & 0 deletions code/population.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# aim: get population for each cell and then include information in the grid

# density -----------------------------------------------------------------
population
ir buscar dados onde?

centroids pop

# back to grid -------------------------------------------------------------

27 changes: 27 additions & 0 deletions code/transit.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# aim: get daily frequency of transit modes in the area


# get gtfs and validate ---------------------------------------------------

gtfs de todos as operadoras a nível nacional
filtrar as que são underground
validar
verificar data comum /(senão traspor)
gtfs merge


# calcular frequencia por hora por paragem --------------------------------

ficar com o valor máximo horário num dia típico


# procurar paragens no poligono -------------------------------------------

soma da média de frequencia de todas as paragens dentro do poligono


# classificacao -----------------------------------------------------------

ver o ranking do artigo (NACTO) e classificar a grid


3 changes: 3 additions & 0 deletions run.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
targets::tar_make()
# targets::tar_make_clustermq(workers = 2) # nolint
# targets::tar_make_future(workers = 2) # nolint


# targets::tar_make(CITY = "Cascais", cellsize = c()

0 comments on commit 1698b2f

Please sign in to comment.