hydromt_delwaq.DemissionModel.setup_roads#

DemissionModel.setup_roads(roads_fn: str | GeoDataFrame, highway_list: str | List[str], country_list: str | List[str], non_highway_list: str | List[str] = None, country_fn: str | GeoDataFrame = None)[source]#

Prepare roads statistics needed for emission modelling.

Adds model layers:

  • km_highway_country map: emission data with for each grid cell the total km of highway for the country the grid cell is in [km highway/country]

  • km_other_country map: emission data with for each grid cell the total km of non highway roads for the country the grid cell is in [km other road/country]

  • km_highway_cell map: emission data containing highway length per cell [km highway/cell]

  • km_other_cell map: emission data containing non-highway length per cell [km non-highway/cell]

  • emission factor X map: emission data from mapping file to classification

Parameters:
  • roads_fn (str) –

    Name of road data source in data_sources.yml file.

    • Required variables: [‘road_type’]

    • Optional variable: [‘length’, ‘country_code’]

  • highway_list (str or list of str) – List of highway roads in the type variable of roads_fn.

  • non_highway_list (str or list of str, optional.) – List of non highway roads in the type variable of roads_fn. If not provided takes every roads except the ones in highway_list.

  • country_list (str or list of str, optional.) – List of countries for the model area in country_fn and optionnally in country_code variable of roads_fn.

  • country_fn (str, optional.) –

    Name of country boundaries data source in data_sources.yml file.

    • Required variables: [‘country_code’]