Skip to main content

x-axis Raman spectrometer calibration

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.

Metadata

Release files for xcal_raman 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xcal_raman 0.1.5
File Size Uploaded Provenance Actions
xcal_raman-0.1.5.tar.gz 25.5 kB Without provenance Details for xcal_raman-0.1.5.tar.gz

Release files / xcal_raman-0.1.5.tar.gz

Download URL xcal_raman-0.1.5.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3d5dd1686b98a01d6e78f3cb3a2090229162f483d3c571f92caf5317d8ef80d6
BLAKE2b-256 checksum
How to use checksums
88c95acb4f64f52e857756cb8c5268b1571c5578dfd6ebc7d3f1f50bd58f1ede
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for xcal_raman 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page