-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
lasnormalize bug on lidR 2.0 #184
Comments
Were does your DTM come from ? If it comes from an external source it is not a bug but a feature. If the DTM comes from What happened here is that 1 point was not associated with a pixel of the DTM. This point is likely to be on the very edge of the DTM.
|
Ok I got it, your point cloud is very weird compared to regular ALS data. This is, with no doubt, the explanation for your issue. I guess in this image red are ground points and blue are others. Using version 2.0 you can try to enforce the positioning of the interpolation providing a # make a raster that encompass the point cloud
layout = raster(extent(las))
res(layout) = 5
# Force to interpolate in these pixels
dtm = grid_terrrain(las, res = layout, algorithm = kriging(k = 10)) Obviously you will get some very very weak elevation prediction in pixels that are far from ground points (potentially outside of the point cloud itself, for example on bottom left of the picture) and weak prediction in pixels that are not well covered by ground points (for example blue points on the right side of the picture) but you won't have points that fall in a non interpolated area. Notice that |
OK, that should solve it. Thanks! |
Hi there, I've been trying to run
lasnormalize
with the DTM as input for ground reference and I've been getting the following error:Error: 1 points were not normalizable because the DTM contained NA values. Process aborded.
It happens even if I remove or replace the NAs in the DTM raster object - which was generated using the
grid_terrain
function. I only got it to work when setting the DTM pixel resolution to 5m or more, for higher resolutions the error happens recurrently.Hope it has an easy fix! If a data sample is necessary for reproducing the error I can share the point cloud.
Cheers
The text was updated successfully, but these errors were encountered: