12  Reproducibility

12.1 Code Repository

All data preparation and analysis scripts are available in the IMPT-data GitHub repository:

github.com/U-Shift/IMPT-data

Scripts are organised with a numeric prefix indicating execution order:

Table 12.1: Pipeline script organisation
Prefix Phase Script(s)
00 Setup 00a_impt_data_handle_external.R, 00b_data_load.R
01 Geometry & base data preparation 01_data_prep.R
02 Socio-demographics & land use 02_*.R (5 scripts)
03 Routing & travel time matrices 03_ttm_gridh3.R
04 Dimension calculations 04_*.R (10 scripts)
05 Index computation 05_IMPTcalculator.R
06 Output & dashboard 06a_results_load.R, 06b_dashboard_export.R
Note

The estimate time to run all the scrips is 3 days, on a high capacity processing computer.

The estimate storage needed is 13 GB.

12.2 Replication for Other Areas

To replicate the IMPT for another Portuguese metropolitan area:

  1. Replace the CAOP 2024 filter (NUTS-II codes "Grande Lisboa" and "Península de Setúbal") with the target region.
  2. Update the GTFS operator list in 01_data_prep.R.
  3. Obtain the IMOB travel survey OD matrix for the target area, and apply the dicofre conversion if needed.
  4. Set up a HOT Export Tool bounding box for the new area.
  5. Download the relevant Copernicus DEM tile.
  6. Run scripts in order (00 → 06).

The H3 grid generation, routing engine, and scoring methodology are entirely generic and require no structural changes.

Warning

If IMOB is not available for the target area, other (recent) travel survey should be used.

12.3 Dashboard

The code to build the IMPT dashboard is not included in this repository. You can find it in the IMPT-web repository.