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

Major update #12

Open
wants to merge 87 commits into
base: main
Choose a base branch
from
Open

Major update #12

wants to merge 87 commits into from

Conversation

p-schaefer
Copy link

Updated most functions in some major ways. All functions now allow parallel processing. Improved management of temporary files. Improved I/O with a dedicated function.

p-schaefer added 30 commits May 10, 2022 12:32
Added target_uid to TEMP file names
clip_region was not written as TEMP-clip_region.shp when supplied as character pointing to a .tif file
replaced wbt_clip_raster_to_polygon() with terra::crop() because I believe its faster for large polygons
Removed raster::rastTmpFile() because there is no terra equivalent
modifications to terra function
set crs in a few more places
replaced Naflag with NAflag for terra::writeRaster
made terra temporary files save to unique folder to allow parallel processing
changed options to gdal in writeRaster
replaced wbt_clip_raster_to_polygon with terra::crop in flow_accum step
reprojected accum_clip again to match clip_dem
missed a method = "near"
forgot an '_' infront of one of the TEMP files
removed terraOptions (might not allow parallelizing the function)
 Fixed an issue when target_o and target_s were given as characters
Removed restart
Merge branch 'main' of https://github.com/p-schaefer/hydroweight into main

# Conflicts:
#	README.md
…ighted variables no longer calculated on lumped weights
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.

1 participant