Logo: Rock Physics Avo

Rock Physics Avo

Communautéit
SteadfastAsArt
rock-physics-avo

Rock physics and AVO analysis workflow from well log preparation through elastic property calculation, fluid substitution, AVO modelling, and synthetic seismogram generation. Use when performing rock physics studies or AVO feasibility analysis.

Iwwersiicht

EditeurSteadfastAsArt
Repositorygeoscience-skills
Skill-Nummrock-physics-avo
Stären
75
Forks
9
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    SteadfastAsArt huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Rock Physics Avo an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/SteadfastAsArt/geoscience-skills/tree/main/workflows/rock-physics-avo
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SteadfastAsArt/geoscience-skills.git /tmp/geoscience-skills
mkdir -p .claude/skills
cp -r /tmp/geoscience-skills/workflows/rock-physics-avo .claude/skills/rock-physics-avo
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Rock Physics Avo an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Rock Physics Avo automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Rock Physics Avo net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Rock Physics & AVO Workflow

End-to-end pipeline for rock physics analysis and AVO feasibility studies, from well log preparation through elastic property calculation, Gassmann fluid substitution, AVO modelling, and synthetic seismogram generation.

Skill Chain

text
lasio / welly          bruges                    segyio / obspy
[Well Log Prep]     --> [Rock Physics]         --> [Synthetics / Tie]
  |                      |                          |
  Load LAS/DLIS          Elastic moduli             Wavelet extraction
  QC & despike           Gassmann fluid sub         Reflectivity series
  Resample curves        AVO intercept/gradient     Convolve synthetic
  Extract Vp, Vs, rho    Backus averaging           Well-seismic tie

Decision Points

TaskLibraryWhen to Use
Load well logslasio / dlisioWhen logs are not already loaded
Curve QC and managementwellyMulti-curve processing, despiking
Elastic moduli, AVO equationsbrugesCore rock physics calculations
Gassmann fluid substitutionbrugesPredict fluid replacement effects
Wavelet extraction from seismicsegyio + brugesWhen tying to seismic
Synthetic seismogrambrugesGenerate reflectivity and convolve
Dispersion curvesdisbaSurface wave rock physics

Step-by-Step Orchestration

Stage 1: Well Log Preparation (lasio + welly)

Select and QC a contiguous interval before these calculations. Required curves are DT and RHOB; DTS is optional. This example explicitly permits the Castagna estimate for missing DTS in an appropriate siliciclastic interval. It is an empirical estimate, not a measured shear log. Nulls in unrelated curves must not remove elastic samples, and invalid elastic samples must not be silently bridged.

python
import lasio
import numpy as np

las = lasio.read('well.las')
df = las.df().copy()

def unit(curve):
    return las.curves[curve].unit.replace('µ', 'u').replace('μ', 'u').upper().replace(' ', '')

def sonic_velocity(curve):
    factors = {'US/FT': 0.3048e6, 'US/M': 1e6}
    values = df[curve].to_numpy(dtype=float)
    if unit(curve) not in factors:
        raise ValueError(f'Confirm sonic units for {curve}: {unit(curve)}')
    if not np.all(np.isfinite(values) & (values > 0)):
        raise ValueError(f'QC {curve}: nonpositive or missing transit times')
    return factors[unit(curve)] / values  # m/s

vp = sonic_velocity('DT')
vs_estimated = 'DTS' not in df.columns
if vs_estimated:
    vs = 0.8621 * vp - 1172.4
else:
    vs = sonic_velocity('DTS')  # Check existence before reading

density_factors = {'G/CC': 1000.0, 'G/CM3': 1000.0, 'G/C3': 1000.0, 'KG/M3': 1.0}
if unit('RHOB') not in density_factors:
    raise ValueError('Confirm RHOB units before converting to kg/m3')
rho = df['RHOB'].to_numpy(dtype=float) * density_factors[unit('RHOB')]
if not np.all(np.isfinite(rho) & (rho > 0) & (vs > 0) & (vp**2 > 4/3 * vs**2)):
    raise ValueError('Invalid elastic inputs: require positive density, Vs and bulk modulus')

depth_factors = {'M': 1.0, 'FT': 0.3048}
depth_unit = unit(las.curves[0].mnemonic)
if depth_unit not in depth_factors:
    raise ValueError('Confirm LAS depth units')
depth_m = df.index.to_numpy(dtype=float) * depth_factors[depth_unit]
if len(depth_m) < 2 or not np.all(np.isfinite(depth_m)) or np.any(np.diff(depth_m) <= 0):
    raise ValueError('Provide at least two samples on an increasing depth basis')

