spectral_gamma

petrophys.workflow.steps.spectral_gamma

spectral_gamma(*, api_coefficients=None, uranium_fraction_threshold=0.5, name=None)[source]

Standardize processed spectral gamma ray (K, Th, U) and derive ratios.

Recognizes vendor mnemonics (POTA, THOR, URAN, HSGR, HCGR, …) and writes POTASSIUM (%), THORIUM and URANIUM (ppm), the TH_K_RATIO, U_TH_RATIO and U_K_RATIO ratios, the uranium-free CGR_CALC (API) and uranium diagnostics, as far as the inputs allow. CGR_CALC can feed clay_volume(gr_curve="CGR_CALC"). Wraps petrophys.interpretation.geochemistry.interpret_spectral_gamma(), which petrophys.interpret() does not run.

Parameters:
  • api_coefficients (dict, optional) – API sensitivities by "POTASSIUM", "THORIUM" and "URANIUM"; defaults 16.32 API/%, 3.93 API/ppm and 8.09 API/ppm.

  • uranium_fraction_threshold (float, default 0.5) – Uranium fraction of total gamma ray above which SGR_URANIUM_EXCESS_FLAG is set.

  • name (str, optional) – Step name; defaults to "spectral_gamma".

Returns:

Requires at least one processed spectral gamma curve.

Return type:

Step

Examples

>>> import petrophys as pp
>>> from petrophys.workflow import Workflow, steps
>>> run = Workflow("sgr", [steps.spectral_gamma()]).run(pp.read(pp.sample("25_5-1")))
>>> run.steps[0].output_curves
['THORIUM', 'URANIUM', 'U_TH_RATIO', 'SGR_URANIUM_API']