<commit_before># lasio

[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/kinverarity1/lasio/blob/master/LICENSE)

Read and write Log ASCII Standard files with Python.

This is a Python 2.7 and 3.3+ 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](https://www.cwls.org/products/#products-las). Support for LAS 3 is [being worked on](https://github.com/kinverarity1/lasio/issues/5). In
principle it is designed to read as many types of LAS files as possible,
including ones containing common errors or non-compliant formatting.

Depending on your particular application you may also want to check out
[striplog](https://github.com/agile-geoscience/striplog) for
stratigraphic/lithological data, and
[welly](https://github.com/agile-geoscience/welly) for dealing with data at
the well level. lasio is primarily for reading & writing LAS files.

Note this is *not* a package for reading LiDAR data (also called "LAS files").

## Documentation

See here for the [complete lasio package
documentation](https://lasio.readthedocs.io/en/latest/).

## Quick start

For the minimum working requirements, you'll need numpy installed. Install
lasio with:

```bash
$ pip install lasio
```

To make sure you have everything, use this to ensure pandas, cchardet, and
openpyxl are also installed:<commit_msg>update readme with py2.7 end support #364<commit_after># lasio

[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/kinverarity1/lasio/blob/master/LICENSE)

Read and write Log ASCII Standard files with Python.

This is a Python 2.7 and 3.3+ 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](https://www.cwls.org/products/#products-las). Support for LAS 3 is [being worked on](https://github.com/kinverarity1/lasio/issues/5). In
principle it is designed to read as many types of LAS files as possible,
including ones containing common errors or non-compliant formatting.

Depending on your particular application you may also want to check out
[striplog](https://github.com/agile-geoscience/striplog) for
stratigraphic/lithological data, and
[welly](https://github.com/agile-geoscience/welly) for dealing with data at
the well level. lasio is primarily for reading & writing LAS files.

Note this is *not* a package for reading LiDAR data (also called "LAS files").

**Update**: lasio will [no longer](https://github.com/kinverarity1/lasio/issues/364) support Python 2.7 from August 2020. The last version of lasio with Python 2.7 support will be version 0.26.

## Documentation

See here for the [complete lasio package
documentation](https://lasio.readthedocs.io/en/latest/).

## Quick start

For the minimum working requirements, you'll need numpy installed. Install
lasio with:

```bash
$ pip install lasio
```

To make sure you have everything, use this to ensure pandas, cchardet, and
openpyxl are also installed:
{'fraction_non_alphanumeric': 0.09358857490124582, 'fraction_numerical': 0.013369796414463689, 'mean_word_length': 4.765323992994746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 13, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2156740', 'n_tokens_mistral': 1040, 'n_tokens_neox': 959, 'n_words': 393}