Files
ML-Porosity/test 2/qc_plot.py
2026-10-26 08:46:21 +07:00

27 lines
706 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import numpy as np
import matplotlib.pyplot as plt
D = np.load("outputs/f3_wells_dataset.npz", allow_pickle=True)
def plot_well(name):
d = D[name].item()
t = d["seismic_times_ms"]
phi = d["porosity_resampled"]
tr = d["seismic_trace"]
plt.figure(figsize=(8,4))
if tr is not None:
trn = tr / (np.nanmax(np.abs(tr)) + 1e-8)
plt.plot(trn, t, label="Seismic (norm)")
plt.plot(phi, t, label="Porosity (PHIE)")
plt.gca().invert_yaxis()
plt.xlabel("Value")
plt.ylabel("TWT (ms)")
plt.title(f"{name}: 600–1100 ms")
plt.legend()
plt.tight_layout()
plt.show()
for w in ["F03-4","F02-1","F06-1"]:
plot_well(w)