import welly

welly.__version__

!head data/24034.LAS

"""
Explanation: Welly depth units
Since v0.4.7: you can decide what welly does with the index. But since v0.5.0, the default behaviour has changed. Before, welly would convert to metres; now you get whatever is in the file.
Thank you to Kent Inverarity for implementing this.
End of explanation
"""


w = welly.Well.from_las("data/24034.LAS") # The default has changed: you're getting whatever's in the file.

gr = w.data['GR']

gr.start, gr.index_units

"""
Explanation: The default
End of explanation
"""


w = welly.Well.from_las("data/24034.LAS", index="existing")  # Use what's in the LAS file.

gr = w.data['GR']

gr.start, gr.index_units

"""
Explanation: This is the same (this option is obsolete now).
End of explanation
"""


w = welly.Well.from_las("data/24034.LAS", index="m")  # Convert to m.

gr = w.data['GR']

gr.start, gr.index_units

w = welly.Well.from_las("data/24034.LAS", index="ft")  # Convert to ft: nothing happens, it's in FT.

gr = w.data['GR']

gr.start, gr.index_units

"""
Explanation: Converting depth units
End of explanation
"""


