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

updates to spatial functions: switch raster to terra #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jwtrubil
Copy link

@jwtrubil jwtrubil commented Jan 3, 2024

updates to spatial functions: switch raster to terra

As requested by Dan Moore, updates to the spatial catchment delineation code

Description

The main thing is removing use of the raster package, putting terra in place of it. Additionally, I took out all use of the magrittr package and switched to the base R pipe.

Related Issue

I also fixed one issue with creation of working directories in the spatial data. It is now possible to use relative file paths for data downloads (ch_get_url_data.R).

The temporary folder creation for the spatial data seems to work well. However, I notice that the map function ( ch_get_map_base.R) uses a different method for creating a map data working directory. I recommend Dan and Paul decide on one route to do the same thing in both cases.

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