
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "auto_examples\PR_first_example.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html

    .. note::
        :class: sphx-glr-download-link-note

        Click :ref:`here <sphx_glr_download_auto_examples_PR_first_example.py>`
        to download the full example code

.. rst-class:: sphx-glr-example-title

.. _sphx_glr_auto_examples_PR_first_example.py:


Simple Cary UV-Vis loading
==========================

A simple demo of loading Cary UV-Vis data.
This example just loads a file and
plots all the spectra in a file, without embellishment

Here we have a file called Pure_T177R1a_pR_210615.BSW on our computer.
There are three requirements for where this file must be stored:

-   It **must** be stored in a folder called "proteorhodopsin" that's itself
    inside a folder called "UV_Vis" (as indicated by the ``exp_type`` argument).  Typically, this will be achieved by just
    cloning/syncing the entire "UV_Vis" directory of data shared by your lab on
    google drive, etc, etc.
-   Our pyspecdata config file (``~/.pyspecdata`` on Linux/Mac or ``~/_pyspecdata``
    on Windows) must know about this "UV_Vis" directory.
    If not, you can use the ``pyspecdata_register_dir`` command on the command line
    (see :func:`~pyspecdata.datadir.register_directory`).
-   The name of the file itself must contain the string "T177R1a_pR_210615" →
    note that you don't need to specify the whole file name, just enough for it
    to be unique.

.. GENERATED FROM PYTHON SOURCE LINES 25-41



.. rst-class:: sphx-glr-horizontal


    *

      .. image-sg:: /auto_examples/images/sphx_glr_PR_first_example_001.png
         :alt: raw UV data
         :srcset: /auto_examples/images/sphx_glr_PR_first_example_001.png
         :class: sphx-glr-multi-img

    *

      .. image-sg:: /auto_examples/images/sphx_glr_PR_first_example_002.png
         :alt: normalized by $A_{280}$
         :srcset: /auto_examples/images/sphx_glr_PR_first_example_002.png
         :class: sphx-glr-multi-img


.. rst-class:: sphx-glr-script-out

 Out:

 .. code-block:: none

    the experiments present in this file are: dict_keys(['1:30 Dilution'])
    the experiments present in this file are: dict_keys(['1:30 Dilution'])
    the experiments present in this file are: dict_keys(['1:30 Dilution'])
    the experiments present in this file are: dict_keys(['1:30 Dilution'])






|

.. code-block:: default

    from pylab import *
    from pyspecdata import *

    with figlist_var() as fl:
        for this_filename in ['A174', 'Q183', 'V202', 'T177']:
            data = find_file(this_filename,
                    exp_type='proteorhodopsin/NP_220209')
            print("the experiments present in this file are:",data.keys())

            for j in data.keys():
                fl.next("raw UV data")
                fl.plot(data[j], label=this_filename+' '+j, alpha=0.5)
                fl.next('normalized by $A_{280}$')
                normalization = data[j][r'$\lambda$':(250,300)].max()
                fl.plot(data[j]/normalization, label=this_filename+' '+j, alpha=0.5)



.. rst-class:: sphx-glr-timing

   **Total running time of the script:** ( 0 minutes  0.493 seconds)


.. _sphx_glr_download_auto_examples_PR_first_example.py:


.. only :: html

 .. container:: sphx-glr-footer
    :class: sphx-glr-footer-example



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

     :download:`Download Python source code: PR_first_example.py <PR_first_example.py>`



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

     :download:`Download Jupyter notebook: PR_first_example.ipynb <PR_first_example.ipynb>`


.. only:: html

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

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