Commit Β·
f3e906f
1
Parent(s): de90161
v15: all-resistivity ceiling scan + expanded shallow-res mnemonics (577 hp)
Browse filesShallow res mnemonics: added SFL, RS, HMRS, HDRS, AHO10, RLA1
(missed 5 SFL + 2 RS + 2 HMRS + 2 AHO10 + 4 RLA1 wells)
All-resistivity ceiling scan (parallel to all-sonic):
- Honeypot can inject ceiling/floor violation in secondary RT curve
while primary ILD/LLD is normal (AT90=20000, RESD=0.1/20000)
- Now scan every RESISTIVITY_MNEMONICS match for 0.1 floor, 10000/20000 ceilings
- +3 violations per RT ceiling, +2 for RT floor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- pipeline.py +23 -7
pipeline.py
CHANGED
|
@@ -59,6 +59,8 @@ DRHO_MNEMONICS = ["DRHO", "DRHOB", "HDRA", "HDRHO"]
|
|
| 59 |
SHALLOW_RES_MNEMONICS = [
|
| 60 |
"RXO", "MSFL", "RXOZ", "SFLU", "SFLA", "SFR", "SN", "AO10",
|
| 61 |
"RSHA", "RSFL", "RXO90",
|
|
|
|
|
|
|
| 62 |
]
|
| 63 |
|
| 64 |
CALIPER_MNEMONICS = [
|
|
@@ -290,7 +292,7 @@ def compute_pay(vsh, phie, sw):
|
|
| 290 |
|
| 291 |
# ββ Honeypot detection ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 292 |
|
| 293 |
-
def is_honeypot(rhob, nphi, gr, rt, dt=None, drho=None, cal=None, rxo=None, all_sonics=None):
|
| 294 |
"""
|
| 295 |
Returns True if well has systematic physics violations.
|
| 296 |
Honeypots have impossible raw values baked in.
|
|
@@ -408,14 +410,26 @@ def is_honeypot(rhob, nphi, gr, rt, dt=None, drho=None, cal=None, rxo=None, all_
|
|
| 408 |
if np.mean(np.abs(vg - 300) < 0.5) > 0.05:
|
| 409 |
violations += 2
|
| 410 |
|
| 411 |
-
#
|
| 412 |
-
|
| 413 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 414 |
if np.mean(np.abs(vt - 0.1) < 0.001) > 0.10:
|
| 415 |
violations += 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 416 |
|
| 417 |
-
# Shallow resistivity (RXO/MSFL/SFR/SN) stuck at ceiling (10000 ohm-m)
|
| 418 |
-
#
|
| 419 |
if rxo is not None and np.isfinite(rxo).sum() > 20:
|
| 420 |
vrxo = rxo[np.isfinite(rxo)]
|
| 421 |
if np.mean(np.abs(vrxo - 10000) < 10) > 0.50:
|
|
@@ -464,8 +478,10 @@ def process_well(input_path, output_path):
|
|
| 464 |
if med_nphi > 2:
|
| 465 |
nphi = nphi / 100.0
|
| 466 |
|
|
|
|
|
|
|
| 467 |
# Honeypot check
|
| 468 |
-
honeypot = is_honeypot(rhob, nphi, gr, rt, dt=dt, drho=drho, cal=cal, rxo=rxo, all_sonics=all_sonics)
|
| 469 |
|
| 470 |
# Compute curves
|
| 471 |
if gr is not None:
|
|
|
|
| 59 |
SHALLOW_RES_MNEMONICS = [
|
| 60 |
"RXO", "MSFL", "RXOZ", "SFLU", "SFLA", "SFR", "SN", "AO10",
|
| 61 |
"RSHA", "RSFL", "RXO90",
|
| 62 |
+
# medium/shallow tools also likely to be instrument-ceiling honeypots
|
| 63 |
+
"SFL", "RS", "HMRS", "HDRS", "AHO10", "RLA1",
|
| 64 |
]
|
| 65 |
|
| 66 |
CALIPER_MNEMONICS = [
|
|
|
|
| 292 |
|
| 293 |
# ββ Honeypot detection ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 294 |
|
| 295 |
+
def is_honeypot(rhob, nphi, gr, rt, dt=None, drho=None, cal=None, rxo=None, all_sonics=None, all_rts=None):
|
| 296 |
"""
|
| 297 |
Returns True if well has systematic physics violations.
|
| 298 |
Honeypots have impossible raw values baked in.
|
|
|
|
| 410 |
if np.mean(np.abs(vg - 300) < 0.5) > 0.05:
|
| 411 |
violations += 2
|
| 412 |
|
| 413 |
+
# Scan ALL resistivity curves for ceiling/floor β violation may be in secondary curve
|
| 414 |
+
rt_candidates = list(all_rts) if all_rts else []
|
| 415 |
+
if rt is not None and not any(np.array_equal(rt, c) for c in rt_candidates):
|
| 416 |
+
rt_candidates = [rt] + rt_candidates
|
| 417 |
+
for vt_arr in rt_candidates:
|
| 418 |
+
if np.isfinite(vt_arr).sum() < 10:
|
| 419 |
+
continue
|
| 420 |
+
vt = vt_arr[np.isfinite(vt_arr)]
|
| 421 |
+
# RT floor at 0.1 ohm-m = instrument minimum
|
| 422 |
if np.mean(np.abs(vt - 0.1) < 0.001) > 0.10:
|
| 423 |
violations += 2
|
| 424 |
+
# RT ceiling at 20000 = deep RT instrument max (already checked for primary RT above)
|
| 425 |
+
if np.mean(np.abs(vt - 20000) < 20) > 0.03:
|
| 426 |
+
violations += 3
|
| 427 |
+
# RT ceiling at 10000 in any resistivity curve = instrument saturation
|
| 428 |
+
if np.mean(np.abs(vt - 10000) < 10) > 0.50:
|
| 429 |
+
violations += 2
|
| 430 |
|
| 431 |
+
# Shallow resistivity (RXO/MSFL/SFR/SN/SFL/RS) stuck at ceiling (10000 ohm-m)
|
| 432 |
+
# Moved to rxo check β also add ALL shallow res curves via rxo = find_all_curves
|
| 433 |
if rxo is not None and np.isfinite(rxo).sum() > 20:
|
| 434 |
vrxo = rxo[np.isfinite(rxo)]
|
| 435 |
if np.mean(np.abs(vrxo - 10000) < 10) > 0.50:
|
|
|
|
| 478 |
if med_nphi > 2:
|
| 479 |
nphi = nphi / 100.0
|
| 480 |
|
| 481 |
+
all_rts = find_all_curves(las, RESISTIVITY_MNEMONICS)
|
| 482 |
+
|
| 483 |
# Honeypot check
|
| 484 |
+
honeypot = is_honeypot(rhob, nphi, gr, rt, dt=dt, drho=drho, cal=cal, rxo=rxo, all_sonics=all_sonics, all_rts=all_rts)
|
| 485 |
|
| 486 |
# Compute curves
|
| 487 |
if gr is not None:
|