Read FSM Perkin Elmer Spotlight IR binary fileΒΆ

This example shows how to read FSM file and plot the results.

../../_images/sphx_glr_plot_read_fsm_001.png

Out:

/home/docs/checkouts/readthedocs.org/user_builds/specio/envs/stable/local/lib/python2.7/site-packages/specio/datasets/data/spectra.fsm

# Authors: Guillaume Lemaitre <guillaume.lemaire@inria.fr>
# License: BSD3

from __future__ import print_function

import matplotlib.pyplot as plt

from specio import specread
from specio.datasets import load_fsm_path

print(__doc__)

# Find the path to the FSM toy data
fsm_filename = load_fsm_path()
print(fsm_filename)

# Read the data
spectra = specread(fsm_filename)

# Plot the first spectra
plt.plot(spectra.wavelength,
         spectra.amplitudes[0])
plt.show()

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

Gallery generated by Sphinx-Gallery