.. 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 `Simple UV `_ example to understand how pySpecData locates the file here. .. GENERATED FROM PYTHON SOURCE LINES 12-14 .. code-block:: Python import matplotlib.pyplot as plt import pyspecdata as psd .. GENERATED FROM PYTHON SOURCE LINES 15-18 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 18-25 .. code-block:: Python d = psd.find_file("S175R1a.*DHPC.*200304", exp_type='francklab_esr/Sam') 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 `_