:orphan:

***************
Example Gallery
***************

This gallery contains examples of how to use ``ndcube``.
Most of these examples require the ``sunpy`` sample data, which you can download by running::

     >>> import sunpy.data.sample

Once downloaded the data will be stored in your user directory and you will not need to download it again.



.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="One of the powerful aspects of having coordinate-aware data stored as an ~ndcube.NDCube is the ...">

.. only:: html

  .. image:: /generated/gallery/images/thumb/sphx_glr_slicing_ndcube_thumb.png
    :alt:

  :ref:`sphx_glr_generated_gallery_slicing_ndcube.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Examples of cropping an NDCube</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how you load in data from a FITS file to create an ~ndcube.NDCube. Here we w...">

.. only:: html

  .. image:: /generated/gallery/images/thumb/sphx_glr_creating_ndcube_from_fitsfile_thumb.png
    :alt:

  :ref:`sphx_glr_generated_gallery_creating_ndcube_from_fitsfile.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">How to create an NDCube from data stored in a FITS file</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /generated/gallery/slicing_ndcube
   /generated/gallery/creating_ndcube_from_fitsfile


.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-gallery

    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download all examples in Python source code: gallery_python.zip </generated/gallery/gallery_python.zip>`

    .. container:: sphx-glr-download sphx-glr-download-jupyter

      :download:`Download all examples in Jupyter notebooks: gallery_jupyter.zip </generated/gallery/gallery_jupyter.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
