Monday, 4 February 2019

error - File header incorrectly reporting 0 point records in R?



I have a set of 10 LiDAR files that I'm attempting to retile and eventually use to create a Canopy Height model. I'm able to import them as a catalog, however when I go to retile my catalog, I get the following error:


Error: File not found
In addition: Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="NA": The system cannot find the file specified

Additionally, the progress figure looks like this (indicating there were not data points found in each file):


enter image description here


To investigate, I imported a single LiDAR file, and was successfully able to plot the point cloud. Proving that there definitely ARE data in the file. However, upon importing the file, I got the following warning:


Warning messages:

1: Invalid file: header states the file contains 0 points but 3408961 were found.
2: Invalid file: the header states the file contains 0 1st returns but 3322882 were found.
3: Invalid file: the header states the file contains 0 2nd returns but 81189 were found.
4: Invalid file: the header states the file contains 0 3rd returns but 4852 were found.
5: Invalid file: the header states the file contains 0 4th returns but 58 were found.

And when looking at the header, it tells me the number of point records is 0. However, using summary(), on the file, I'm told I have "3408961 points, NA pulses."


This is all very perplexing to me. Does anyone know of any possible solutions?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...