Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b92aa5c
Create runCom6Scarp.py
dwolfsch Nov 11, 2024
7a3c84c
Create scarpCfg.ini
dwolfsch Nov 11, 2024
0d10f18
Create scarp.py
dwolfsch Nov 11, 2024
84f47aa
com6RockAvalanche: update scarp.py, runCom6Scarp.py & scarpCfg.ini, a…
dwolfsch Dec 22, 2024
f7517ce
Minor code cleanup
fso42 Jan 29, 2025
9881144
feat(com6-rock-avalanche): refactor scarp analysis workflow
fso42 Apr 24, 2025
a0f86bf
feat(com6RockAvalanche): implement shapefile input for scarp
fso42 Apr 25, 2025
f238002
Create runCom6Scarp.py
dwolfsch Nov 11, 2024
f6c3e85
Create scarpCfg.ini
dwolfsch Nov 11, 2024
7115f1c
Create scarp.py
dwolfsch Nov 11, 2024
2544dbc
com6RockAvalanche: update scarp.py, runCom6Scarp.py & scarpCfg.ini, a…
dwolfsch Dec 22, 2024
c0250f3
Minor code cleanup
fso42 Jan 29, 2025
8af8df4
feat(com6-rock-avalanche): refactor scarp analysis workflow
fso42 Apr 24, 2025
a6b5457
feat(com6RockAvalanche): implement shapefile input for scarp
fso42 Apr 25, 2025
c665a25
Merge branch 'scarp' of https://github.com/avaframe/AvaFrame into scarp
dwolfsch May 15, 2025
6d8f1cc
(com6RockAvalanche): implement shapefile input for scarp
dwolfsch May 18, 2025
64aa692
Create runCom6Scarp.py
dwolfsch Nov 11, 2024
f1a9b24
feat(com6-rock-avalanche): refactor scarp analysis workflow
fso42 Jan 29, 2025
52cf71d
fix(config): update avalanche directory path in configuration file
fso42 May 21, 2025
427e752
fix(avaframeCfg): remove unnecessary empty line in configuration file
fso42 May 21, 2025
b130582
docs(scarp): update SCARP documentation with detailed input/output in…
fso42 May 22, 2025
2366c02
docs(moduleCom6RockAvalanche): update documentation for scarp calcula…
fso42 May 22, 2025
c529e61
refactor(docs): update output paths in moduleCom6RockAvalanche docume…
fso42 May 22, 2025
e679efa
Merge branch 'scarp' of https://github.com/avaframe/AvaFrame into scarp
dwolfsch May 27, 2025
4bd6eaf
scarpUpdate
dwolfsch Aug 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/runTestSinglePython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,6 @@ jobs:
- name: Test with pytest
run: |
pytest -ra --cov --cov-report=xml --cov-report lcov:cov.info --cov-config=.coveragerc
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v9.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_ID }}
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# fail_ci_if_error: false
# name: codecov-umbrella
# verbose: true
- uses: qltysh/qlty-action/coverage@main
with:
coverage-token: ${{secrets.QLTY_COVERAGE_TOKEN}}
Expand Down
3 changes: 2 additions & 1 deletion avaframe/avaframeCfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

[MAIN]
# Path to avalanche directory
avalancheDir = data/avaParabola
avalancheDir = data/scarpExample


# number of CPU cores to use for the computation of com1DFA
# possible values are:
Expand Down
32 changes: 32 additions & 0 deletions avaframe/com6RockAvalanche/ScarpReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Prepare files and config file (avaframeCfg.ini):
- Set path to avalancheDir in avaframeCfg.ini and create it
- Inputs:
o All input files are automatically read from the set avalancheDir. No file paths need to be specified
o elevation: DEM (ASCII), which serves as the basis for calculating the scarps. Must be in avalancheDir/Inputs.
o shapefile: A shapefile containing point geometries. These points represent the centers of the ellipsoids or planes. The coordinates (x,y) of these points are used. If the plane method is used, the shape file must contain the Attributes "zseed", "dip" and "slopeangle" as float values. If the ellipsoid method is used, the shape file must contain the Attributes "maxdepth", "semimajor", "semiminor", "tilt", "direc", "dip", "offset". The file must be located in avalancheDir/Inputs/POINTS and file name must end with “_coordinates”.
o perimeter_shapefile: A shapefile that specifies a boundary area. Must be located in avalancheDir/Inputs/POLYGONS and file name must end with “_perimeter”.

-Output:
o elevscarp: Output DGM (ASCII or GeoTIFF), which maps the input DGM minus the calculated scarp. Is saved under “raster_scarp.asc” in avalancheDir/Inputs/RASTERS.
o hrelease: File path to the output DGM (ASCII or GeoTIFF), which represents the calculated scarp volumes.Is saved under “raster_rel.asc” in avalancheDir/Inputs/REL.

Prepare the config file (scarpCfg.ini):
- Input:
o set useShapefiles = True
- Settings:
o method: Here you specify whether the plane or the ellipsoid method should be used

If all the data is provided successfully, start the script by running runCom6Scarp.py

Attribute meanings:
zseed: defines z coordinate of plane Center (m)
dip: direction in which the plane/slope is facing (degree)
slopeangle: steepness/angle of the slope (degree)

maxdepth: maximum depth of the ellipsoid (m)
semimajor: length of the major axis (m)
semiminor: length of the minor axis (m)
tilt: steepness/angle of the slope (degree)
direc: direction in which the slope is facing (degree)
dip: direction in which the ellipsoid is facing (degree)
Offset: offset, normal to the DEM slope (m)
Loading