-
Notifications
You must be signed in to change notification settings - Fork 0
create_meso_layers()
This method creates the link and node layers for the meso-scale freight highway network.
copy_meso_info()
This copies the required feature classes from the MFN into a feature dataset called meso_info within the MFHN.gdb.
create_freight_node_fcs()
- This method merges the centroid nodes and logistic nodes into a feature class called special_nodes.
- It then spatially joins the highway nodes (hwynode_all) to their corresponding mesozones (Meso_External_CMAP_merge) which creates a new feature class (hwynode_zone). If anything goes wrong in this part, it's written to
meso_join_errors.txt.
subset_to_meso()
For the years specified in input_years.csv, this method copies the highway links into a feature dataset called hwylinks_meso and subsets to the links which (1) exist in that year (NEW_BASELINK = 1), (2) are part of the meso-scale freight highway network (MESO = 1), and (3) are not centroid connectors (TYPE1 != 6).
find_hanging_nodes()
With networkx's function to determine connected components, this method finds hanging nodes and links, or nodes and links which are not connected to the rest of the meso network.
- For each of the meso networks, the method creates feature classes for the disconnected nodes in a feature dataset called hanging_nodes.
- For each of the meso networks, disconnected links are then marked with HANGING = "Y."
connect_special_nodes()
A feature dataset called conn_links is created. For each of the build years, the special nodes in the special_nodes feature class are connected to the ANODE of the nearest non-hanging link.
create_final_networks()
- A feature dataset called final_links is created. For each of the build years, non-hanging highway links are written into a feature class, as well as connector links.
- A feature dataset called final_nodes is created. For each of the build years, relevant nodes are written into a feature class.