Skip to content

Library for working with CWLS Log ASCII Standard v. 1.2, 2.0, and 3.0 .las files in Python.

License

Notifications You must be signed in to change notification settings

bzlmnop/lasfile

Repository files navigation

lasfile

Library for reading CWLS Log ASCII Standard v. 1.2, 2.0, and 3.0 .las files.

Installation

pip install lasfile

Usage

Read LAS file

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:

Version
Well
Curves
Data

View sections in LAS file

las.sections

View section data in LAS file

Using dot notation

As raw ascii text
las.well.raw_data
As pandas dataframe
las.well.df

Using dictionary notation

As raw ascii text
las['well']['raw_data']
As pandas dataframe
las['well']['df']

Errors

View all errors

las.errors

View specific errors

las.open_error
las.read_error
las.split_error
las.version_error
las.parse_error
las.validate_error

Check for errors

Check for only critical errors
lasfile.error_check(las)
Check for all errors
lasfile.error_check(las, critical_only=False)
LASSection objects can also be passed to error_check
lasfile.error_check(las.well)

License

MIT

About

Library for working with CWLS Log ASCII Standard v. 1.2, 2.0, and 3.0 .las files in Python.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published