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

cir function: ReturnAngles/ReturnDistances #290

Closed
aclason opened this Issue Jun 23, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@aclason

aclason commented Jun 23, 2016

This is basically the same example as that given in the help file, but with larger extent and pixel size.

Issue 1 - (No fix, just need to describe in help file) It seems that units are in meters (not pixels)
Issue 2 - returnAngles will not return the angles if returnDistances also = TRUE

r <- raster(extent(627940.9, 657940.9, 775411.8, 805411.8),res=2500)
r[] <- 1
N <- 6
test_coords <- cbind(x = stats::runif(N, xmin(r), xmax(r)), y = stats::runif(N, ymin(r), ymax(r)))

out <- cir(r, test_coords, returnAngles = FALSE, returnIndices=TRUE, returnDistances = TRUE, maxRadius = 2600, minRadius = 1, allowOverlap = TRUE)

@aclason aclason changed the title from ReturnAngles/ReturnDistances to cir function: ReturnAngles/ReturnDistances Jun 23, 2016

@eliotmcintire

This comment has been minimized.

Contributor

eliotmcintire commented Jun 23, 2016

fixed and closed
f48f0a1

achubaty added a commit that referenced this issue Jun 23, 2016

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