This repository uses county growth targets to create Control Totals for PSRC's land use model Urbansim.
-
Install UV package manager
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" -
Connect to PSRC VPN before running so the pipeline can load data from Elmer and network drives
-
Create a new example by copying examples/summer_2026 or just make modifications to settings in examples/summer_2026/configs/settings.yaml
-
Run the control totals creation pipeline using -c "<configs_dir>" cmd line arg
.venv\Scripts\Activatepython control_totals\run.py -c "<path to control_totals repo>\examples\summer_2026\configs"
-
Add your census api key to your systems env variables and name it CENSUS_KEY
-
Download and install R: https://cloud.r-project.org/
-
Install needed R packages from the R terminal:
install.packages("data.table","openxlsx","RMySQL","ggplot2","raster") -
Update file paths in the .R files in r_scripts/
-
Copy creds.txt into r_scripts (creds.txt contains username and password for urbansim base year mysql database)
-
Run the control totals creation pipeline using -c "<configs_dir>" cmd line arg
.venv\Scripts\Activatepython control_totals\run.py -c "<path to control_totals repo>\examples\legacy_luvit\configs"