.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "generated\examples\dro\plot_T1_mapping_vFATR.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 or to run this example in your browser via Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_generated_examples_dro_plot_T1_mapping_vFATR.py: ================================== T1-mapping with variable TR and FA ================================== 5-dimensions dataset simulating MRI data collected fro T1-mapping using the technical of variable flip angles and repetition times. .. GENERATED FROM PYTHON SOURCE LINES 10-11 Gnerate synthetic data and extract coordinates and array. .. GENERATED FROM PYTHON SOURCE LINES 11-19 .. code-block:: default import numpy as np from dbdicom import dro data = dro.T1_mapping_vFATR() dims = ('SliceLocation', 'FlipAngle', 'RepetitionTime') #coords = data.coords(dims) .. GENERATED FROM PYTHON SOURCE LINES 20-21 Display the data at the smallest flip angle and repetition time .. GENERATED FROM PYTHON SOURCE LINES 21-30 .. code-block:: default from dbdicom.extensions.matplotlib import plot_mosaic im0 = data.extract(FlipAngle=20, RepetitionTime=5.0) plot_mosaic(im0, zdim='SliceLocation', gridspacing=500) # Choose the last image as a thumbnail for the gallery # sphinx_gallery_thumbnail_number = -1 .. image-sg:: /generated/examples/dro/images/sphx_glr_plot_T1_mapping_vFATR_001.png :alt: plot T1 mapping vFATR :srcset: /generated/examples/dro/images/sphx_glr_plot_T1_mapping_vFATR_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 1.379 seconds) .. _sphx_glr_download_generated_examples_dro_plot_T1_mapping_vFATR.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/QIB-Sheffield/dbdicom/main?urlpath=lab/tree/notebooks/generated/examples/dro/plot_T1_mapping_vFATR.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_T1_mapping_vFATR.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_T1_mapping_vFATR.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_