:orphan:

PySpecData Examples
===================

Below is a gallery of examples using our 
various functions.



.. raw:: html

    <div class="sphx-glr-thumbnails">


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A quick demonstration of polynomial fitting.">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_polyfit_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_polyfit.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Polynomial Fitting</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Show how to_ppm() can apply to two dimensions!">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_ppm_2D_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_ppm_2D.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">PPM in 2D</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Here is a simple example of errors and unit propagation">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_error_example_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_error_example.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Error and units example</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Calculation of the Covariance Matrix">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_calculate_covariance_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_calculate_covariance.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Calculation of the Covariance Matrix</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This also demonstrates the point that, when performing convolution, it&#x27;s important to distingui...">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_convolution_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_convolution.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Simple Convolution Example</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A simple demonstration of a multi-line vs. image plot with domain coloring, nested inside a fig...">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_image_plot_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_image_plot.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Plotting Routines</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Calculation of the Covariance Matrix">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_temp_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_temp.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Calculation of the Covariance Matrix</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrates how to convert from offset in Hz to  ppm scale">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_ppm_example_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_ppm_example.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">ppm Example</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The case considered here is that of an NMR FID that has been acquired with a wider spectral wid...">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_basic_example_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_basic_example.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Basic Slicing/Filtering Example</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Basic demonstration of pcolor, which can deal with unevenly spaced data">

.. only:: html

  .. image:: /auto_examples/images/thumb/sphx_glr_pcolor_example_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_pcolor_example.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Unevenly spaced data</div>
    </div>


.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/polyfit
   /auto_examples/ppm_2D
   /auto_examples/error_example
   /auto_examples/calculate_covariance
   /auto_examples/convolution
   /auto_examples/image_plot
   /auto_examples/temp
   /auto_examples/ppm_example
   /auto_examples/basic_example
   /auto_examples/pcolor_example

DCCT
----

We now have nicely packaged code to generate
Domain Colored Coherence Transfer images.



.. raw:: html

    <div class="sphx-glr-thumbnails">


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Visualize a simulated inversion recovery dataset utilizing the benefits of the DCCT plotting st...">

.. only:: html

  .. image:: /auto_examples/DCCT/images/thumb/sphx_glr_DCCT_side_by_side_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_DCCT_DCCT_side_by_side.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Arranging Multiple DCCT Plots</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Visualize a simulated inversion recovery dataset utilizing the benefits of the DCCT plotting st...">

.. only:: html

  .. image:: /auto_examples/DCCT/images/thumb/sphx_glr_DCCT_dimensions_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_DCCT_DCCT_dimensions.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Using the DCCT function</div>
    </div>


.. raw:: html

    </div>

ESR
---

Examples involving Bruker Electron Spin (Paramagnetic) Resonance Data.



.. raw:: html

    <div class="sphx-glr-thumbnails">


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="We use this to demonstrate:">

.. only:: html

  .. image:: /auto_examples/ESR/images/thumb/sphx_glr_epr_u_domain_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_ESR_epr_u_domain.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">EPR u-domain</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Load cw Bruker ESR data, both 1D and 2D.">

.. only:: html

  .. image:: /auto_examples/ESR/images/thumb/sphx_glr_esr_example_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_ESR_esr_example.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Bruker cw ESR Data</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This makes use of the package pint, which is a very nice package for handling units.">

.. only:: html

  .. image:: /auto_examples/ESR/images/thumb/sphx_glr_QESR_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_ESR_QESR.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Quantitative ESR</div>
    </div>


.. raw:: html

    </div>

Regularization
--------------

1, 1.5, and 2D regularization



.. raw:: html

    <div class="sphx-glr-thumbnails">


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="2D ILT">

.. only:: html

  .. image:: /auto_examples/ILT/images/thumb/sphx_glr_2DILT_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_ILT_2DILT.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">2D ILT</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="For 1D BRD, adapted mainly from Venkataramanan 2002 but checked against a compiled stacked regu...">

.. only:: html

  .. image:: /auto_examples/ILT/images/thumb/sphx_glr_BRD_test_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_ILT_BRD_test.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">1D BRD regularization</div>
    </div>


