.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/ESR/esr_example.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 .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_ESR_esr_example.py: Bruker cw ESR Data ================== Load cw Bruker ESR data, both 1D and 2D. Check out the :ref:`Simple UV ` example to understand how pySpecData locates the file here. .. GENERATED FROM PYTHON SOURCE LINES 12-16 .. code-block:: Python import matplotlib.pyplot as plt import pyspecdata as psd .. GENERATED FROM PYTHON SOURCE LINES 17-20 Load some 1D ESR data with harmonic + phase info. The data is initial organized into two dimensions -- `harmonic` and $B_0$. .. GENERATED FROM PYTHON SOURCE LINES 20-33 .. code-block:: Python d = psd.find_file( "S175R1a.*DHPC.*today.*200304.*", exp_type="francklab_esr/Sam", zenodo="21287247", ) print(d.shape) print( "here, we see the harmonic axis contains both harmonic and phase info", repr(d.getaxis("harmonic")), ) d.chunk_auto("harmonic", "phase") .. rst-class:: sphx-glr-script-out .. code-block:: none [(2048, '$B_0$'), (10, 'harmonic')] here, we see the harmonic axis contains both harmonic and phase info array([(1, 0), (1, 90), (2, 0), (2, 90), (3, 0), (3, 90), (4, 0), (4, 90), (5, 0), (5, 90)], dtype=[('harmonic', '` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: esr_example.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_