Package for processing spectroscopy data
Project description
Introduction
specdal is a Python package for loading and manipulating field spectroscopy data. It currently supports readers for ASD, SVC, and PSR spectremeters. specdal provides useful functions and command line scripts for processing and aggregating the data.
Features
Command line interface
specdal_info: lightweight script to read and display content of spectral files
specdal_pipeline: default script to convert spectral files into datasets and figures
Python interface
readers for .asd, .sig, .sed spectral files - Pico files (WIP)
spectral functions that operate on pandas objects - interpolation - jump_correction - joining proximal measurements (WIP)
Spectrum and Collection classes which wrap around pandas objects to provide simpler interface
Tutorials
See the Jupyter notebooks in (PROVIDE A LINK HERE).
Installation
Prerequisite
Setup virtualenv (recommended)
$ pip install --user virtualenv $ mkdir ~/venv $ virtualenv -p python3 ~/venv/specdal $ source ~/venv/specdal/bin/activate $ ... # install/use specdal $ deactivate
Via pip
Install Python 3
$ pip3 install -r requirements.txt $ pip3 install specdal --upgrade
Development version
Open terminal or Git-bash and navigate to the desired directory using cd <directory>.
The following command will create a directory SpecDAL-code containing SpecDAL:
git clone https://github.com/EnSpec/SpecDAL-code.git
To update the package, go to SpecDAL-code directory and run the following command:
git pull origin master
To install specdal in development mode
$ source ~/venv/specdal/bin/activate # recommended (see virtualenv section) $ python setup.py develop $ ... # edit and test specdal $ python setup.py develop --uninstall
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.