Package: seabreeze
Python module forOcean OpticsspectrometersPython-seabreeze is the easy way to access your Ocean Optics spectrometers from
python. It wraps theSeaBreezelibrary provided by Ocean Optics to communicate with the spectrometer. It also
provides a pyUSB based reimplementation of SeaBreeze for easy extension.This software is not associated with Ocean Optics. Use it at your own risk.DOCUMENTATION ON RTDYou'll find the documentation and more detailed information herehttps://python-seabreeze.readthedocs.io/en/latest/ChangesThe changelog can be found hereCHANGELOG.mdInstall# via pypipipinstallseabreeze
seabreeze_os_setupor# via condacondainstall-cconda-forgeseabreeze
seabreeze_os_setupUsageThe following example shows how simple it is to acquire a spectrum with
python-seabreeze through the model independentSpectrometerclass. For a more
detailed description read thedocumentation:>>>fromseabreeze.spectrometersimportSpectrometer>>>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 (requirespyusb) simply run this before importingseabreeze.spectrometers.>>>importseabreeze>>>seabreeze.use('pyseabreeze')>>>importseabreeze.spectrometersassbSupported DevicesSpectrometercseabreezepyseabreezeHR2000xxHR2000PLUSxxHR4000xxJAZxxMAYA2000xxMAYA2000PROxxMAYALSLxxNIRQUEST256xxNIRQUEST512xxQE65000xxQE-PROxxSTSxxTORUSxxUSB2000xxUSB2000PLUSxxUSB4000xxUSB650ap--/python-seabreeze#47SPARKxxADC1000xSR2xSR4xSR6xST-VISxKnown IssuesUSB2000 spectrometers causeData transfer errordue to old firmwareIssue #48USB650 not supportedIssue #47No conda packages for armv6 (RPI version 1)Issue #46Contributing GuidelinesIf 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 versionIf 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.LicenseFiles in this repository are released under theMIT license.Related RepositoriesIf you want me to add your project here, let me know. Happy to add it.python-seatease by @jonathanvanschenck- a software emulator of python-seabreeze. Emulates seabreeze's behavior so for testing my code without access to a spectrometer.python-seabreeze-server by @jonathanvanschenck- a TCP-based server to host the seabreeze.cseabreeze backend, allowing multiple clients (potentially offsite) to interact with a single spectrometer.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 onlyyaqd-seabreaeze- A seabreeze interface for theyaq instrument control framework