Skip to content

UoMMIB/OceanInsightUVVIS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OceanInsightUVVIS

Release v2.0.0

Python package to read the Ocean Insight ultraviolet-visible spectroscopy (uv-vis) file format.

Ocean Insight (formerly Ocean Optics) produce instrumentation for spectroscopy. Their data acquisition package – OceanView – can export spectra in a number of file formats. Here we read the ASCII (with header data) text format.

Usage

Construction

To read a spectrum file, first create an instance of an OceanInsightUVVIS class, then pass the spectrum filename to the readfunction. As a shortcut, pass the spectrum filename directly to the constructor.

from uvvis.uvvis_spectrum import UVVisSpectrum

obj = UVVisSpectrum()
spectrum = obj.read("myfile.txt")

or

from uvvis.uvvis_spectrum import UVVisSpectrum

spectrum = UVVisSpectrum("myfile.txt")

Functionality

Retrieve the filename of the currently active spectrum
filename = spectrum.filename()

Retrieve the spectral data as a pandas.DataFrame
data = spectrum.data()

Retrieve the raw file header information as a dictionary
header = spectrum.header()

Retrieve the file metadata as a dictionary
metadata = spectrum.metadata()

Retrieve the file metadata as a JSON string
jsonmetadata = spectrum.metadata_as_json()

Documentation

See https://uommib.github.io/OceanInsightUVVIS/ for source code documentation

Copyright and Licence for use

Copyright (C) 2021 Alex Henderson [email protected]
Release v2.0.0

This work is licensed under a MIT license.
SPDX-License-Identifier: MIT

The most recent version of this software library can be found here: https://github.com/UoMMIB/OceanInsightUVVIS/

Contributors

Alex Henderson, University of Manchester. [email protected]