Datasets and plotting#

How to use NDDataset#

This section contains examples of how to use the NDDataset class.

NDDataset creation and plotting example

NDDataset creation and plotting example

NDDataset coordinates example

NDDataset coordinates example

Units manipulation examples

Units manipulation examples

Slice an NDDataset with indices and coordinates

Slice an NDDataset with indices and coordinates

Interoperability#

These examples show how to exchange SpectroChemPy datasets with other scientific Python tools and portable file formats.

Interoperability with xarray and NetCDF

Interoperability with xarray and NetCDF

Import / Export#

This section contains examples of how to import and export data from/to various file formats.

Reading datasets

Reading datasets

Loading an IR (omnic SPG) experimental file

Loading an IR (omnic SPG) experimental file

Loading Bruker OPUS files

Loading Bruker OPUS files

Reading a PerkinElmer SP file (plugin)

Reading a PerkinElmer SP file (plugin)

Loading RAMAN experimental file

Loading RAMAN experimental file

Reading Renishaw WiRE files

Reading Renishaw WiRE files

Reading Galactic SPC files

Reading Galactic SPC files

Exchange a spectrum with Excel using CSV

Exchange a spectrum with Excel using CSV

Write and read an infrared spectrum in JCAMP-DX

Write and read an infrared spectrum in JCAMP-DX

Save and reload a native SpectroChemPy dataset

Save and reload a native SpectroChemPy dataset

Plotting datasets#

This section contains examples of how to plot datasets.

Introduction to the plotting library

Introduction to the plotting library

Show complex components and masks in 1D

Show complex components and masks in 1D

Add projections to a 2D contour plot

Add projections to a 2D contour plot

Using plot_multiple to plot several datasets on the same figure

Using plot_multiple to plot several datasets on the same figure

Choose an explicit plot type for a 2D IR dataset

Choose an explicit plot type for a 2D IR dataset

Apply built-in plotting styles

Apply built-in plotting styles

Project Management#

This section contains examples of how to manage projects with spectrochempy.

Project creation

Project creation