hydromt_delwaq.workflows.roads.roads_emissions_country#
- hydromt_delwaq.workflows.roads.roads_emissions_country(gdf_roads: ~geopandas.geodataframe.GeoDataFrame, gdf_country: ~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 country of interest.
- Parameters:
gdf_roads (geopandas.GeoDataFrame) –
GeoDataFrame containing roads shape.
Required columns:
road_type
.
gdf_country (geopandas.GeoDataFrame) – GeoDataFrame containing country shape.
ds_like (xarray.Dataset) –
Dataset at model resolution.
Required variables:
mask
.
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_country – Dataset contains roads statistics per country of interest. Contains the following variables:
hwy_length_sum_country
: highway road length per country of interest.nnhwy_length_sum_country
: non-highway road length per country of interest.
- Return type: