Skip to main content

A Python library for reading LAS files.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lasfile-0.1.47.tar.gz (21.7 kB view hashes)

Uploaded Source

Built Distribution

lasfile-0.1.47-py3-none-any.whl (21.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page