Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use urban typology for activity chain matching #209

Conversation

aburianne
Copy link
Collaborator

@aburianne aburianne commented Jan 30, 2024

ENTD (national mobility survey) can be used to generate synthetic population (with Synpop) over any metropolitan french territory. It is mostly used whether there are no available EMD or EDGT (local mobility survey with higer sampling).

ENTD is (main method) filtered by departments (i.e.: Gironde-33, Paris-75) composing the survey area, leaving us with critical low sampling issues. Therefore we aim to change approach on sampling and parameters inputs for agents mobility behaviors.

Our proposal is to keep all of metropolitan France (NO department filter) and to apply a typology based on 4 classes :

  • central city
  • suburbs
  • isolated city
  • rural / countryside

Doing so, we assume same mobility behaviors patterns within classes, i.e. : Lyon, Bordeaux, Marseille... and significant deviation between classes.

This 4 classes typology is computed and open source distributed by INSEE. It is refered to as "Unités Urbaines" (UU). INSEE internal main use of this dataset is to adapt statistics methods to context. The data comes as Microsoft Excel (.xlsx) worksheet with a 2010 and a 2020 version with official geographical code milleisim options.

The UU typology being availble both in ENTD and official geographical codes for all of metropolitan France it is suitable for the process.

  • review code
  • set option name and mecanism ( urban_units or any other relevant name)
  • write and validate test (new fake data set of UU and hascodes)
  • changes for other territories? (Corisca, Toulon, Lyon, Nantes...)
  • write documentation
  • do we share the jupyter notebook with ENTD filtering methods comparison for reproductible science, so people can evaluate on any french territory?

@aburianne aburianne linked an issue Jan 30, 2024 that may be closed by this pull request
4 tasks
@aburianne aburianne self-assigned this Jan 30, 2024
@aburianne aburianne added the enhancement New feature or request label Jan 30, 2024
matsim/runtime/eqasim.py Outdated Show resolved Hide resolved
data/spatial/uu.py Outdated Show resolved Hide resolved
@aburianne aburianne marked this pull request as ready for review January 30, 2024 10:44
.gitignore Outdated Show resolved Hide resolved
config.yml Outdated Show resolved Hide resolved
config_bordeaux_0.1.yml Outdated Show resolved Hide resolved
data/census/cleaned.py Outdated Show resolved Hide resolved
data/census/cleaned.py Outdated Show resolved Hide resolved
data/hts/entd/cleaned.py Outdated Show resolved Hide resolved
data/hts/entd/cleaned.py Outdated Show resolved Hide resolved
data/hts/hts.py Outdated Show resolved Hide resolved
data/hts/hts.py Outdated Show resolved Hide resolved
matsim/runtime/eqasim.py Outdated Show resolved Hide resolved
@sebhoerl
Copy link
Contributor

  • Cleaned up the code
  • I propose to name the attributes urban_type and then have either suburb, center_city, isolated_city, but all the remaining zones are none

@sebhoerl
Copy link
Contributor

sebhoerl commented Mar 18, 2024

To use the urban type one needs now to

  • set use_urban_type: true in the configuration (this imputes the information)
  • set matching_attributes: ["urban_type", "*default*"] this prepends the urban_type to the default matching attributes

@sebhoerl sebhoerl changed the title urban units option for ENTD feat: use urban typology for activity chain matching Mar 18, 2024
@sebhoerl sebhoerl merged commit 43af03e into develop Mar 18, 2024
2 checks passed
@sebhoerl sebhoerl deleted the 194-changing-entd-filtering-method-from-departments-to-urban-rural-typologie branch March 18, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

changing ENTD filtering method from departments to urban / rural typologie
2 participants