Giter Club home page Giter Club logo

fu-uvvis's Introduction

FU UVVIS

This is a collection of utilities for the Ocean Insight Spectrometers

Prerequisites

pip install matplotlib numpy seabreeze

Installation

git clone https://github.com/padalev/FU-UVVIS
cd FU-UVVIS
pip install -e .

Usage

Initialization

m = UVVIS.Measurement( integrationtime = 4000, averages = 30)

Set Dark

m.setdark()

Live plot of spectrum will open for reference. Confirm by clicking anywhere on the plot or press a key.

Set Light

m.setlight()

Live plot of spectrum will open for reference. Confirm by clicking anywhere on the plot or press a key.

Scope

m.scope(name='testSample')

Will show a live plot of the bare spectrum with averages applied. If name is set resulting data will be saved to file. Returns Scope array.

Absorbance Measurement

m.absorbance(='testSample')

Live plot of spectrum and absorbance will open for reference. Confirm by clicking anywhere on the plot or press a key. If name is set resulting data will be saved to file. Requires set dark and light spectra. Returns absorbance array.

Irradiance Measurement

m.irradiance(='testSample')

Live plot of spectrum and irradiance will open for reference. Confirm by clicking anywhere on the plot or press a key. If name is set resulting data will be saved to file. Requires set dark spectrum. Returns irradiance array.

Set Averages

m.setaverages(n)

Number of averages can be changed any time. Dark and Light spectrum will have to be set again afterwards before actual measurement.

Set Integration Time

m.setintegrationtime(t = None, auto = False)

Integration time can be set at any time in units of microseconds. Dark and Light spectrum will have to be set again afterwards before actual measurement. If t is set to a number it will be used as the new integration time. If auto is set to True the integration time will be determined automatically by maximizing the spectral maximum. Else a window will open for manual integration time setting (todo).

Measuring without live plot

m.liveplot = False

will deactivate plotting. Data is taken and saved immediately.

Example

The following code will first ask for a light spectrum, then for a dark spectrum. Then three absorbance measurements of the samples are made using the list of sample names.

import UVVIS

m = UVVIS.Measurement(4000,30)
m.setlight()
m.setdark()
samples = ['sample_0','sample_1','sample_2']
for sample in samples:
  m.absorbance(sample)

fu-uvvis's People

Contributors

padalev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.