Hi Jarlath,
This is pretty straightforward. Just make sure that the location where
you have LAStools extracted (more specifically the bin folder) is in
the path for your system environment variables. Now you may use some
simple Windows shell scripting (like a FOR loop) such as the following
example which runs lasgrid on a directory of input data to create
output DSM files on the highest of first returns for the specified
cell size:
FOR /f %a IN ('dir /b E:\LAS_TEST\LAS_FILES\*.las’) DO lasgrid –v –i
E:\LAS_TEST\LAS_FILES\%~na.las –o E:\LAS_TEST\DSM_FILES\%~na.tif -step
5 -first_only -highest
The /b for the directory listing returns a bare format and the %~na
returns the 'base name' only without the extension. Thus, you can make
a file with the same base name and a different extension for your
output.I have found it handy to keep base name consistency and use
folders to manage O/P types. This is true n particular if I have a
large tile index (with LAS basename files as an attribute) and I want
to use that same index for managing output rasters or other file
types.
I have tested this for processing thousands of input LAS inputs for
boundary generation, compression, intensity images, DEMs, etc. This
works as a command line input, however to run as full batch you must
change the syntax slightly in the FOR looping. There are lots of
places to get full details about how this is best done.
B/T/W -- I'd be happy to work with you on series of LAB exercises for
using LAStools to process data and perform meaningful processing. I
think it would make a nice workshop or short course.
Good luck!
Regards - Chuck O'Hara