Welly depth units

New in v0.4.7: you can decide what welly does with the index.

Thank you to Kent Inverarity for implementing this.


In [1]:
import welly

welly.__version__


Out[1]:
'0.4.7'

In [2]:
!head 24034.LAS












In [3]:
w = welly.Well.from_las("24034.LAS") # The default has not changed: you're getting metres.

gr = w.data['GR']

gr.start, gr.basis_units


/home/matt/anaconda3/envs/welly/lib/python3.8/site-packages/welly/well.py:173: FutureWarning: From v0.5 the default will be 'original', keeping whatever is used in the LAS file. If you want to force conversion to metres, change your codeto use `index='m'`.
  warnings.warn(m, FutureWarning)
Out[3]:
(953.4144, 'M')

In [4]:
w = welly.Well.from_las("24034.LAS", index="existing")  # Use what's in the LAS file.

gr = w.data['GR']

gr.start, gr.basis_units


Out[4]:
(3128.0, 'F')

In [5]:
w = welly.Well.from_las("24034.LAS", index="m")  # Welly's default: convert to m.

gr = w.data['GR']

gr.start, gr.basis_units


Out[5]:
(953.4144, 'M')

In [6]:
w = welly.Well.from_las("24034.LAS", index="ft")  # Convert to ft.

gr = w.data['GR']

gr.start, gr.basis_units


Out[6]:
(3128.0, 'F')

In [ ]: