Skip to main content

Module for x-axis calibration of Raman spectrometers

Project description

This module provides functions for wavenumber calibration of Raman spectrometers. Currently it works only with binary SPE files, produced, for example, by winspec (Princeton Instruments software). Supported substances so far are polystyrene and cyclohexan (or any other, if you have a table with Raman shifts and 15 minutes of time).

One of the key features is that the script provides a detailed report of calibration in PDF format with a lot of plots.

Typical usage looks like this:

#!/usr/bin/env python

import xcal_raman as xcal
import winspec
cal_f, p = xcal.calibrate_spe("polystyrene.SPE", "dark.SPE",
                              material="polystyrene", figure=figure())
savefig("xcal-report-polystyrene.pdf")
# We have calibration function, lets plot spectrum of some substance
s = winspec.Spectrum("substance.SPE")
s.background_correct("dark.SPE")
plot(cal_f(s.wavelen), s.lum)
xlabel("Wavenumber, cm$^{-1}$")
ylabel("Counts")

Thanks to

The SPE files are read by script winspec.py, which was written by James Battat and Kasey Russell. I modified it and commented out the calibration.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xcal_raman-0.1.5.tar.gz (25.5 kB view details)

Uploaded Source

File details

Details for the file xcal_raman-0.1.5.tar.gz.

File metadata

  • Download URL: xcal_raman-0.1.5.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xcal_raman-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3d5dd1686b98a01d6e78f3cb3a2090229162f483d3c571f92caf5317d8ef80d6
MD5 07cb31520344f7467502ebb5497c6840
BLAKE2b-256 88c95acb4f64f52e857756cb8c5268b1571c5578dfd6ebc7d3f1f50bd58f1ede

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page