nd_crossplot_porosity

petrophys.interpretation.lithology.nd_crossplot_porosity

nd_crossplot_porosity(rhob, nphi, *, rho_fluid=1.0, nphi_fluid=1.0)[source]

Total porosity from linear clean-mineral neutron-density triangles.

Uses quartz/calcite/water and calcite/dolomite/water volume balance, with limestone-referenced neutron endpoints -0.02, 0, 0.02 and matrix densities 2.65, 2.71, 2.87 g/cm3. This is a linear clean binary-mineral model, not a vendor neutron-tool calibration. Gas, clay and samples outside these triangles need another porosity estimate. Such samples return NaN and warn. Independently determined total porosity is preferred for matrix identification in complex lithologies.