| name | dlisio |
| description | Read and parse DLIS (Digital Log Interchange Standard) and LIS (Log Information
Standard) well log files. Use when Claude needs to: (1) Read/parse DLIS or LIS
files, (2) Extract well log curves as numpy arrays, (3) Access file metadata and
origin information, (4) Handle multi-frame or multi-file DLIS, (5) Convert DLIS
to LAS or DataFrame, (6) Work with RP66 format well logs, (7) Process array or
image log data.
|
| version | 1.0.0 |
| author | Geoscience Skills |
| license | MIT |
| tags | ["Well Logs","DLIS","RP66","Data I/O","Dlisio","Petrophysics","LIS","Wireline"] |
| dependencies | ["dlisio>=0.3.0"] |
| complements | ["welly","petropy","striplog"] |
| workflow_role | data-loading |
dlisio - DLIS/LIS File Reader
Quick Reference
import dlisio
with dlisio.dlis.load('well.dlis') as (f, *rest):
frame = f.frames[0]
curves = frame.curves()
depth = curves['DEPTH']
gr = curves['GR']
for origin in f.origins:
print(origin.well_name, origin.field_name)
Key Classes
| Class | Purpose |
|---|
PhysicalFile | Container returned by dlis.load() |
LogicalFile | Independent dataset within physical file |
Frame | Group of channels with common sampling |
Channel | Individual log curve with metadata |
Origin | Well and file metadata |
Essential Operations
Read Curves to DataFrame
import pandas as pd
with dlisio.dlis.load('well.dlis') as (f, *_):
frame = f.frames[0]
curves = frame.curves()
df = pd.DataFrame(curves)
df.set_index('DEPTH', inplace=True)
Access Channel and Origin Metadata
with dlisio.dlis.load('well.dlis') as (f, *_):
for origin in f.origins:
()
ch f.frames[].channels:
()