.. raw:: html

    </div>

UV
--

Reading Cary UV-Vis data and performing manipulations.



.. raw:: html

    <div class="sphx-glr-thumbnails">


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="A simple demo of loading Cary UV-Vis data. This example just loads a file and plots all the spe...">

.. only:: html

  .. image:: /auto_examples/UV/images/thumb/sphx_glr_Cary_simple_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_UV_Cary_simple.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Simple Cary UV-Vis loading</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="After you&#x27;ve looked at the simple UV-Vis example, this one shows how you can manipulate UV-Vis ...">

.. only:: html

  .. image:: /auto_examples/UV/images/thumb/sphx_glr_ellmans_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_UV_ellmans.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Manipulation of UV-Vis data</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example is specifically designed to process data from a BSA calibration curve lab exercise...">

.. only:: html

  .. image:: /auto_examples/UV/images/thumb/sphx_glr_BSA_calibration_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_UV_BSA_calibration.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">BSA UV-Vis Calibration</div>
    </div>


.. raw:: html

    </div>

Fitting
-------

Classes that we have developed to make curve-fitting nicer.



.. raw:: html

    <div class="sphx-glr-thumbnails">


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Adapt one of the examples from lmfit to use sympy and pyspecdata. Eventually, we want to use pa...">

.. only:: html

  .. image:: /auto_examples/fitting/images/thumb/sphx_glr_fit_with_bounds_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_fitting_fit_with_bounds.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Fit Using Bounds</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Using lmfitdata, fit a complex data set.">

.. only:: html

  .. image:: /auto_examples/fitting/images/thumb/sphx_glr_fit_complex_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_fitting_fit_complex.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Fit complex data</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Using lmfitdata, fit a complex data set.">

.. only:: html

  .. image:: /auto_examples/fitting/images/thumb/sphx_glr_fit_complex_with_transform_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_fitting_fit_complex_with_transform.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Fit complex data with transform</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example creates fake data with noise then fits the exponential with the fitdata function.">

.. only:: html

  .. image:: /auto_examples/fitting/images/thumb/sphx_glr_fit_fake_data_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_fitting_fit_fake_data.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Fitting Data (Nonlinear + Symbolic)</div>
    </div>


.. raw:: html

    </div>

XX Individual Functions XX
--------------------------

These are not very important -- just tests to verify the performance of individual functions.



.. raw:: html

    <div class="sphx-glr-thumbnails">


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Save nddata to standard HDF5 format.">

.. only:: html

  .. image:: /auto_examples/indiv_funcs/images/thumb/sphx_glr_hdf_test_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_indiv_funcs_hdf_test.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Save data to HDF5</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Demonstrate how to extend past the limits of the data.">

.. only:: html

  .. image:: /auto_examples/indiv_funcs/images/thumb/sphx_glr_extend_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_indiv_funcs_extend.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Extend</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Convolution">

.. only:: html

  .. image:: /auto_examples/indiv_funcs/images/thumb/sphx_glr_convolve_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_indiv_funcs_convolve.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Convolution</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="show an easy method for matching colors using pyspecdata">

.. only:: html

  .. image:: /auto_examples/indiv_funcs/images/thumb/sphx_glr_test_colormatch_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_indiv_funcs_test_colormatch.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">show an easy method for matching colors using pyspecdata</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Unitary FT">

.. only:: html

  .. image:: /auto_examples/indiv_funcs/images/thumb/sphx_glr_unitary_ft_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_indiv_funcs_unitary_ft.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Unitary FT</div>
    </div>


.. raw:: html

    </div>


.. toctree::
   :hidden:
   :includehidden:


   /auto_examples/DCCT/index.rst
   /auto_examples/ESR/index.rst
   /auto_examples/ILT/index.rst
   /auto_examples/UV/index.rst
   /auto_examples/fitting/index.rst
   /auto_examples/indiv_funcs/index.rst


.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-gallery

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

      :download:`Download all examples in Python source code: auto_examples_python.zip </auto_examples/auto_examples_python.zip>`

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

      :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip </auto_examples/auto_examples_jupyter.zip>`


.. only:: html

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

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