Closed spono closed 1 year ago
I then modified the function in order to work with ScanAngle and, in the end, I got this:
What did you do to get this error ?
In the las specification ScanAngleRank
is an integer attribute which is supposed to record the rank of the scan angle. 10 is not 10 degree but the 10th angle of the sampling device. Usually we are assuming that the value n
corresponds to n
degrees and it is probably what is recorded. The ScanAngle
on another hand records the actual off nadir angle with decimal numbers (after conversion from raw data). So scan angle and scan angle rank are two different things and in lidR
I choose to make them different. Some software may opt to call them the same but in rlas
I opt to stay as close as possible to the spec.
So basically you juste have to call your metrics function
mymetrics(X,Y,Z, ScanAngle)
instead of
mymetrics(X,Y,Z, ScanAngleRank)
mymetrics(X,Y,Z, ScanAngle)
great, that's what I did in the meatime as a workaround.
What did you do to get this error ?
(I'm out of the office, I'll let you know as soon as I replicate it)
Ciao JR, I'm having some issues with some new files I received.
Running an analysis I got this error:
.my_metrics
callsScanAngleRank
in a pretty regular way:I checked the data in R and it seems that
ScanAngleRank
is reported asScanAngle
.As a crosscheck, I tried to load a LAZ in CloudCompare and the weird thing is that
ScanAngleRank
is there.I then modified the function in order to work with ScanAngle and, in the end, I got this:
According to the header, is IS a 1.4 format.
The only thing I know is that these LAZ derive from originally LAS file lately compressed using -I guess- Lastools.
Any idea? let me know if you need a file