Skip to content

Implement excesstopography#69

Open
wkearn wants to merge 1 commit intoTopoToolbox:mainfrom
wkearn:excesstopography
Open

Implement excesstopography#69
wkearn wants to merge 1 commit intoTopoToolbox:mainfrom
wkearn:excesstopography

Conversation

@wkearn
Copy link
Copy Markdown
Member

@wkearn wkearn commented Mar 5, 2026

Resolves #40

This PR adds

  1. A binding for libtopotoolbox's excesstopography_fsm2d
  2. An R function excesstopography
  3. A test of excesstopography

As in MATLAB/Python, excesstopography accepts either a GRIDobj or a scalar for the threshold_slope parameter. No real validation, such as checking the alignment the DEM and the threshold slope, is performed.

The test checks that excesstopography runs successfully and validates that the reconstructed topography lies below the supplied DEM.

@ktlenz: I thought I would try to remind myself how the R stuff works by implementing the excess topography wrapper. Would you mind taking a look and seeing if there is anything I should do differently? I know you're reconfiguring the GRIDobj interface a little bit, and we can wait to merge this until that's done if you'd like.

Resolves TopoToolbox#40

This PR adds

1. A binding for libtopotoolbox's `excesstopography_fsm2d`
2. An R function `excesstopography`
3. A test of `excesstopography`

As in MATLAB/Python, `excesstopography` accepts either a GRIDobj or a
scalar for the threshold_slope parameter. No real validation, such as
checking the alignment the DEM and the threshold slope, is performed.

The test checks that excesstopography runs successfully and validates
that the reconstructed topography lies below the supplied DEM.

Signed-off-by: William Kearney <william.kearney@uni-potsdam.de>
@wkearn wkearn requested a review from ktlenz March 5, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add excesstopography

1 participant