Stage 2: Rock Physics Analysis (bruges)

python
import bruges

# Elastic moduli from velocities
K = bruges.rockphysics.moduli.bulk(vp=vp, vs=vs, rho=rho)   # Bulk modulus
G = bruges.rockphysics.moduli.mu(vs=vs, rho=rho)            # Shear modulus, Pa
E = bruges.rockphysics.moduli.youngs(bulk=K, mu=G)          # Young's modulus, Pa
nu = bruges.rockphysics.moduli.pr(vp=vp, vs=vs)             # Poisson's ratio
AI = vp * rho                                             # Acoustic impedance, SI
SI = vs * rho                                             # Shear impedance, SI

# Vp/Vs ratio (key AVO indicator)
vp_vs = vp / vs

Stage 3: Gassmann Fluid Substitution (bruges)

This branch assumes a brine-saturated, isotropic interval with connected pores, an unchanged frame, and suitable low-frequency conditions. Supply interpreted porosity as PHIE in v/v; raw NPHI requires lithology/gas corrections first. Fluid properties below are illustrative and must match formation conditions.

python
from bruges.rockphysics.fluidsub import avseth_fluidsub

if unit('PHIE') != 'V/V':
    raise ValueError('Supply interpreted PHIE in v/v for fluid substitution')
phi = df['PHIE'].to_numpy(dtype=float)
if not np.all(np.isfinite(phi) & (phi > 0) & (phi < 1)):
    raise ValueError('Fluid substitution requires finite porosity between 0 and 1')

# Mineral and fluid properties
K_mineral = 36.6e9   # Quartz bulk modulus (Pa)
K_brine = 2.6e9      # Brine bulk modulus (Pa)
rho_brine = 1050     # Brine density (kg/m3)
K_gas = 0.02e9       # Gas bulk modulus (Pa)
rho_gas = 100        # Gas density (kg/m3)

# The library performs inverse/forward Gassmann; VRH mixing is not this operation.
vp_gas, vs_gas, rho_gas_sat = avseth_fluidsub(
    vp=vp, vs=vs, rho=rho, phi=phi,
    rhof1=rho_brine, rhof2=rho_gas,
    kmin=K_mineral, kf1=K_brine, kf2=K_gas,
)
if not np.all(np.isfinite([vp_gas, vs_gas, rho_gas_sat])):
    raise ValueError('Invalid substituted model; review frame and fluid assumptions')

Stage 4: AVO Analysis (bruges)

python
# Keep every adjacent interface, rather than overwriting the last result.
angles_deg = np.arange(0, 40, 1)
upper = (vp[:-1], vs[:-1], rho[:-1])
lower = (vp[1:], vs[1:], rho[1:])
rc = bruges.reflection.shuey(*upper, *lower, theta1=angles_deg)
intercept, gradient = bruges.reflection.shuey(
    *upper, *lower, return_gradient=True
)

# AVO classification from intercept (R0) and gradient (G)
# Class I:   R0 > 0, G < 0  (hard sand, dim with offset)
# Class II:  R0 ~ 0, G < 0  (near-zero, polarity reversal)
# Class III: R0 < 0, G < 0  (soft sand, bright with offset)
# Class IV:  R0 < 0, G > 0  (very soft, dim with offset)

# Zoeppritz exact for full offset range
rc_exact = bruges.reflection.zoeppritz_rpp(*upper, *lower, theta1=angles_deg)

Stage 5: Synthetic Seismogram (bruges + segyio)

Supply time_depth.csv with columns depth_m,twt_s from checkshots or a calibrated sonic integration. Its depth basis and datum must match the LAS samples: measured depth is not automatically TVD. Interpolate impedance onto uniform two-way time before convolving a time-domain wavelet. For a well tie, select a seismic trace by survey coordinates and compare matching time axes; trace 0 is not a well location.

python
from scipy.signal import convolve

time_depth = np.loadtxt('time_depth.csv', delimiter=',', skiprows=1, ndmin=2)
if (time_depth.shape[1] != 2 or len(time_depth) < 2
        or not np.all(np.isfinite(time_depth))
        or np.any(np.diff(time_depth, axis=0) <= 0)):
    raise ValueError('Require increasing finite depth_m and twt_s columns')
if depth_m[0] < time_depth[0, 0] or depth_m[-1] > time_depth[-1, 0]:
    raise ValueError('Time-depth relation must cover the entire selected log interval')
