-
Notifications
You must be signed in to change notification settings - Fork 12
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
revise parallelisation of area2catena #16
Comments
Tried to avoid replication of complete grids during parallel processing within area2catena(). However, there are problems when trying to access one GRASS location in parallel. So far, I could not find a suitable solution but this commit can be used as a starting point for later development. See also https://grasswiki.osgeo.org/wiki/Parallel_GRASS_jobs
Alternatively, we could only pass parts of the entire grids to function eha_calc(). Either rechtangular parts of the entire scene (e.g. quadrants) or even only the extents of single EHAs. I could look into that, but not currently. |
Dear Tobias and Till, Summary: For study areas larger than ours you might use a server or a computer that has more RAM than 8 GB. Details: Region: DATA: Digital Elevation Model: |----------------------------------------------------------------------------| Flow Accum |----------------------------------------------------------------------------| Eha |----------------------------------------------------------------------------| dist_riv |----------------------------------------------------------------------------| elev_riv |----------------------------------------------------------------------------| svc |----------------------------------------------------------------------------| Kind regards, |
Hi Lisa and José, yes, the problem with very large sites is known to us. So far we have not succeeded in finding an appropriate solution to make the function more efficient in terms of storage handling (see comments above). For the meantime, here some general suggestions in order to improve your calculations: Use integer values for raster data (where is makes sense) Shrink your region as much as possible Adjust lumpR parameters Break down the problem I hope to have helped you with these suggestions. Otherwise, feel free to further discuss this issue. Tobias |
Hi Tobias! |
A comment on the region settings: I scaled down the region in my R Template with |
Hi Lisa, By the way, I also suggest always to consider |
In the current form, the parallelisation of area2catena seems to require the replication of the large grids. Instead, the parallelisation of calls just using the data required for single EHAs could improve performance significantly.
The text was updated successfully, but these errors were encountered: