rasterize_canopy errors with terra and raster packages #550
Unanswered
poornima-s10
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Please provide a minimal reproducible example. I cannot do anything if I can't repoduce. Thanks |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have recently started using lidR and have run into some issues with rasterize_canopy. I saw that there were several changes in
utils_raster.R
related to functions used inrasterize_canopy
(functions:raster_materialize
,raster_layout
andraster_set_values
) some months ago.I have included some information below, but am unable to share a reproducible example and am looking for some pointers on how to debug this further.
I have a ground classified/normalised point cloud. I am using lascatalog mainly but in this case have tested both
LAScatalog
andLAS
objects withrasterize_canopy
(to rule out any issues with myLAScatalog
chunks).This is the command I am using
(also tested with las object :
The error when using the default 'terra' package:
I tried changing the default to 'raster' using the following command:
This goes through but the output is incorrect, the projection is all wrong:
This is the CHM overlaid on an orthomosaic of the site:
The CRS is projected CS GDA2020 MGA Zone 55 (EPSG: 7855). The point spacing is 0.02. Appreciate any advice. Please let me know if more details will be helpful.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions