Skip to content
Prev 23999 / 29559 Next

LiDAR LAS file import into R via RSAGA

In case it's of any use to others, I've been scripting some LiDAR
processing from R using LASTools, focused on dealing with many individual
las files.  At this point we've just been extracting a bunch of metadata
fields to get a sense of what we have, fixing some metadata errors that
we're aware of, and reprojecting data. We've got lots of data for a region
that are in various projections, and sometimes the LAS metadata are just
incorrect, so the functions as written are designed to help us deal with
those issues, but can easily be adapted for other purposes.

These functions use foreach and doparallel to use multi-core processors to
speed things along, running LasTools via system commands.  This work is
still in fairly early stages and admittedly needs some better organization
and documentation.  At this point, we've exclusively been calling on
LasTools functions that do not require a paid license, and plan to keep it
as such for now.

Also, we were exploring use on both linux and windows systems on an
external server, and the linux setups have been a lot faster, so functions
ending in unix.R are the most up to date [the changes to go back to windows
are pretty simple].  (as I said, we need to organize, but it is functional
for our purposes now...).

The code is available in a github repository:
https://github.com/mltConsEcol/OK_LiDAR_Processing

Feel free to contact me with questions on this code, suggestions, or want
to contribute any additions (and I'd be curious to hear if anybody does end
up using it). I think some future functions will call on the rLidar
package, and we'll see where our next steps take us...

Best,
mike






On Fri, Feb 12, 2016 at 2:32 AM, Chris Reudenbach <reudenbach at uni-marburg.de