For reference, here its lasinfo report (attached).
lasinfo -i sample.laz -odix _info -otxt
Now we delete the lowest point by dropping all z below -20 meter.
las2las -i sample.laz -drop_z_below -20 -o clipped.laz
For reference, here its lasinfo report (also attached).
lasinfo -i clipped.laz -odix _info -otxt
Now we turn the LAZ file back into a PTS file:
las2las -i clipped.laz -oparse xyziRGB -opts -o clipped.pts
Here the resulting 'clipped.pts' file. The default uses centimeter resolution but this can be changed as well.
3
6473733.17 1766552.46 -4.66 -1011 36 39 32
6473452.05 1766287.15 47.12 -1362 28 30 22
6473430.75 1766281.09 32.22 -1264 20 21 16
The '-ipts' and '-opts' flags used during conversion to assure that the intensity is handled properly. Note that similar
'-iptx' and '-optx' flags exist and that they do even more (e.g. preserve the matrices). Alternatively - which may be easier because of the nice GUI - you can also use pointzip.exe and pointunzip.exe from http://pointzip.org for the conversion between PTS or PTX to LAS or LAZ and back.
But now let's put it all together in one step:
las2las -i sample.pts -ipts -iparse xyziRGB ^
-drop_z_below -20 ^
-oparse xyziRGB -opts -o clipped.pts
Cheers,
Martin @rapidlasso