Python interface module for Ocean Optics spectrometers. This software is not associated with Ocean Optics. Use it at your own risk.
Project description
Python module for Ocean Optics spectrometers
Python-seabreeze is the easy way to access your Ocean Optics spectrometers from python. It wraps the SeaBreeze library provided by Ocean Optics to communicate with the spectrometer. If SeaBreeze is not available it can fallback to a pyUSB based reimplementation. This software is not associated with Ocean Optics. Use it at your own risk.
DOCUMENTATION ON RTD
You'll find the documentation here https://python-seabreeze.readthedocs.io/en/latest/
Usage
The following example shows how simple it is to acquire a spectrum with python-seabreeze through the model independent Spectrometer class. For a more detailed description read the documentation:
>>> from seabreeze.spectrometers import Spectrometer
>>> spec = Spectrometer.from_first_available()
>>> spec.integration_time_micros(20000)
>>> spec.wavelengths()
array([ 340.32581 , 340.70321186, 341.08058305, ..., 1024.84940994,
1025.1300678 , 1025.4106617 ])
>>> spec.intensities()
array([ 1.58187931e+01, 2.66704852e+04, 6.80208103e+02, ...,
6.53090172e+02, 6.35011552e+02, 6.71168793e+02])
To use the pyseabreeze backend simply run this before importing seabreeze.spectrometers
.
>>> import seabreeze
>>> seabreeze.use('pyseabreeze')
>>> import seabreeze.spectrometers as sb
Supported Devices
Spectrometer | cseabreeze | pyseabreeze |
---|---|---|
HR2000 | x | x |
HR2000PLUS | x | x |
HR4000 | x | x |
JAZ | x | x |
MAYA2000 | x | x |
MAYA2000PRO | x | x |
MAYALSL | x | x |
NIRQUEST256 | x | x |
NIRQUEST512 | x | x |
QE65000 | x | x |
QE-PRO | x | x |
STS | x | x |
TORUS | x | x |
USB2000 | x | x |
USB2000PLUS | x | x |
USB4000 | x | x |
USB650 | Issue #47 | |
SPARK | x | x |
Known Issues
- USB2000 spectrometers cause
Data transfer error
due to old firmware Issue #48 - USB650 not supported Issue #47
- No conda packages for armv6 (RPI version 1) Issue #46
Contributing Guidelines
If you run into any problems, file an issue and be sure to include the following in your report:
- Operating system (Linux distribution, Windows version, OSX version) and archictecture (32bit, 64bit, arm)
- Python version and arch (i.e. Python 2.7.10 64bit)
- python-seabreeze version
If you want a feature implemented, please file an issue, or create a pull request when you implement it yourself. And if you would like to support me via paypal, click on the paypal donate button on top of this README.
License
Files in this repository are released under the MIT license.
Related Repositories
If you want me to add your project here, let me know. Happy to add it.
- SeaBreeze - Ocean Optics' SeaBreeze C library.
- libseabreeze - github clone of the C library. internal use only (has pre-built libraries if you know what you're doing)
- python-seabreeze-feedstock - anaconda feedstock for automated package deployment. internal use only
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for seabreeze-1.0.0rc2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4942b774588ea859412658feba4d6a2a32fd9f0a0c0e8dfea86f12cf38d2a0ac |
|
MD5 | 18452fc125af4fdc5f249828d7ab93ec |
|
BLAKE2b-256 | 8be1f26e71ae76a3cada27fda9d0bdb511ed6fdf355fe835dc0fe57f796bdd50 |
Hashes for seabreeze-1.0.0rc2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8d2ac5b25090ca6cb9b7ba487b5998e5c3f3ccd83428ea7c73a3f4f054eaf1d |
|
MD5 | 4311790e870d5d1f7e8d7f5d20bb4796 |
|
BLAKE2b-256 | 0ac5f2ca234e49a147f0573f2c0c42e47f652717902b3493618b3a64d2d80fba |
Hashes for seabreeze-1.0.0rc2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354b8fa9e4c94aadb92859c5bc17cb91506adaa13c6ee3a6034111cf15003a69 |
|
MD5 | f72086d51a0babcad1b195d540ca8077 |
|
BLAKE2b-256 | bd8a451cea1b36b5eab52ad1c8e6e73c3df7646ec73cbd1bc11d85278a8f9ad1 |
Hashes for seabreeze-1.0.0rc2-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11515d89106b5a83b32421c1b721cbbdc3521a3cfaf47946fd269b60ff1d1e7b |
|
MD5 | 16733dd18bd5a0b858e500ee393a831d |
|
BLAKE2b-256 | 7a28923c7d41b23629bc141c1c3b2120f14b57a79f3a3a5c91566828b6916c80 |
Hashes for seabreeze-1.0.0rc2-cp37-cp37m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f94e1d62a03340c0d509027dcf2b262d9e27135a10aacff60a4c196540f70caa |
|
MD5 | c23a8c6655acb61cb1ba56f4231b14ca |
|
BLAKE2b-256 | b26b92cd43f76dbbf7421b346b4640a36fac8be88cc614e9da48acd37e02f7e0 |
Hashes for seabreeze-1.0.0rc2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 695b9e42085eee3b92841b50ecb1b307e5611ac162d56cde281b20f0f2fc49e7 |
|
MD5 | 2faae2e34f867c75d95e4ece12496106 |
|
BLAKE2b-256 | 8e10dde1d56ef30f9cba3fffd1647b239732b428fd15e6bb9eebddd5c413c5ee |
Hashes for seabreeze-1.0.0rc2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44db6d2a0b779a61899b82104cce2e287bb59389f44f97d6752e033a602386a5 |
|
MD5 | b23f19d27db35d7cfa409e46d8e42d54 |
|
BLAKE2b-256 | 608ca782097d5a1cd434a393ed5f8630d00108e5e3c9ec0c07bb870508a464f9 |
Hashes for seabreeze-1.0.0rc2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34fbe062b5b1f93a26121576aa935fb32964f30dd144ab652a13431ecb0d0052 |
|
MD5 | 909ca70ad15ddd002aa0fcff5f552c31 |
|
BLAKE2b-256 | 35ad68a2ca16e37b27702466befd0f434a8dca5998427ecf6612a89c5f776651 |
Hashes for seabreeze-1.0.0rc2-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d5813ce0fce8cd7a7758b992f99f7ea0369e453325938fc505bf9fb827a5165 |
|
MD5 | 7292ddac2530f23fe2df350acf1a9fb2 |
|
BLAKE2b-256 | 8060fd292872ec2f45a3072cd86587baaede39a8a299d547f297ea989fcff593 |
Hashes for seabreeze-1.0.0rc2-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b2ac2ed85856dd5bbbeb6373cc6ecb56333c15d5a73eaaf6a5c4a00f9e07c7f |
|
MD5 | 48f479d5da4064febf6ef19300a01788 |
|
BLAKE2b-256 | 940c868a2616cf534aa32a7f0d4899f86dd882ccdb65725f29c7969ddf08da52 |
Hashes for seabreeze-1.0.0rc2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84e0a549ddb6689e40fa3f8cdaf04e1f94ebfd16e22660ed5d4cca216bbea30b |
|
MD5 | f18a3ede045620eca8affcd0830fd470 |
|
BLAKE2b-256 | a864cf20cec5cad7a3931c41c868bbb97ce26e8e2f293d6a7faed7496a8bdba7 |
Hashes for seabreeze-1.0.0rc2-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 530e172a0831637cf496fa7c7e90b0b1cab698b44229734558f07a30350af0a3 |
|
MD5 | a378324472176fc5fe707118895dceb4 |
|
BLAKE2b-256 | f6aec9624f4fb1a4a52df393e025f3821559f7ea3306acf2d0c5ad557fb8d6de |
Hashes for seabreeze-1.0.0rc2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be6b9100e8448a1563f3109e1e692617315302936c56d08072deb568a5f1117 |
|
MD5 | 67f38072f3eca660863dffe120e7b407 |
|
BLAKE2b-256 | 0a6f2212021ea5c7dc0bb7eb9543581384c0caf070f0db530320456dfda8b785 |
Hashes for seabreeze-1.0.0rc2-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2120b6d8426125d801c89c73a750fdff2955206d7834493f4ef77a473dec9124 |
|
MD5 | 46ae38d2640044480c748a34825e1071 |
|
BLAKE2b-256 | b116e3133b3b58e1277380217eb2d9ffdff609497f3ee48805f3e032e0dca675 |
Hashes for seabreeze-1.0.0rc2-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5170ed2927a56af4baae08e9be14639a7e4381e01e111fc00bd6f871e0a5fb10 |
|
MD5 | ab31e478353b47f91d465283cf791485 |
|
BLAKE2b-256 | 66f9a8269bccb7fa2910091e2e075c4f5e4df64f79537d632e1e562a9d24e6a9 |
Hashes for seabreeze-1.0.0rc2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c5090946502f2a3de0e181d1d53b057b369a72885f907c1a98e846c642f788c |
|
MD5 | 48e94b4193da0f83ed67f76b4446a7b1 |
|
BLAKE2b-256 | b9d1a81c2ccc54409e82db5fee6a5c8dc2b76ad1b049b5a1c3f5820aa96d8974 |
Hashes for seabreeze-1.0.0rc2-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a4de922d29014a5b4f39f14cf472a2dc83e40198689df6f230d28cef1ec41c3 |
|
MD5 | d7bfacc41b8236ce1d899efb374930c3 |
|
BLAKE2b-256 | 4dbc28fe5c495b6b8fa071c34b3b0a353a23ae6702497df0f0b07668425fec56 |
Hashes for seabreeze-1.0.0rc2-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c4b6bafe61e093f094c564977c3d834b52a80c240cfbd208cbdb3d2df38a379 |
|
MD5 | c442fb2e5ed307a6ae746e90b72834ba |
|
BLAKE2b-256 | bfe4deaf68f09dfbb2711c80f897a95235db8bcd6cb36a2fa9fbdb8d4caabbe0 |
Hashes for seabreeze-1.0.0rc2-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75110356166f65615ee327e6c52b47121e0e953c3ae7f1410fd5babea5562b93 |
|
MD5 | 38858fd83afde0bbcd400f2c208266d3 |
|
BLAKE2b-256 | ba5db6ed20f9244d4dbb16b141b5cb22deddec319620cc0a999d0f36f93a30a0 |
Hashes for seabreeze-1.0.0rc2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83599e6cd4b888902f3002887e1769e5e2ffc7631487fe5c18913e4f403d2424 |
|
MD5 | 17cf90f1729548b4318e7ab3ad0be75c |
|
BLAKE2b-256 | 76e87f6a4062f806a5aaecf366235cd7d261cfb71b5a4cb15c189acd1fbdaed4 |
Hashes for seabreeze-1.0.0rc2-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26f596efb5208cec2c7dd46ec6ad4989e35f0afd67650806d19108538dad276c |
|
MD5 | 5ea0a02313a5e32133fd1d8d868296cd |
|
BLAKE2b-256 | e5c7b9ac2c09bb647c5d8680f14536d30ca6ae7289f397a3065e1c17e1c40349 |
Hashes for seabreeze-1.0.0rc2-cp27-cp27m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 308ce18a7cf36ae60c266917888e7ee5fc1b122cee9e9649e1e0d8dcdefa130c |
|
MD5 | 7d44eda8b4358f263e10ebe370a67353 |
|
BLAKE2b-256 | 78cc8067fea31013dcd2432ce7e8db68f3e0676a401b8bff5a2f26fde52fcc96 |