Tool for preparing land use and parking inputs for ABM3 from Estimates and Forecasts outputs. Household and person processing is handled by the Population-Sim pipeline. There are three main parts of the tool:
- Process outputs of the 2022 parking inventory to impute missing data.
- Estimate regression models to predict the number of free and paid spaces in an MGRA.
- Create land use inputs for running ABM.
Unless there are changes to the base year network or inventory, only the third step needs to be run.
A dictionary of the settings in config.yaml can be found here.
- Gain access to the database RP2025 on the server DGISWSQL22 from GIS.
- Create a directory to run in.
- Clone the repo into the directory.
- Create anaconda environment using the environment.yml file.
- Open up config_[YEAR].yaml and set
run_ABM_preprocessto beTrue. - If no parking policy is being applied, set
implement_policyto beFalse. - Edit the setting
EF_dirandbase_luto be the directory with the outputs from Estimates and Forecasts that the land use prep tool will process. - Edit the
output_dirto the desired output location. - Update the name of config file with scenario year.
- Open Anaconda prompt, navigate into the cloned repo and activate the environment and run run_landuse_preprocessing.bat. The files will be created in the specified
output_dir
- Create a directory to run in and clone the repo into the directory. Create folders in the clone called "parking_processed" and "parking_inputs"
- Copy the the files auxiliary_columns.csv and micro_mobility_allyears.csv from T:\ABM\data\sr15_inputs\landuse_prep into the directory.
- Copy the file 'mgra_parking_inventory.csv' from T:\ABM\data\sr15_inputs\landuse_prep\parking_inputs into the parking_inputs folder ("old" folder not needed).
- Copy ParkingPolicies_[YEAR].csv from T:\ABM\data\sr15_inputs\landuse_prep\parking_outputs into the _processed folder.
- Open up config_procpkg.yaml and set
run_parking_inventory_preprocessand 'run_parking_space_estimation' to beTrue. - Edit the setting
base_luto be the directory with the outputs from Estimates and Forecasts that the land use prep tool will process. - Edit the setting
bike_netand 'bike_node' to be the directory with the latest active transportation network. - Open Anaconda prompt, navigate into the cloned repo and create an Anaconda environment using the environment.yml file.
- Activate the environment and run run_parking_preprocessing.bat. The files will be created in the specified
parking_output_dir
- secrets.yml
Copy secrets.example.yml to secrets.yml and fill in the workspace URL, SQL warehouse id, catalog and schema. This file is included in the .gitignore to keep it private.
databricks:
host: "<workspace-url>" # Databricks workspace URL
warehouse_id: "<warehouse-id>" # SQL Warehouse connection details
catalog: "<catalog>" # Catalog for PopulationSim output tables
schema: "<schema>" # Schema for PopulationSim output tables- config_[YEAR].yaml
Set popsim_run_id to the PopulationSim run to read. popsim_landuse_table is the Databricks table the land use is read from (silver_mgra_based_input).
- Sign in
When the land use is read from Databricks, a browser window opens to sign in with your Databricks account.