Skip to content

[com1;com8;com9;in1;in2;in3] Read from raster#1193

Merged
fso42 merged 9 commits into
masterfrom
readFromRaster
Nov 13, 2025
Merged

[com1;com8;com9;in1;in2;in3] Read from raster#1193
fso42 merged 9 commits into
masterfrom
readFromRaster

Conversation

@awirb
Copy link
Copy Markdown
Contributor

@awirb awirb commented Oct 9, 2025

Allow reading input data from raster without any additional shapefile

  • release, secondaryRelease, entrainment, resistance and friction parameters
  • for thickness files (release, secondaryRelease, entrainment) - values are directly taken from raster file - where values != 0 thickness is set according to raster values
  • resistance - if values != 0 resistance area if values ==0 no resistance (parameters for resistance are taken from ini file)
  • if file provided as .asc or .tif - reading thickness from ini file does NOT work and thickness variation through ini file not possible

Todos see: #1201

Notes:
When using raster files:

  • relThFromFile is set to "True" (since thickness is read from the file)
  • But the attributes relThId, relThThickness, and relThCi95 don't exist (because
    getThicknessValue returns early for raster files)
  • The old code tried to access these non-existent attributes, causing the KeyError
  • The new code detects raster files first and skips the shapefile-specific attribute handling

Maybe fixes #1110

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request featureRequest ideas or functions that would be useful

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reltH read from file

2 participants