correct_neutron_hc¶
petrophys.interpretation.porosity.hydrocarbon_correction.correct_neutron_hc
- correct_neutron_hc(
- nphi,
- phi,
- sxo,
- hc_type='oil',
- vcl=None,
- phi_cl=0.15,
- hydrogen_index=None,
Correct neutron porosity for hydrocarbon effect.
When VCL is provided, uses the design doc’s preliminary porosity approach. Otherwise falls back to the simpler direct correction.
- Parameters:
nphi (float or np.ndarray) – Raw neutron porosity (v/v)
phi (float or np.ndarray) – Porosity estimate (used in fallback mode)
sxo (float or np.ndarray) – Flushed zone water saturation (v/v)
hc_type (str) – Hydrocarbon type (“oil” or “gas”)
vcl (float or np.ndarray, optional) – Volume of clay (fraction). If provided, uses preliminary porosity approach from design doc.
phi_cl (float) – Clay porosity from NPHI at 100% clay (default: 0.15)
hydrogen_index (float, optional) – Hydrogen index of the hydrocarbon. Default: DefaultParameters.OIL_HYDROGEN_INDEX (1.0) for oil, GAS_HYDROGEN_INDEX (0.3) for gas.
- Returns:
HC-corrected neutron porosity
- Return type:
float or np.ndarray