Converting LAZ to LAS using laspy

laslaspylazlidarpython

I would like to convert .laz file to .las. I am using Python and I have installed laspy with lazrs extension.

I tried in Pyscripter (v4.0) following solution (this solution was mentioned here: Reading LAZ file in Python directly?):

import laspy
las = pylas.read('D:\\TEST\\test.laz')    
las = pylas.convert(las)    
las.write('D:\\TEST\\test.las')

And it even doesn't read the file. It says: "

thread '' panicked at 'index 17529 out of range for slice of
length 17521', src\libcore\slice\mod.rs:2725:5

"

However, I wanted to download LASzip (https://laszip.org/), but there is no win installation file available. It seems the site doesn't work.

Does anyone know how to convert laz to las?

Best Answer

This isn't a python fix, but in ArcPro you can just use the Convert LAS tool. I find even though its an optional parameter, you just need to make sure the coordinate system is set and it works great!