.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/more_demos/050-bodys1.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_more_demos_050-bodys1.py: Geologic body ============== .. image:: ../../_static/cigvis/more_demos/050.png :alt: image :align: center .. GENERATED FROM PYTHON SOURCE LINES 10-35 .. code-block:: default # sphinx_gallery_thumbnail_path = '_static/cigvis/more_demos/050.png' import numpy as np import cigvis from pathlib import Path root = Path(__file__).resolve().parent.parent.parent def show1(sx, lx, level): nodes = cigvis.create_slices(sx) nodes += cigvis.create_bodys(lx, level, margin=0) cigvis.plot3D(nodes, savename='example.png') if __name__ == '__main__': sxp = root / 'data/co2/sx.dat' lxp = root / 'data/co2/lx.dat' ni, nx, nt = 192, 192, 240 sx = np.memmap(sxp, np.float32, 'c', shape=(ni, nx, nt)) lx = np.memmap(lxp, np.float32, 'c', shape=(ni, nx, nt)) show1(sx, lx, 0.5) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.000 seconds) .. _sphx_glr_download_gallery_more_demos_050-bodys1.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 050-bodys1.py <050-bodys1.py>` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 050-bodys1.ipynb <050-bodys1.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_