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 writesPOTASSIUM(%),THORIUMandURANIUM(ppm), theTH_K_RATIO,U_TH_RATIOandU_K_RATIOratios, the uranium-freeCGR_CALC(API) and uranium diagnostics, as far as the inputs allow.CGR_CALCcan feedclay_volume(gr_curve="CGR_CALC"). Wrapspetrophys.interpretation.geochemistry.interpret_spectral_gamma(), whichpetrophys.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_FLAGis set.name (str, optional) – Step name; defaults to
"spectral_gamma".
- Returns:
Requires at least one processed spectral gamma curve.
- Return type:
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']