lasio - Log ASCII Standard (LAS) files in Python¶
Read and write Log ASCII Standard files with Python.
This is a Python 3.7+ package to read and write Log ASCII Standard (LAS) files, used for borehole data such as geophysical, geological, or petrophysical logs. It’s compatible with versions 1.2 and 2.0 of the LAS file specification, published by the Canadian Well Logging Society. Support for LAS 3 is being worked on.
lasio is primarily for reading and writing data and metadata to and from LAS files. It is designed to read as many LAS files as possible, including those containing common errors and non-compliant formatting. It can be used directly, but you may want to consider using some other packages, depending on your priorities:
- welly is a Python package that uses lasio for I/O but provides a lot more functionality aimed at working with curves, wells, and projects. I would recommend starting there in most cases, to avoid re-inventing the wheel!
- lascheck is focused on checking whether your LAS file meets the specifications.
- lasr is an R package which is designed to read large amounts of data quickly from LAS files; this is a great thing to check out if speed is a priority for you, as lasio is not particularly fast.
- LiDAR surveys are also called “LAS files”, but they are quite different and lasio will not help you – check out laspy instead.
lasio stopped supporting Python 2.7 in August 2020. The final version of lasio with Python 2.7 support is version 0.26.
User guide
API reference
Other resources
- Contributing to lasio
- List of changes
- Unreleased changes (Available on GitHub)
- Version 0.31 (18 May 2023)
- Version 0.30 (12 May 2022)
- Version 0.29 (14 April 2021)
- Version 0.28 (12 September 2020)
- Version 0.27 (4 September 2020)
- Version 0.26 (31 August 2020)
- Version 0.25.1 (1 May 2020)
- Version 0.25 (28 March 2020)
- Version 0.24
- Version 0.23
- Version 0.22
- Version 0.21
- Version 0.20
- Version 0.19
- Version 0.18
- Version 0.17
- Version 0.16
- Version 0.15.1
- Version 0.13
- Version 0.11.2
- Version 0.11
- Version 0.10
- Version 0.9.1 (2015-11-11)
- Version 0.8 (2015-08-20)
- Version 0.7 (2015-08-08)
- Version 0.6 (2015-08-05)
- Version 0.5 (2015-08-01)
- Version 0.4 (2015-07-26)
- Version 0.3 (2015-07-23)
- Version 0.2 (2015-07-08)