com7Regional.splitInputs.getScenarioGroups
- getScenarioGroups(inputShp, fieldNames)[source]
Group shapefile records by their scenario attribute.
- Parameters
inputShp (pathlib.Path) – Path to input shapefile
fieldNames (list) – List of field names in the shapefile
- Returns
scenarios – Dictionary mapping scenario names to lists of shape records
- Return type
dict