Library for reading CWLS Log ASCII Standard v. 1.2, 2.0, and 3.0 .las files.
pip install lasfile
import lasfile
las = lasfile.LASFile(file_path='path/to/file.las')
In order for an lasfile to properly read, and pass a critical error check, it must have the following sections:
las.sections
las.well.raw_data
las.well.df
las['well']['raw_data']
las['well']['df']
las.errors
las.open_error
las.read_error
las.split_error
las.version_error
las.parse_error
las.validate_error
lasfile.error_check(las)
lasfile.error_check(las, critical_only=False)
lasfile.error_check(las.well)