lasmnemonicsid 0.0.1b0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- LASMnemonicsID/DLIS/__init__.py +0 -0
- LASMnemonicsID/LAS/LAS.py +148 -0
- LASMnemonicsID/LAS/__init__.py +12 -0
- LASMnemonicsID/__init__.py +16 -0
- LASMnemonicsID/utils/__init__.py +65 -0
- LASMnemonicsID/utils/mnemonics.py +544 -0
- lasmnemonicsid-0.0.1b0.dist-info/METADATA +57 -0
- lasmnemonicsid-0.0.1b0.dist-info/RECORD +11 -0
- lasmnemonicsid-0.0.1b0.dist-info/WHEEL +5 -0
- lasmnemonicsid-0.0.1b0.dist-info/licenses/LICENSE +21 -0
- lasmnemonicsid-0.0.1b0.dist-info/top_level.txt +1 -0
|
File without changes
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import LASMnemonicsID.utils.mnemonics as mnm
|
|
2
|
+
from LASMnemonicsID.utils.mnemonics import (
|
|
3
|
+
gamma_names,
|
|
4
|
+
sp_names,
|
|
5
|
+
caliper_names,
|
|
6
|
+
deepres_names,
|
|
7
|
+
rxo_names,
|
|
8
|
+
density_names,
|
|
9
|
+
density_correction_names,
|
|
10
|
+
neutron_names,
|
|
11
|
+
dtc_names,
|
|
12
|
+
dts_names,
|
|
13
|
+
pe_names,
|
|
14
|
+
)
|
|
15
|
+
import os
|
|
16
|
+
import pathlib
|
|
17
|
+
import pandas as pd
|
|
18
|
+
import lasio
|
|
19
|
+
from os.path import join
|
|
20
|
+
from sys import stdout
|
|
21
|
+
from pathlib import Path
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Function that create the mnemonic dictionary
|
|
28
|
+
def create_mnemonic_dict(
|
|
29
|
+
gamma_names,
|
|
30
|
+
sp_names,
|
|
31
|
+
caliper_names,
|
|
32
|
+
deepres_names,
|
|
33
|
+
rxo_names,
|
|
34
|
+
density_names,
|
|
35
|
+
density_correction_names,
|
|
36
|
+
neutron_names,
|
|
37
|
+
dtc_names,
|
|
38
|
+
dts_names,
|
|
39
|
+
pe_names,
|
|
40
|
+
):
|
|
41
|
+
"""
|
|
42
|
+
Function that create the mnemonic dictionary with the mnemonics per log type in the utils module
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
mnemonic_dict = {
|
|
46
|
+
"gamma": gamma_names,
|
|
47
|
+
"sp": sp_names,
|
|
48
|
+
"caliper": caliper_names,
|
|
49
|
+
"deepres": deepres_names,
|
|
50
|
+
"rxo": rxo_names,
|
|
51
|
+
"density": density_names,
|
|
52
|
+
"density_correction": density_correction_names,
|
|
53
|
+
"neutron": neutron_names,
|
|
54
|
+
"dtc": dtc_names,
|
|
55
|
+
"dts": dts_names,
|
|
56
|
+
"pe": pe_names,
|
|
57
|
+
}
|
|
58
|
+
return mnemonic_dict
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def parseLAS(directory_path, verbose=True):
|
|
63
|
+
"""
|
|
64
|
+
Parse all LAS files in directory (recursive) into dict of DataFrames or single DataFrame.
|
|
65
|
+
|
|
66
|
+
Args:
|
|
67
|
+
directory_path (str/Path): Directory containing LAS files
|
|
68
|
+
verbose (bool): Print processing info
|
|
69
|
+
|
|
70
|
+
Returns:
|
|
71
|
+
dict or DataFrame: {folder: {well: df}} or single df if one file found
|
|
72
|
+
"""
|
|
73
|
+
directory_path = Path(directory_path)
|
|
74
|
+
well_logs = {}
|
|
75
|
+
|
|
76
|
+
# Find all LAS files recursively
|
|
77
|
+
las_files = list(directory_path.rglob("*.las"))
|
|
78
|
+
|
|
79
|
+
if not las_files:
|
|
80
|
+
if verbose:
|
|
81
|
+
print("No LAS files found.")
|
|
82
|
+
return {}
|
|
83
|
+
|
|
84
|
+
if len(las_files) == 1:
|
|
85
|
+
# Return single DataFrame if only one file
|
|
86
|
+
return _read_single_las(las_files[0], verbose)
|
|
87
|
+
|
|
88
|
+
# Multiple files: group by parent folder
|
|
89
|
+
for las_file in las_files:
|
|
90
|
+
folder_name = las_file.parent.name
|
|
91
|
+
if folder_name not in well_logs:
|
|
92
|
+
well_logs[folder_name] = {}
|
|
93
|
+
|
|
94
|
+
df = _read_single_las(las_file, verbose)
|
|
95
|
+
if df is not None:
|
|
96
|
+
well_name = _get_well_name(las_file)
|
|
97
|
+
well_logs[folder_name][well_name] = df
|
|
98
|
+
|
|
99
|
+
return well_logs
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def _read_single_las(las_file_path, verbose):
|
|
103
|
+
"""Read single LAS file to DataFrame"""
|
|
104
|
+
try:
|
|
105
|
+
las_data = lasio.read(las_file_path)
|
|
106
|
+
df = las_data.df()
|
|
107
|
+
if df is None or df.empty:
|
|
108
|
+
if verbose:
|
|
109
|
+
print(f"✗ Empty DataFrame: {las_file_path.name}")
|
|
110
|
+
return None
|
|
111
|
+
|
|
112
|
+
df.index = df.index.astype(float)
|
|
113
|
+
# df.dropna(inplace=True)
|
|
114
|
+
|
|
115
|
+
# Standardize GR curve
|
|
116
|
+
_standardize_gr_curve(las_data, df)
|
|
117
|
+
|
|
118
|
+
if verbose:
|
|
119
|
+
print(f"✓ {las_file_path.name}")
|
|
120
|
+
return df
|
|
121
|
+
|
|
122
|
+
except lasio.exceptions.LASHeaderError as e:
|
|
123
|
+
if verbose:
|
|
124
|
+
print(f"✗ LASHeaderError in {las_file_path.name}: {e}")
|
|
125
|
+
except Exception as e:
|
|
126
|
+
if verbose:
|
|
127
|
+
print(f"✗ Error in {las_file_path.name}: {type(e).__name__}: {e}")
|
|
128
|
+
return None
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def _get_well_name(las_file_path):
|
|
132
|
+
"""Extract well name from LAS file"""
|
|
133
|
+
try:
|
|
134
|
+
las_data = lasio.read(las_file_path)
|
|
135
|
+
return str(las_data.well.WELL.value).strip()
|
|
136
|
+
except:
|
|
137
|
+
return las_file_path.stem
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
def _standardize_gr_curve(las_data, df):
|
|
141
|
+
"""Rename gamma ray curve to GR"""
|
|
142
|
+
global gamma_names # Assuming gamma_names defined elsewhere
|
|
143
|
+
for curve in las_data.curves:
|
|
144
|
+
if curve.mnemonic.lower() in gamma_names:
|
|
145
|
+
df.rename(columns={curve.mnemonic: "GR"}, inplace=True)
|
|
146
|
+
break
|
|
147
|
+
|
|
148
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
# src/LASMnemonicsID/__init__.py
|
|
3
|
+
|
|
4
|
+
"""LASMnemonicsID package for well log analysis."""
|
|
5
|
+
|
|
6
|
+
# Import submodules as objects
|
|
7
|
+
from . import LAS
|
|
8
|
+
#from . import DLIS
|
|
9
|
+
from . import utils
|
|
10
|
+
|
|
11
|
+
# Import all functions directly for convenience
|
|
12
|
+
from .LAS import *
|
|
13
|
+
from .DLIS import *
|
|
14
|
+
from .utils import *
|
|
15
|
+
|
|
16
|
+
__version__ = "0.0.1"
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
|
|
2
|
+
# src/LASMnemonicsID/utils/__init__.py
|
|
3
|
+
|
|
4
|
+
"""Utilities module for LASMnemonicsID package."""
|
|
5
|
+
|
|
6
|
+
# Import the mnemonic lists, functions, AND mnemonic_dict from mnemonics.py
|
|
7
|
+
from .mnemonics import (
|
|
8
|
+
# Mnemonic lists
|
|
9
|
+
gamma_names,
|
|
10
|
+
sp_names,
|
|
11
|
+
caliper_names,
|
|
12
|
+
deepres_names,
|
|
13
|
+
rxo_names,
|
|
14
|
+
density_names,
|
|
15
|
+
density_correction_names,
|
|
16
|
+
neutron_names,
|
|
17
|
+
dtc_names,
|
|
18
|
+
dts_names,
|
|
19
|
+
pe_names,
|
|
20
|
+
|
|
21
|
+
# The module-level mnemonic_dict - THIS WAS MISSING!
|
|
22
|
+
mnemonic_dict,
|
|
23
|
+
|
|
24
|
+
# Functions
|
|
25
|
+
find_column,
|
|
26
|
+
create_mnemonic_dict
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
# Define what gets exported when using "from utils import *"
|
|
30
|
+
__all__ = [
|
|
31
|
+
# Mnemonic lists
|
|
32
|
+
'gamma_names',
|
|
33
|
+
'sp_names',
|
|
34
|
+
'caliper_names',
|
|
35
|
+
'deepres_names',
|
|
36
|
+
'rxo_names',
|
|
37
|
+
'density_names',
|
|
38
|
+
'density_correction_names',
|
|
39
|
+
'neutron_names',
|
|
40
|
+
'dtc_names',
|
|
41
|
+
'dts_names',
|
|
42
|
+
'pe_names',
|
|
43
|
+
|
|
44
|
+
# The module-level mnemonic_dict
|
|
45
|
+
'mnemonic_dict',
|
|
46
|
+
|
|
47
|
+
# Functions
|
|
48
|
+
'find_column',
|
|
49
|
+
'create_mnemonic_dict'
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
# Optional: Create a convenience dictionary for easy access
|
|
53
|
+
MNEMONIC_LISTS = {
|
|
54
|
+
'gamma': gamma_names,
|
|
55
|
+
'sp': sp_names,
|
|
56
|
+
'caliper': caliper_names,
|
|
57
|
+
'deepres': deepres_names,
|
|
58
|
+
'rxo': rxo_names,
|
|
59
|
+
'density': density_names,
|
|
60
|
+
'density_correction': density_correction_names,
|
|
61
|
+
'neutron': neutron_names,
|
|
62
|
+
'dtc': dtc_names,
|
|
63
|
+
'dts': dts_names,
|
|
64
|
+
'pe': pe_names
|
|
65
|
+
}
|
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
|
|
2
|
+
# Function to find the column name in the Well Logs Dataframe
|
|
3
|
+
def find_column(df, curve_type):
|
|
4
|
+
"""
|
|
5
|
+
Function to find the column name in the Well Logs Dataframe
|
|
6
|
+
args:
|
|
7
|
+
df: Well Logs Dataframe
|
|
8
|
+
curve_type: curve type
|
|
9
|
+
returns:
|
|
10
|
+
column name
|
|
11
|
+
|
|
12
|
+
"""
|
|
13
|
+
df_columns_lower = {col.lower(): col for col in df.columns}
|
|
14
|
+
for mnemonic in mnemonic_dict[curve_type]:
|
|
15
|
+
if mnemonic.lower() in df_columns_lower:
|
|
16
|
+
return df_columns_lower[mnemonic.lower()]
|
|
17
|
+
return None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# Function that create the mnemonic dictionary
|
|
22
|
+
def create_mnemonic_dict(
|
|
23
|
+
gamma_names,
|
|
24
|
+
sp_names,
|
|
25
|
+
caliper_names,
|
|
26
|
+
deepres_names,
|
|
27
|
+
rxo_names,
|
|
28
|
+
density_names,
|
|
29
|
+
density_correction_names,
|
|
30
|
+
neutron_names,
|
|
31
|
+
dtc_names,
|
|
32
|
+
dts_names,
|
|
33
|
+
pe_names,
|
|
34
|
+
):
|
|
35
|
+
mnemonic_dict = {
|
|
36
|
+
"gamma": gamma_names,
|
|
37
|
+
"sp": sp_names,
|
|
38
|
+
"caliper": caliper_names,
|
|
39
|
+
"deepres": deepres_names,
|
|
40
|
+
"rxo": rxo_names,
|
|
41
|
+
"density": density_names,
|
|
42
|
+
"density_correction": density_correction_names,
|
|
43
|
+
"neutron": neutron_names,
|
|
44
|
+
"dtc": dtc_names,
|
|
45
|
+
"dts": dts_names,
|
|
46
|
+
"pe": pe_names,
|
|
47
|
+
}
|
|
48
|
+
return mnemonic_dict
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# For gamma ray logs
|
|
52
|
+
gamma_names = [
|
|
53
|
+
"gr",
|
|
54
|
+
"cggr",
|
|
55
|
+
"cgr",
|
|
56
|
+
"dlgr",
|
|
57
|
+
"ecgr",
|
|
58
|
+
"ehgr",
|
|
59
|
+
"hrgr",
|
|
60
|
+
"gam",
|
|
61
|
+
"gamd",
|
|
62
|
+
"gamm",
|
|
63
|
+
"gamma",
|
|
64
|
+
"gammaray",
|
|
65
|
+
"gamnat",
|
|
66
|
+
"gcgr",
|
|
67
|
+
"gcps",
|
|
68
|
+
"gra",
|
|
69
|
+
"gray",
|
|
70
|
+
"grc",
|
|
71
|
+
"grcd",
|
|
72
|
+
"grcf",
|
|
73
|
+
"grd",
|
|
74
|
+
"grde",
|
|
75
|
+
"grdi",
|
|
76
|
+
"grg",
|
|
77
|
+
"grgc",
|
|
78
|
+
"grgm",
|
|
79
|
+
"grgm",
|
|
80
|
+
"grgs",
|
|
81
|
+
"grh",
|
|
82
|
+
"grhd",
|
|
83
|
+
"grhdil",
|
|
84
|
+
"gri",
|
|
85
|
+
"grin",
|
|
86
|
+
"grll",
|
|
87
|
+
"grm",
|
|
88
|
+
"grml",
|
|
89
|
+
"grn",
|
|
90
|
+
"grnc",
|
|
91
|
+
"grnp",
|
|
92
|
+
"grp",
|
|
93
|
+
"grpd",
|
|
94
|
+
"grpnd",
|
|
95
|
+
"grqh",
|
|
96
|
+
"grs",
|
|
97
|
+
"grsd",
|
|
98
|
+
"grsg",
|
|
99
|
+
"grsl",
|
|
100
|
+
"grt",
|
|
101
|
+
"grto",
|
|
102
|
+
"grx",
|
|
103
|
+
"grz",
|
|
104
|
+
"gsgr",
|
|
105
|
+
"hgr",
|
|
106
|
+
"hsgr",
|
|
107
|
+
"lgr",
|
|
108
|
+
"p01lgr",
|
|
109
|
+
"p02lgr",
|
|
110
|
+
"p03lgr",
|
|
111
|
+
"p06lgr",
|
|
112
|
+
"pgr",
|
|
113
|
+
"sgr",
|
|
114
|
+
"sgra",
|
|
115
|
+
"sgrb",
|
|
116
|
+
"sgrc",
|
|
117
|
+
"rgr",
|
|
118
|
+
"hcgr",
|
|
119
|
+
"gamma_ray",
|
|
120
|
+
"gams",
|
|
121
|
+
"grcr",
|
|
122
|
+
"grhr",
|
|
123
|
+
"grqa",
|
|
124
|
+
"grr",
|
|
125
|
+
"grv",
|
|
126
|
+
"mcgr",
|
|
127
|
+
"grcn",
|
|
128
|
+
"grdp",
|
|
129
|
+
"grcc",
|
|
130
|
+
"grcg",
|
|
131
|
+
"grcl",
|
|
132
|
+
"grcm",
|
|
133
|
+
"grcp",
|
|
134
|
+
"grd4",
|
|
135
|
+
"grfb",
|
|
136
|
+
"grmn",
|
|
137
|
+
"grnb",
|
|
138
|
+
"grpo",
|
|
139
|
+
"grpr",
|
|
140
|
+
"grrf",
|
|
141
|
+
"tgr",
|
|
142
|
+
"totgr",
|
|
143
|
+
"grtor",
|
|
144
|
+
"gr1",
|
|
145
|
+
"gr2",
|
|
146
|
+
"grco",
|
|
147
|
+
"grda",
|
|
148
|
+
"grzd",
|
|
149
|
+
"hhgr",
|
|
150
|
+
"mgr",
|
|
151
|
+
"sgrd",
|
|
152
|
+
"ipgr",
|
|
153
|
+
"idgr",
|
|
154
|
+
"gr_stgc",
|
|
155
|
+
"gr_edtc_s",
|
|
156
|
+
]
|
|
157
|
+
|
|
158
|
+
# For spontanous potential logs
|
|
159
|
+
sp_names = [
|
|
160
|
+
"SP",
|
|
161
|
+
"IDSP",
|
|
162
|
+
"SPR",
|
|
163
|
+
"SPL",
|
|
164
|
+
"SPDL",
|
|
165
|
+
"SPDHP",
|
|
166
|
+
"SPDH",
|
|
167
|
+
"SPDF",
|
|
168
|
+
"SPD",
|
|
169
|
+
"SPCG",
|
|
170
|
+
"SPC",
|
|
171
|
+
"SP0",
|
|
172
|
+
"SP1",
|
|
173
|
+
"SPBR",
|
|
174
|
+
"SPBRDH",
|
|
175
|
+
"IASP",
|
|
176
|
+
"CGSP",
|
|
177
|
+
"DLSP",
|
|
178
|
+
"SPLL",
|
|
179
|
+
]
|
|
180
|
+
|
|
181
|
+
# For caliper logs
|
|
182
|
+
caliper_names = [
|
|
183
|
+
"CALIPER",
|
|
184
|
+
"CALIP",
|
|
185
|
+
"CALI",
|
|
186
|
+
"CAL",
|
|
187
|
+
"DCAL",
|
|
188
|
+
"ACAL",
|
|
189
|
+
"CALA",
|
|
190
|
+
"CALD",
|
|
191
|
+
"CALE",
|
|
192
|
+
"CALH",
|
|
193
|
+
"CALL",
|
|
194
|
+
"CALM",
|
|
195
|
+
"CALML",
|
|
196
|
+
"CALN",
|
|
197
|
+
"CALP",
|
|
198
|
+
"CALS",
|
|
199
|
+
"CALT",
|
|
200
|
+
"CALX",
|
|
201
|
+
"CALXH",
|
|
202
|
+
"CALXZ",
|
|
203
|
+
"CALY",
|
|
204
|
+
"CALYH",
|
|
205
|
+
"CALYHD",
|
|
206
|
+
"CALYM",
|
|
207
|
+
"CALYQH",
|
|
208
|
+
"CALYZ",
|
|
209
|
+
"CALZ",
|
|
210
|
+
"CANC",
|
|
211
|
+
"CANN",
|
|
212
|
+
"CAPD",
|
|
213
|
+
"CAX",
|
|
214
|
+
"CAY",
|
|
215
|
+
"CLDC",
|
|
216
|
+
"CLDM",
|
|
217
|
+
"CLL0",
|
|
218
|
+
"CLMR",
|
|
219
|
+
"CLMS",
|
|
220
|
+
"CLRM",
|
|
221
|
+
"CLS2",
|
|
222
|
+
"CLTC",
|
|
223
|
+
"CLXC",
|
|
224
|
+
"CLXF",
|
|
225
|
+
"CLYC",
|
|
226
|
+
"MCAL",
|
|
227
|
+
"CALXQH",
|
|
228
|
+
"CLCM",
|
|
229
|
+
"CR1",
|
|
230
|
+
"CR2",
|
|
231
|
+
"CS1M",
|
|
232
|
+
"CS2M",
|
|
233
|
+
"CS3M",
|
|
234
|
+
"CS4M",
|
|
235
|
+
"CS5M",
|
|
236
|
+
"CS6M0",
|
|
237
|
+
"HCA1",
|
|
238
|
+
"HCAL",
|
|
239
|
+
"HCALI",
|
|
240
|
+
"HCALX",
|
|
241
|
+
"HCALY",
|
|
242
|
+
"XCAL",
|
|
243
|
+
"YCAL",
|
|
244
|
+
"CABX",
|
|
245
|
+
"CABY",
|
|
246
|
+
"CACN",
|
|
247
|
+
"CADF",
|
|
248
|
+
"CADP",
|
|
249
|
+
"CAMR",
|
|
250
|
+
"CAXR",
|
|
251
|
+
"CAYR",
|
|
252
|
+
"DCCP",
|
|
253
|
+
"MLTC",
|
|
254
|
+
"C1",
|
|
255
|
+
"C13",
|
|
256
|
+
"C13A",
|
|
257
|
+
"C13H",
|
|
258
|
+
"C24A",
|
|
259
|
+
"C24",
|
|
260
|
+
"C24H",
|
|
261
|
+
"C24I",
|
|
262
|
+
"C24L",
|
|
263
|
+
"C24M",
|
|
264
|
+
"C24P",
|
|
265
|
+
"C24Z",
|
|
266
|
+
"CA",
|
|
267
|
+
"CA1",
|
|
268
|
+
"CA2",
|
|
269
|
+
"CADE",
|
|
270
|
+
"CAL1",
|
|
271
|
+
"CAL2",
|
|
272
|
+
"CAL3",
|
|
273
|
+
"CALXM",
|
|
274
|
+
"CALXQ8",
|
|
275
|
+
"CALXGH",
|
|
276
|
+
"CALYQ8",
|
|
277
|
+
"CLCD",
|
|
278
|
+
"CLLO",
|
|
279
|
+
"CQLI",
|
|
280
|
+
"HD1",
|
|
281
|
+
"HD2",
|
|
282
|
+
"HD3",
|
|
283
|
+
"HDAR",
|
|
284
|
+
"HDIA",
|
|
285
|
+
"HDMI",
|
|
286
|
+
"HDMN",
|
|
287
|
+
"HDMX",
|
|
288
|
+
"HLCA",
|
|
289
|
+
"LCAL",
|
|
290
|
+
"SA",
|
|
291
|
+
"TAC2",
|
|
292
|
+
"C3",
|
|
293
|
+
"HHCA",
|
|
294
|
+
"MBTC",
|
|
295
|
+
"TACC",
|
|
296
|
+
"DZAL",
|
|
297
|
+
]
|
|
298
|
+
|
|
299
|
+
# For deep resistivity logs
|
|
300
|
+
deepres_names = [
|
|
301
|
+
"RT",
|
|
302
|
+
"RTAO",
|
|
303
|
+
"RT1DI",
|
|
304
|
+
"RT90",
|
|
305
|
+
"ILD",
|
|
306
|
+
"IDER",
|
|
307
|
+
"IDFL",
|
|
308
|
+
"IDID",
|
|
309
|
+
"IDPH",
|
|
310
|
+
"IDVR",
|
|
311
|
+
"ILS",
|
|
312
|
+
"RILD",
|
|
313
|
+
"RIPD",
|
|
314
|
+
"RILV",
|
|
315
|
+
"RD",
|
|
316
|
+
"DEEP",
|
|
317
|
+
"AE90",
|
|
318
|
+
"AF90",
|
|
319
|
+
"AHFRT",
|
|
320
|
+
"AHO90",
|
|
321
|
+
"AHORT",
|
|
322
|
+
"AHRT",
|
|
323
|
+
"AHT90",
|
|
324
|
+
"AHTRT",
|
|
325
|
+
"AIRD",
|
|
326
|
+
"AO90",
|
|
327
|
+
"AORT",
|
|
328
|
+
"AS90",
|
|
329
|
+
"ASF90",
|
|
330
|
+
"ASFRT",
|
|
331
|
+
"ASRT",
|
|
332
|
+
"AST90",
|
|
333
|
+
"ASTRT",
|
|
334
|
+
"AT90",
|
|
335
|
+
"ATRT",
|
|
336
|
+
"DSER",
|
|
337
|
+
"HILD",
|
|
338
|
+
"HLLD",
|
|
339
|
+
"HRLD",
|
|
340
|
+
"LLD",
|
|
341
|
+
"LLDC",
|
|
342
|
+
"VRSD",
|
|
343
|
+
"SEDC",
|
|
344
|
+
"SEDA",
|
|
345
|
+
"RLLD",
|
|
346
|
+
"RES",
|
|
347
|
+
"RESD",
|
|
348
|
+
"REID",
|
|
349
|
+
"DLL",
|
|
350
|
+
"DDLL",
|
|
351
|
+
"HDRS",
|
|
352
|
+
"R850",
|
|
353
|
+
"MINV",
|
|
354
|
+
"ML",
|
|
355
|
+
"M1R9",
|
|
356
|
+
"R60O",
|
|
357
|
+
"M2RX",
|
|
358
|
+
]
|
|
359
|
+
|
|
360
|
+
# For Shallow Resistivity Logs
|
|
361
|
+
rxo_names = ["RXO", "RXOZ", "MSFL", "MCFL", "SFLCC", "MGL", "M1RX", "R40O", "AHT10"]
|
|
362
|
+
|
|
363
|
+
# For density logs
|
|
364
|
+
density_names = [
|
|
365
|
+
"RHOB",
|
|
366
|
+
"RHOZ",
|
|
367
|
+
"DEN",
|
|
368
|
+
"DENB",
|
|
369
|
+
"DENC",
|
|
370
|
+
"DENCDL",
|
|
371
|
+
"HRHO",
|
|
372
|
+
"HRHOB",
|
|
373
|
+
"ZDEN",
|
|
374
|
+
"ZDENS",
|
|
375
|
+
"ZDNCS",
|
|
376
|
+
"ZDNC",
|
|
377
|
+
"HDEN",
|
|
378
|
+
"DENF",
|
|
379
|
+
"DENN",
|
|
380
|
+
"RHS",
|
|
381
|
+
]
|
|
382
|
+
|
|
383
|
+
# For density correction
|
|
384
|
+
density_correction_names = [
|
|
385
|
+
"DCOR",
|
|
386
|
+
"DCORR",
|
|
387
|
+
"DC",
|
|
388
|
+
"DECR",
|
|
389
|
+
"DRH",
|
|
390
|
+
"ZCOR",
|
|
391
|
+
"ZCORR",
|
|
392
|
+
"ZCOR2",
|
|
393
|
+
"ZCOR2QH",
|
|
394
|
+
"ZCORQH",
|
|
395
|
+
"HHDR",
|
|
396
|
+
"DensCorr",
|
|
397
|
+
]
|
|
398
|
+
|
|
399
|
+
# For neutron logs
|
|
400
|
+
neutron_names = [
|
|
401
|
+
"CN",
|
|
402
|
+
"PHIN",
|
|
403
|
+
"CNC",
|
|
404
|
+
"CNS",
|
|
405
|
+
"HHNPO",
|
|
406
|
+
"HNPHI",
|
|
407
|
+
"NPHI",
|
|
408
|
+
"NPOR",
|
|
409
|
+
"CNCC",
|
|
410
|
+
"CNCD",
|
|
411
|
+
"CNCF",
|
|
412
|
+
"NPRL",
|
|
413
|
+
"TNPH",
|
|
414
|
+
"TPHC",
|
|
415
|
+
"XPOR",
|
|
416
|
+
"NEUT",
|
|
417
|
+
"NeutPor",
|
|
418
|
+
"NPHIL",
|
|
419
|
+
"CNFC",
|
|
420
|
+
]
|
|
421
|
+
|
|
422
|
+
# For photoelectric factor logs
|
|
423
|
+
pe_names = [
|
|
424
|
+
"PE",
|
|
425
|
+
"PEF",
|
|
426
|
+
"PEFZ",
|
|
427
|
+
"PDPE",
|
|
428
|
+
"PEDF",
|
|
429
|
+
"PEDN",
|
|
430
|
+
"HPEDN",
|
|
431
|
+
"HPEH8",
|
|
432
|
+
"PE2",
|
|
433
|
+
"PE2QH",
|
|
434
|
+
"PEF8",
|
|
435
|
+
"PEFA",
|
|
436
|
+
"PEFI",
|
|
437
|
+
"PEFL",
|
|
438
|
+
"LPE",
|
|
439
|
+
"PEFS",
|
|
440
|
+
]
|
|
441
|
+
|
|
442
|
+
# For P wave sonic travel time
|
|
443
|
+
dtc_names = [
|
|
444
|
+
"DT",
|
|
445
|
+
"DTC",
|
|
446
|
+
"DTCO",
|
|
447
|
+
"DTCOMP",
|
|
448
|
+
"DELTAT",
|
|
449
|
+
"SLOW",
|
|
450
|
+
"SLOWNESS",
|
|
451
|
+
"TT",
|
|
452
|
+
"TIME",
|
|
453
|
+
"TIM",
|
|
454
|
+
"ITT",
|
|
455
|
+
"DTCQI",
|
|
456
|
+
"DTCR",
|
|
457
|
+
"DTCREP",
|
|
458
|
+
"DTCS",
|
|
459
|
+
"DTCSG",
|
|
460
|
+
"DTCU",
|
|
461
|
+
"DTCV0",
|
|
462
|
+
"DTCX",
|
|
463
|
+
"DTL",
|
|
464
|
+
"DTP",
|
|
465
|
+
"DTR",
|
|
466
|
+
"DTTP",
|
|
467
|
+
"DTU",
|
|
468
|
+
"DTUM",
|
|
469
|
+
"CTIME",
|
|
470
|
+
"COTIME",
|
|
471
|
+
"COMT",
|
|
472
|
+
"DT1A",
|
|
473
|
+
"DT1B",
|
|
474
|
+
"DT34",
|
|
475
|
+
"DT35",
|
|
476
|
+
"DT3A",
|
|
477
|
+
"DT3B",
|
|
478
|
+
"DT45",
|
|
479
|
+
"DT46",
|
|
480
|
+
"DT56",
|
|
481
|
+
"DTC1",
|
|
482
|
+
"DTC2",
|
|
483
|
+
"DTC3",
|
|
484
|
+
"DTCM",
|
|
485
|
+
"AC",
|
|
486
|
+
"ACCO",
|
|
487
|
+
"DELT",
|
|
488
|
+
"ACL",
|
|
489
|
+
"ACN",
|
|
490
|
+
"DT24",
|
|
491
|
+
"DT24QI",
|
|
492
|
+
"DT24SQA",
|
|
493
|
+
"DT41",
|
|
494
|
+
"DT4P",
|
|
495
|
+
"DT5",
|
|
496
|
+
"DTMN",
|
|
497
|
+
"DTMX",
|
|
498
|
+
"DTSC",
|
|
499
|
+
"TTC",
|
|
500
|
+
"AC1",
|
|
501
|
+
"MSTT",
|
|
502
|
+
"DtComp",
|
|
503
|
+
]
|
|
504
|
+
|
|
505
|
+
# For S wave sonic travel time
|
|
506
|
+
dts_names = [
|
|
507
|
+
"DTS",
|
|
508
|
+
"DTSH",
|
|
509
|
+
"DTSM",
|
|
510
|
+
"DTSC",
|
|
511
|
+
"DTSD",
|
|
512
|
+
"DTSDF",
|
|
513
|
+
"DTSQI",
|
|
514
|
+
"DTTS",
|
|
515
|
+
"DTSHEAR",
|
|
516
|
+
"DELTAS",
|
|
517
|
+
"TTS",
|
|
518
|
+
"TIMES",
|
|
519
|
+
"TIMS",
|
|
520
|
+
"ITTS",
|
|
521
|
+
"STT",
|
|
522
|
+
"DT4S",
|
|
523
|
+
"DTSF",
|
|
524
|
+
"DTSS",
|
|
525
|
+
"SHSL",
|
|
526
|
+
"DtShear",
|
|
527
|
+
]
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
mnemonic_dict = create_mnemonic_dict(
|
|
532
|
+
gamma_names,
|
|
533
|
+
sp_names,
|
|
534
|
+
caliper_names,
|
|
535
|
+
deepres_names,
|
|
536
|
+
rxo_names,
|
|
537
|
+
density_names,
|
|
538
|
+
density_correction_names,
|
|
539
|
+
neutron_names,
|
|
540
|
+
dtc_names,
|
|
541
|
+
dts_names,
|
|
542
|
+
pe_names,
|
|
543
|
+
)
|
|
544
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lasmnemonicsid
|
|
3
|
+
Version: 0.0.1b0
|
|
4
|
+
Summary: Well log mnemonic identification using lasio and dlisio to load LAS/DLIS files into DataFrames
|
|
5
|
+
Author-email: Nobleza Energy <info@nobleza-energy.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://nobleza-energy.github.io/LASMnemonicsID
|
|
8
|
+
Project-URL: Repository, https://github.com/Nobleza-Energy/LASMnemonicsID
|
|
9
|
+
Project-URL: Documentation, https://nobleza-energy.github.io/LASMnemonicsID/
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/Nobleza-Energy/LASMnemonicsID/issues
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: numpy>=1.21.0
|
|
24
|
+
Requires-Dist: pandas>=2.0.1
|
|
25
|
+
Requires-Dist: lasio>=0.30
|
|
26
|
+
Requires-Dist: dlisio>=1.0.0
|
|
27
|
+
Provides-Extra: docs
|
|
28
|
+
Requires-Dist: mkdocs>=1.5.0; extra == "docs"
|
|
29
|
+
Requires-Dist: mkdocs-material>=9.0.0; extra == "docs"
|
|
30
|
+
Requires-Dist: mkdocstrings[python]>=0.24.0; extra == "docs"
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
33
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
34
|
+
Requires-Dist: isort>=5.12.0; extra == "dev"
|
|
35
|
+
Requires-Dist: flake8>=6.0.0; extra == "dev"
|
|
36
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# <img src="logo.png" height="50" valign="bottom"> LASMnemonicsID
|
|
41
|
+
|
|
42
|
+
LASMnemonicsID uses Python dictionaries with lasio and dlisio to read LAS and DLIS/LIS well log files into pandas DataFrames for mnemonic identification and analysis.
|
|
43
|
+
|
|
44
|
+
## Features
|
|
45
|
+
|
|
46
|
+
- LAS 1.2/2.0 → DataFrame (lasio)
|
|
47
|
+
- DLIS/LIS → DataFrame (dlisio)
|
|
48
|
+
- Standardized mnemonic identification via dictionaries
|
|
49
|
+
|
|
50
|
+
## Installation
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
pip install -r requirements.txt
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
LASMnemonicsID/__init__.py,sha256=IjJHoiHWr1CfP3K01xW61UhnJYP_9LOOaCqJnhLFlPc,309
|
|
2
|
+
LASMnemonicsID/DLIS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
LASMnemonicsID/LAS/LAS.py,sha256=7WRetjZG9-M39KNxpUisAkbh8mv60BWW-uTEUkwvkF8,3849
|
|
4
|
+
LASMnemonicsID/LAS/__init__.py,sha256=4cNesZ581Cl_PN_c4DHTGfkc5HiKtnbhP81vJ6-3nPM,187
|
|
5
|
+
LASMnemonicsID/utils/__init__.py,sha256=ree81DUTsdjXfO3h-q7YyNrV6mTIKSGxgWPWGGTSVU0,1388
|
|
6
|
+
LASMnemonicsID/utils/mnemonics.py,sha256=EKh_uecG9rszA6jYwySyVaPLv4525pzn9DVbtBe5V9Y,7257
|
|
7
|
+
lasmnemonicsid-0.0.1b0.dist-info/licenses/LICENSE,sha256=6r9JOUiNw1exfcc0jlOi50fDStidfqyQ2PAYQh4lzEQ,1071
|
|
8
|
+
lasmnemonicsid-0.0.1b0.dist-info/METADATA,sha256=4yXZSDYm-7vX4vcUVqdLXCmkjlxj2-SQEZ6HCzfRXLM,2068
|
|
9
|
+
lasmnemonicsid-0.0.1b0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
lasmnemonicsid-0.0.1b0.dist-info/top_level.txt,sha256=bdt6EHMrwbzFA9jA_xbTqRrOV6T4zDs3QojjEz8HSBk,15
|
|
11
|
+
lasmnemonicsid-0.0.1b0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nobleza Energy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
LASMnemonicsID
|