hydromt_delwaq.workflows.roads.roads_emissions_segments#

hydromt_delwaq.workflows.roads.roads_emissions_segments(gdf_roads: ~geopandas.geodataframe.GeoDataFrame, ds_like: ~xarray.core.dataset.Dataset, highway_list: ~typing.List[str], non_highway_list: ~typing.List[str] = None, logger=<Logger hydromt_delwaq.workflows.roads (WARNING)>) Dataset[source]#

Compute roads statistics per segment/grid cell.

Parameters:
  • gdf_roads (geopandas.GeoDataFrame) –

    GeoDataFrame containing roads shape.

    • Required columns: road_type.

  • ds_like (xarray.Dataset) –

    Dataset at model resolution.

    • Required variables: mask.

  • highway_list (list of str) – List of highway road types.

  • non_highway_list (list of str, optional) – List of non-highway road types. If None, all road types not in highway_list are considered as non-highway.

Returns:

ds_segments – Dataset contains roads statistics per segment/grid cell. Contains the following variables:

  • hwy_length: highway road length per segment/grid cell.

  • nnhwy_length: non-highway road length per segment/grid cell.

Return type:

xarray.Dataset