twt_s = np.interp(depth_m, time_depth[:, 0], time_depth[:, 1])
dt_s = 0.002
twt_regular_s = np.arange(twt_s[0], twt_s[-1] + dt_s * 1e-6, dt_s)
if len(twt_regular_s) < 2:
    raise ValueError('Selected time interval is shorter than one sample')
impedance_t = np.interp(twt_regular_s, twt_s, vp * rho)
rc_series = np.r_[0.0, np.diff(impedance_t) / (impedance_t[:-1] + impedance_t[1:])]

# Bruges returns amplitudes first, time samples second.
wavelet, wavelet_time = bruges.filters.ricker(duration=0.128, dt=dt_s, f=25)
synthetic = convolve(rc_series, wavelet, mode='same')
assert synthetic.shape == twt_regular_s.shape

Repeat Stages 4–5 with the substituted velocities/density to compare fluid scenarios, using the same chosen time-depth relation unless a travel-time change is explicitly being modelled. Report correlation together with wavelet, time-depth provenance, and any justified alignment edits; unconstrained stretching can hide a poor model.

Common Pipelines

AVO Feasibility Study

text
- [ ] Load well logs (Vp, Vs, Rho, porosity) with lasio
- [ ] QC a contiguous log interval; retain raw data and document any justified gap treatment
- [ ] If no Vs log: estimate from Castagna or Greenberg-Castagna
- [ ] Calculate elastic moduli and impedances with bruges
- [ ] Run Gassmann fluid substitution (brine to gas/oil)
- [ ] Compare Vp, Vs, density, impedance before/after fluid sub
- [ ] Compute AVO response at target interface (Shuey or Zoeppritz)
- [ ] Classify AVO response (Class I-IV)
- [ ] Generate synthetic seismograms for both fluid scenarios
- [ ] Plot AVO crossplot (intercept vs gradient)

Well-Seismic Tie

text
- [ ] Load well logs and seismic trace at well location
- [ ] Create time-depth relationship from check shots or sonic
- [ ] Convert logs to time domain
- [ ] Extract wavelet from seismic (statistical or deterministic)
- [ ] Generate synthetic seismogram from reflectivity * wavelet
- [ ] Cross-correlate synthetic with seismic trace
- [ ] Constrain any alignment edits with checkshots and document their justification
- [ ] Report correlation coefficient

Backus Averaging (Upscaling)

text
- [ ] Load thin-bed well logs at fine sampling (0.5 ft)
- [ ] Define averaging window (e.g., quarter wavelength at target frequency)
- [ ] Apply Backus averaging to get effective anisotropic elastic properties
- [ ] Compare fine-scale vs upscaled reflectivity
- [ ] Assess thin-bed tuning effects

When to Use

Use the rock physics & AVO workflow when:

  • Performing AVO feasibility studies for exploration prospects
  • Running Gassmann fluid substitution to predict fluid effects
  • Generating synthetic seismograms for well-seismic ties
  • Calculating elastic properties from well logs
  • Classifying AVO response at target horizons

Use individual domain skills when:

  • Only loading well logs (use lasio alone)
  • Only computing dispersion curves (use disba alone)
  • Only creating wavelets or filters (use bruges alone)

Common Issues

IssueSolution
No shear sonic logEstimate Vs from Castagna mudrock line or Greenberg-Castagna
Gassmann gives unrealistic velocitiesCheck porosity and mineral modulus inputs; phi must be > 0
Negative Poisson's ratioUsually indicates bad Vs data; QC shear sonic
Poor well-seismic tieCheck time-depth relationship; try different wavelets
AVO effect too smallMay be real; check impedance contrast and Vp/Vs ratio
Fluid sub in shalesReview anisotropy, pore connectivity and frequency assumptions before applying Gassmann

API Sources

Heefeg gestallte Froen

Wat mécht de KI-Skill Rock Physics Avo?

Rock physics and AVO analysis workflow from well log preparation through elastic property calculation, fluid substitution, AVO modelling, and synthetic seismogram generation. Use when performing rock physics studies or AVO feasibility analysis.

Firwat Rock Physics Avo op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Rock Physics Avo besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Rock Physics Avo an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/SteadfastAsArt/geoscience-skills/tree/main/workflows/rock-physics-avo an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Rock Physics Avo benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Rock Physics Avo benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Rock Physics Avo domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Rock Physics Avo gratis?

Jo. SteadfastAsArt huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