Examples#
Many examples on the use of the API can be found in this gallery.
Notebook and standalone python scripts can be downloaded using the link at the bottom of each example.
Please note that the number of examples is currently quite limited. We are actively working to improve this. If you have examples to suggest from your own use of spectrochempy, don’t hesitate to suggest them in the discussions or by creating a pull-request.
See the full NMR gallery.
Datasets and plotting#
How to use NDDataset#
This section contains examples of how to use the NDDataset class.
Interoperability#
These examples show how to exchange SpectroChemPy datasets with other scientific Python tools and portable file formats.
Import / Export#
This section contains examples of how to import and export data from/to various file formats.
Plotting datasets#
This section contains examples of how to plot datasets.
Using plot_multiple to plot several datasets on the same figure
Project Management#
This section contains examples of how to manage projects with spectrochempy.
Processing#
Apodization#
Baseline#
This section contains examples of how to correct the baseline of NDDatasets.
Denoising#
This section contains examples of how to denoise NDDatasets.
Filtering#
This section contains examples of how to filter NDDatasets.
Savitzky-Golay and Whittaker-Eilers smoothing of a Raman spectrum
Savitzky-Golay derivatives on a synthetic spectrum
Compare smoothing window sizes on a Raman spectrum
NMR processing#
Processing Raman datasets#
Transformations#
This section contains examples of common masking, transposition, and unit conversion workflows on NDDatasets.
Mask a saturated region and transform an IR dataset
Preprocessing transformers and scikit-learn compatibility
Analysis#
Decomposition#
Cross-decomposition#
Curvefitting#
Peak analysis#
This section contains peak detection, peak integration, and two-dimensional correlation spectroscopy examples, including experimental 2D spectra.
Explore an IR activation series with Noda’s 2D-COS
NMR series analysis#
Modeling and simulation#
PULSAR#
Simulate solid-state NMR spectra with PULSAR and the SpectroChemPy NMR plugin.
Plugins#
The examples listed below require one or more optional SpectroChemPy plugins. They appear in the main gallery alongside core-only examples, organised by scientific topic.
Example |
Required plugin |
Gallery section |
|---|---|---|
|
Import / Export, Processing, Analysis, Modeling and simulation |
|
|
||
|
||
|
See Plugins for general plugin installation instructions.