Skip to content

Mahti has expanded its capabilities with a new small partition with core-based allocation and fast local NVMe storage! Click here for details.

LAStools

LAStools is a collection of tools for LiDAR data processing.

Usage

Using LAStools

LAStools is included in following modules:

  • lastools: 2025 (more exactly 250304), 2023 (230914) and 2022 (220613)
  • geoconda: 3.11.9, 3.10.9 and 3.10.6 (all with older 20171231)

Load one of these modules, for example the newest version (default):

module load lastools

The 2025 and 2023 versions of LAStools are based on the new native Linux version of LAStools and requires 64 at the end of all tools. You can test that the LAStools module is loaded successfully with

lasinfo64 -h

For all older versions, for example in the geoconda module, you will need to omit the 64 at the end of the tool name, for example:

lasinfo -h

For using licensed tools for testing, use -demo in the command, see Lastools documentation for more information.

LAStools commands

All lastool installations in Puhti include the open source tools of LAStools.

  • las2las - extracts last returns, clips, subsamples, translates, etc ...
  • las2txt - turns LAS into human-readable and easy-to-parse ASCII
  • lasdiff - compares the data of two LAS/LAZ/ASCII files
  • lasindex - creates a spatial index LAX file for fast spatial queries
  • lasinfo - prints out a quick overview of the contents of a LAS file
  • lasmerge - merges several LAS or LAZ files into a single LAS or LAZ file
  • lasprecision - analyses the actual precision of the LIDAR points
  • laszip - compresses the LAS files in a completely lossless manner
  • txt2las - converts LIDAR data from ASCII text to binary LAS format

The 2025 and 2023 version includes also: lasoptimize64, las2dem64, las2iso64, las2shp64, las2tin64, las3dpoly64, lasboundary64, lascanopy64, lasclassify64, lasclip64, lascolor64, lascontrol64, lascopy64, lasdatum64, lasdistance64, lasduplicate64, lasgrid64, lasground64, lasground_new64, lasheight64, lasintensity64, laslayers64, lasnoise64, lasoverage64, lasoverlap64, lasreturn64, lassort64, lassplit64, lasthin64, lastile64, lastrack64, lasvdatum64, lasvoxel64. 2025 version has additionally: blast2dem64, demdiff64, demzip64, e572las64, lascopcindex64, laslicman64, lasplanes64, lasprobe64 and shp2las64. See the License for terms of use for these tools.

2023 version does not support multi-core processing, but 2025 version does.

In Puhti, only the command line tools are available, without the graphical user interface.

Using a licensed version

CSC provides only the "free" version of LAStools. If you have your own license for LAStools, it can be used also in Puhti.

For using the 2023 native Linux version, copy the license file to your projects projappl directory in Puhti and provide the license file location as environment variable before using the tools:

export LAStoolsLicenseFile=/projappl/project_200xxxx/yyy/lastoolslicense.txt

Alternative: Also using the licensed Windows version is possible with wine (Windows emulator). You can install the .exe files yourself for your project. Download and unzip LAStools to your projappl disk area.

cd /projappl/<your_project>
wget https://lastools.github.io/download/LAStools.zip
unzip LAStools.zip

Then add your license file to the /bin folder and you can start running the .exe files with wine64

Notice you can only use the 64-bit versions of the tools with wine64

Here is an example of running lasinfo64.exe with wine64

module load wine
wine64 lasinfo64.exe -i <LAS file>

Finnish National Land Survey's lidar data in Puhti

The Finnish national lidar data is already stored in Puhti. You can find it from filepath: /appl/data/geo/mml/laserkeilaus. More info.

LAStools with many files

If you are processing large number of lidar files with LAStools, it is possible in Puhti to process the files in parallel.

License

For information on the legal use and licensing of LAStools, please read the LAStools LICENSE.

Acknowledgement

If you use this software on Puhti, please acknowledge CSC and Geoportti in your publications, it is important for project continuation and funding reports. As an example, you can write "The authors wish to thank CSC - IT Center for Science, Finland (urn:nbn:fi:research-infras-2016072531) and the Open Geospatial Information Infrastructure for Research (Geoportti, urn:nbn:fi:research-infras-2016072513) for computational resources and support".

Citation

Citation of the software depends on which license was used:

  • LAStools, "Efficient LiDAR Processing Software" (version 220613, academic), obtained from http://rapidlasso.com/LAStools
  • M. Isenburg, "LAStools - efficient LiDAR processing software" (version 220613, unlicensed), obtained from http://rapidlasso.com/LAStools
  • rapidlasso GmbH, "LAStools - efficient LiDAR processing software" (version 220613, commercial), obtained from http://rapidlasso.com/LAStools

Installation

2025 and 2023 versions were installed to Puhti using Singularity container based on CSC's LasTools Apptrainer recipies and Tykky's wrap-container functionality.

#2025
wrap-container -w /opt/LAStools/bin lastools_2025.sif --prefix 2025

#2023
wrap-container -w /opt/LAStools lastools.sif --prefix 2023

2022 version was installed to Puhti with Tykky's wrap-container functionality using the LAStools Docker image from Dockerhub.

wrap-container -w /opt/LAStools docker//:pydo/lastools:latest --prefix 2022

References