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

double precision floating point error in overlayed raster #273

Closed
Jean-Romain opened this issue Sep 12, 2019 · 0 comments
Closed

double precision floating point error in overlayed raster #273

Jean-Romain opened this issue Sep 12, 2019 · 0 comments
Assignees
Labels
Bug A bug in the package

Comments

@Jean-Romain
Copy link
Collaborator

Jean-Romain commented Sep 12, 2019

library(lidR)
LASfile <- system.file("extdata", "MixedConifer.laz", package="lidR")
las <- readLAS(LASfile)
chm <- grid_canopy(las, res = 0.15, p2r())
#> Error in C_rasterize(las, layout, subcircle, 1L): Rasters with different xy resolutions are not supported
  
r = lidR:::rOverlay(las, 0.15)
  
options(digits = 20)
res(r)[1]
#> [1] 0.14999999999999999445
res(r)[2]
#> [1] 0.14999999999984503507

Created on 2019-09-12 by the reprex package (v0.3.0)

@Jean-Romain Jean-Romain self-assigned this Sep 12, 2019
@Jean-Romain Jean-Romain added the Bug A bug in the package label Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in the package
Projects
None yet
Development

No branches or pull requests

1 participant