
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "generated/gallery/10-gradient-echo/gre_stack_of_blades3D_sequence.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html

    .. note::
        :class: sphx-glr-download-link-note

        :ref:`Go to the end <sphx_glr_download_generated_gallery_10-gradient-echo_gre_stack_of_blades3D_sequence.py>`
        to download the full example code.

.. rst-class:: sphx-glr-example-title

.. _sphx_glr_generated_gallery_10-gradient-echo_gre_stack_of_blades3D_sequence.py:


==================================
3D stack-of-blades gradient echo
==================================

A slab-selective spoiled excitation is followed by one line from a rotating
in-plane PROPELLER blade with Cartesian partition encoding. Gradient and RF
spoiling suppress residual transverse coherence. TR, flip angle, and TE
determine contrast. The overlapping blade centres support motion-robust 3D
structural imaging.

.. GENERATED FROM PYTHON SOURCE LINES 12-32








.. GENERATED FROM PYTHON SOURCE LINES 33-37

Sixteen-line blades
-------------------

Sixteen lines per blade, at every partition.

.. GENERATED FROM PYTHON SOURCE LINES 37-47

.. code-block:: Python


    import pypulseqpp as pp
    from pypulseqpp.sequences import gre_stack_of_blades3D_sequence

    baseline = gre_stack_of_blades3D_sequence(
        n=96, n_z=8, blade_width=16, tr=None, n_dummy=0
    )
    print(f"{baseline.num_blocks} blocks, {baseline.duration()[0]:.2f} s")






.. rst-class:: sphx-glr-script-out

 .. code-block:: none

    6400 blocks, 8.04 s




.. GENERATED FROM PYTHON SOURCE LINES 48-50

Sequence diagram
----------------

.. GENERATED FROM PYTHON SOURCE LINES 50-53

.. code-block:: Python


    baseline.paper_plot()




.. image-sg:: /generated/gallery/10-gradient-echo/images/sphx_glr_gre_stack_of_blades3D_sequence_001.png
   :alt: gre stack of blades3D sequence
   :srcset: /generated/gallery/10-gradient-echo/images/sphx_glr_gre_stack_of_blades3D_sequence_001.png
   :class: sphx-glr-single-img





.. GENERATED FROM PYTHON SOURCE LINES 54-58

Sampling order
--------------

The blades of every partition, over the three k-space axes.

.. GENERATED FROM PYTHON SOURCE LINES 58-61

.. code-block:: Python


    pp.plot.plot_kspace(baseline, color_by="shot")




.. image-sg:: /generated/gallery/10-gradient-echo/images/sphx_glr_gre_stack_of_blades3D_sequence_002.png
   :alt: gre stack of blades3D sequence
   :srcset: /generated/gallery/10-gradient-echo/images/sphx_glr_gre_stack_of_blades3D_sequence_002.png
   :class: sphx-glr-single-img





.. GENERATED FROM PYTHON SOURCE LINES 62-67

Wider blades
------------

Increasing blade width reduces the number of blade orientations and
increases the shared central-k-space region.

.. GENERATED FROM PYTHON SOURCE LINES 67-81

.. code-block:: Python


    alternative = gre_stack_of_blades3D_sequence(
        n=96, n_z=8, blade_width=32, tr=None, n_dummy=0
    )






.. rst-class:: sphx-glr-script-out

 .. code-block:: none

                       blocks  duration (s)  acquisitions
    16 lines             6400          8.04          1280
    32 lines             6400          8.04          1280




.. GENERATED FROM PYTHON SOURCE LINES 82-84

.. code-block:: Python

    pp.plot.plot_kspace(alternative, color_by="shot")




.. image-sg:: /generated/gallery/10-gradient-echo/images/sphx_glr_gre_stack_of_blades3D_sequence_003.png
   :alt: gre stack of blades3D sequence
   :srcset: /generated/gallery/10-gradient-echo/images/sphx_glr_gre_stack_of_blades3D_sequence_003.png
   :class: sphx-glr-single-img






.. rst-class:: sphx-glr-timing

   **Total running time of the script:** (0 minutes 8.963 seconds)


.. _sphx_glr_download_generated_gallery_10-gradient-echo_gre_stack_of_blades3D_sequence.py:

.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-example

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

      :download:`Download Jupyter notebook: gre_stack_of_blades3D_sequence.ipynb <gre_stack_of_blades3D_sequence.ipynb>`

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

      :download:`Download Python source code: gre_stack_of_blades3D_sequence.py <gre_stack_of_blades3D_sequence.py>`

    .. container:: sphx-glr-download sphx-glr-download-zip

      :download:`Download zipped: gre_stack_of_blades3D_sequence.zip <gre_stack_of_blades3D_sequence.zip>`


.. only:: html

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

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