Skip to content

Create Meso Layers

ccai-cmap edited this page Sep 25, 2025 · 9 revisions

This page describes u_create_meso_layers.py, a script which creates link and node layers for the meso-scale freight network across scenarios. To use this script, run path-to-script.

Input

input
`-- input_years.csv
`-- 2_freight
    `-- MFN.gdb
output
`-- 1_travel
    `-- MHN_all.gdb

To run this script, you must have already run u_export_future_hwys.py from the 1_travel folder. Make sure you are happy with your results.

Function

Output

output
`-- 2_freight
    `-- MFHN_all.gdb
    |-- base_feature_class_errors.txt
    |-- meso_join_errors.txt
  1. The script copies 1_travel/MHN_all.gdb into 2_freight/MFHN_all.gdb, and creates the final link and node layers within that gdb.
  2. The script outputs the file base_feature_class_errors.txt if there were issues with the base feature classes.
  3. The script outputs the error file, meso_join_errors.txt, for highway nodes which do not have a corresponding mesozone, or have multiple corresponding mesozones.
Clone this wiki locally