Menu

Tree [e0c4f5] master /
 History

HTTPS access


File Date Author Commit
 spectral 2020-08-01 Thomas Boggs Thomas Boggs [e0c4f5] Increase version to 0.22
 .gitignore 2020-06-18 kormang kormang [c0c9b8] Add support for USGS spectral library (#109)
 .travis.yml 2019-09-22 Thomas Boggs Thomas Boggs [cc2587] Use python version-specific build distros
 LICENSE.txt 2020-04-19 Thomas Boggs Thomas Boggs [0e6370] Change license to MIT
 MANIFEST.in 2013-09-07 Thomas Boggs Thomas Boggs [ca899b] Updated version to 0.12.
 README.rst 2019-10-14 Lewis John McGibbney Lewis John McGibbney [286e51] ISSUE-93 Add badges for conda downloads (#94)
 VERSIONS.txt 2020-08-01 Thomas Boggs Thomas Boggs [e0c4f5] Increase version to 0.22
 setup.py 2020-06-18 kormang kormang [c0c9b8] Add support for USGS spectral library (#109)

Read Me

Spectral Python (SPy)

https://travis-ci.org/spectralpython/spectral.svg?branch=master <object data="https://badges.gitter.im/spectralpython/spectral.svg" type="image/svg+xml">Join the chat at https://gitter.im/spectralpython/spectral</object> <object data="https://anaconda.org/conda-forge/spectral/badges/version.svg" type="image/svg+xml">https://anaconda.org/conda-forge/spectral/badges/version.svg</object> <object data="https://anaconda.org/conda-forge/spectral/badges/platforms.svg" type="image/svg+xml">https://anaconda.org/conda-forge/spectral/badges/platforms.svg</object> <object data="https://anaconda.org/conda-forge/spectral/badges/license.svg" type="image/svg+xml">https://anaconda.org/conda-forge/spectral/badges/license.svg</object> <object data="https://anaconda.org/conda-forge/spectral/badges/downloads.svg" type="image/svg+xml">https://anaconda.org/conda-forge/spectral/badges/downloads.svg</object> <object data="https://anaconda.org/conda-forge/spectral/badges/installer/conda.svg" type="image/svg+xml">https://anaconda.org/conda-forge/spectral/badges/installer/conda.svg</object>

Spectral Python (SPy) is a pure Python module for processing hyperspectral image data (imaging spectroscopy data). It has functions for reading, displaying, manipulating, and classifying hyperspectral imagery. Full details about the package are on the web site.

Installation Instructions

The latest release is always hosted on PyPI, so if you have pip installed, you can install SPy from the command line with

pip install spectral

Packaged distributions are also hosted at PyPI and GitHub so you can download and unpack the latest zip/tarball, then type

python setup.py install

To install the latest development version, download or clone the git repository and install as above. No explicit installation is required so you can simply access (or symlink) the spectral module within the source tree.

Finally, up-to-date guidance on how to install via the popular conda package and environment management system can be found at official conda-forge documentation.

Unit Tests

To run the suite of unit tests, you must have numpy installed and you must have the sample data files downloaded to the current directory (or one specified by the SPECTRAL_DATA environment variable). To run the unit tests, type

python -m spectral.tests.run

Dependencies

Using SPy interactively with its visualization capabilities requires IPython and several other packages (depending on the features used). See the web site for details.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.