SeReMpy: Seismic Reservoir Modeling Python library
Seismic reservoir characterization is a subfield of geophysics that combines seismic and rock physics modeling with mathematical inverse theory to predict the reservoir variables from the measured seismic data. An open-source comprehensive modeling library that includes the main concepts and tools is still missing. We present a Python library named SeReMpy with the state of the art of seismic reservoir modeling for reservoir properties characterization using seismic and rock physics models and Bayesian inverse theory. The most innovative component of the library is the Bayesian seismic and rock physics inversion to predict the spatial distribution of petrophysical and elastic properties from seismic data. The inversion algorithms include Bayesian analytical solutions of the linear-Gaussian inverse problem and Markov chain Monte Carlo (McMC) numerical methods for non-linear problems. The library includes four modules: geostatistics, rock physics, facies, and inversion, as well as several scripts with illustrative examples and applications. We present a detailed description of the scripts that illustrate the use of the functions of module and describe how to apply the codes to practical inversion problems using synthetic and real data. The applications include a rock physics model for the prediction of elastic properties and facies using well log data, a geostatistical simulation of continuous and discrete properties using well logs, a geostatistical interpolation and simulation of two-dimensional maps of temperature, an elastic inversion of partial stacked seismograms with Bayesian linearized AVO inversion, a rock physics inversion of partial stacked seismograms with McMC methods, and a two-dimensional seismic inversion.