<jupyter_start><jupyter_text>Everything in ``lasio`` is available from a basic import, so all you need to do is:<jupyter_code>import lasio<jupyter_output><empty_output><jupyter_text>The ``read()`` function accepts a filename, string, URL, or file-like object<jupyter_code>import os

l = lasio.read(os.path.join("..", "tests", "examples", "6038187_v1.2_short.las"))<jupyter_output><empty_output><jupyter_text>it returns a ``LASFile`` object<jupyter_code>type(l)<jupyter_output><empty_output><jupyter_text>Curves are available as [numpy](http://www.numpy.org/) 1D arrays<jupyter_code>l.keys()<jupyter_output><empty_output><jupyter_text>so to see the NEUT data use:<jupyter_code>l['NEUT']<jupyter_output><empty_output><jupyter_text>You can also access curves by index (remembering that the first index is zero but the first curve is the reference curve, usually depth.So for example the first data curve in this file is CALI:<jupyter_code>l['CALI']<jupyter_output><empty_output><jupyter_text>which is the same as using the index 1:<jupyter_code>l[1]<jupyter_output><empty_output><jupyter_text>All the curves are stored as a two-dimensional ``ndarray`` under the ``data`` attribute:<jupyter_code>type(l.data)
l.data.shape
l.data<jupyter_output><empty_output><jupyter_text>You can always see the text of the original LAS file loaded here:<jupyter_code>type(l._text)
len(l._text)
print(l._text)<jupyter_output>#------------------------------------------------------------
~VERSION INFORMATION
VERS.               2.0  :CWLS LOG ASCII STANDARD - VERSION 2.0
WRAP.                NO  :ONE LINE PER DEPTH STEP
#------------------------------------------------------------
~WELL INFORMATION
STRT.M        0.0500000  :FIRST INDEX VALUE
STOP.M          136.600  :LAST INDEX VALUE
STEP.M        0.0500000  :STEP
NULL.            -99999  :NULL VALUE
COMP.                    :COMP
WELL.        Scorpio E1  :WELL
FLD.                     :
LOC.             Mt Eba  :LOC
SRVC.                    :
CTRY.                    :
STAT.                SA  :STAT
CNTY.                    :
DATE.        15/03/2015  :DATE
UWI.           6038-187  :WUNT
#------------------------------------------------------------
~CURVE INFORMATION
DEPT.M                   :DEPTH
CALI.MM                  :CALI
DFAR.G/CM3               :DFAR
DNEAR.G/CM3              :DNEAR
GAMN.GAPI                :GAMN
NEUT.CPS                 :NEUT
PR.OHM[...]
{'fraction_non_alphanumeric': 0.17434620174346202, 'fraction_numerical': 0.0253217102532171, 'mean_word_length': 2.1836195508586527, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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}}
{'chain_length': '9', 'dir': 'jupyter-structured-clean-dedup', 'id': '167324', 'license': 'MIT', 'n_tokens_mistral': 857, 'n_tokens_neox': 792, 'n_words': 193, 'path': 'notebooks/basic example of reading a LAS file.ipynb', 'repo_name': 'RomCoch/lasio', 'size': '2409'}