com7Regional.splitInputs.splitInputsMain
- splitInputsMain(avalancheDir, outputDir, cfg, cfgMain)[source]
Process and organize avalanche input data into individual avalanche directories based on release area’s “group” and “scenario” attributes provided in the release area file. If no “group” attribute is provided, one avalanche directory per feature will be created (scenario is ignored in this case).
- Parameters
avalancheDir (pathlib.Path object) – Path to input directory containing release areas (REL) and DEM files
outputDir (pathlib.Path object) – Path to output directory where organized folders will be created
cfg (dict) – Configuration settings containing: - GENERAL.bufferSize : float, buffer size for DEM clipping
cfgMain (dict) – Configuration settings containing: - FLAGS.createReport : bool, whether to write report - FLAGS.savePlot : bool, whether to save plots
- Return type
none
Notes
Expected input directory structure: avalancheDir/ └── Inputs/