Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-use of flowaccumualtion and flow direction map #58

Open
TillF opened this issue Jan 11, 2024 · 2 comments
Open

Re-use of flowaccumualtion and flow direction map #58

TillF opened this issue Jan 11, 2024 · 2 comments

Comments

@TillF
Copy link
Collaborator

TillF commented Jan 11, 2024

Currently, flowaccumulation and flow direction map are both being calculated in calc_subbas() and lump_grass_prep().
If would save lots of cimputational time, if r.watershed could re-use any exsisting maps. Currently, this doesn't seem to be possible though. Let's verify this, though.

@tpilz
Copy link
Owner

tpilz commented Jan 24, 2024

calc_subbas() takes them as optional input if they already exist. I'm rather sure I paid some attention that r.watershed is not executed more often than necessary.

@TillF
Copy link
Collaborator Author

TillF commented Jan 25, 2024

r.watershed wird bis zu 3 mal aufgerufen:
a) zur TEZG-Bestimmung nach Schwellenwert
b) zur TEZG-Bestimmung auf Auslasspunkt
c) zur Konstruktion der EHAs

Jedes mal wird flowaccum neu berechnet, weil r.watershed diese nicht bereits übernehmen kann. Wenn es eine Alternative zu r.watershed gäbe, die das könnte, würde das Einsparungen bringen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants