.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_eleven_sandstones_dataset_example.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_eleven_sandstones_dataset_example.py: Eleven Sandstones Plotting Example ========================= This example shows how we can load an image from the eleven sandstones dataset. .. GENERATED FROM PYTHON SOURCE LINES 8-11 .. code-block:: default from drd.datasets.eleven_sandstones import load_eleven_sandstones import matplotlib.pyplot as plt .. GENERATED FROM PYTHON SOURCE LINES 12-18 Loading the Image ------------------------ We will use one of the utility functions called `load_eleven_sandstones` to generate an xarray DataArray which already contains all the spatial axis information and scaling preconfigured. This way we will have a proper definition of the image data in terms of a spatial coordinate system. .. GENERATED FROM PYTHON SOURCE LINES 18-23 .. code-block:: default img = load_eleven_sandstones("Berea", "Berea_2d25um_grayscale.raw") # This is the end of the 'code block' (if using an above IDE). All code within # this block can be easily executed all at once. .. rst-class:: sphx-glr-script-out Out: .. code-block:: none Downloading https://www.digitalrocksportal.org/media/projects/317/origin/1352/images/Berea_2d25um_grayscale.raw to /home/runner/drd_data/Berea_2d25um_grayscale.raw 0%| | 0/1000000000 [00:00` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_eleven_sandstones_dataset_example.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_