-
Notifications
You must be signed in to change notification settings - Fork 87
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
distance
behaviour at edges
#1511
Comments
|
Ah, that makes sense! Thanks for the explanation! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A while ago I created a function to calculate distance on a raster using a moving window function, it was very slow but worked well enough. Recently I realized that there is a much faster
terra
function for this! Before switching over I wanted to double check that the results were the same and I found that there are some differences that are largest near the edges. I wasn't sure which was correct so I plotted a band of values from each and it looks like my slow function matches the shape of the original line more closely at the edges. It is a bit hard to tell so it could be theterra
function is more accurate but I thought I would share this comparison incase it is helpful.My
getDistFromSource
function is included in the roads package which is on CRAN or available from GitHub hereCreated on 2024-05-16 with reprex v2.1.0
On Windows 10
*Edited because I deprecated the getDistFromSource function but have kept the old method available for now with override = TRUE
The text was updated successfully, but these errors were encountered: