.. 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_resampleing.py: ============================= Resampling ============================= This example shows you how to resample your data .. code-block:: python # Code source: Lucy Owen & Andrew Heusser # License: MIT # import import supereeg as se # load example data bo = se.load('example_data') # info contains sample rate bo.info() # default resample returns the brain object bo.resample() # show new info - nothing changed if resample_rate isn't specified bo.info() # resample to specified sample rate bo.resample(100) # show new info bo.info() # can also change sample rate when converting to nifti image nii = bo.to_nii(template='gray', vox_size=20, sample_rate=64) **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_resampleing.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: resampleing.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: resampleing.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_