Skip to main content

Working with hyperspectral data

Project description

Test and Coverage Coverage Status

SPECARRAY

To read, analyze and plot hyperspectral data from Specim devices. Currently only tested with FX10 data.

Core features

  • read Specim instrument data
  • support for large files thanks to dask
  • using xarray for data handling and data analysis
  • computation of spectral albedo and braodband albedo if white and dark reference is available

Installation

pip install specarray

Usage

from specarray import SpecArray
from pathlib import Path
import matplotlib.pyplot as plt

data_dir = Path("data/white_weathering_crust_2_2023-07-15_15-25-24/")

white_weathering_crust = SpecArray.from_folder(data_dir)

white_weathering_crust.capture

white_weathering_crust.spectral_albedo.sel(sample=0, point=0).plot.line()
plt.ylim(0, 1)

The resulting imgage should look like this:

Spectrum

For more examples see the notebooks folder.

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.

Source Distribution

specarray-0.3.0.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

specarray-0.3.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file specarray-0.3.0.tar.gz.

File metadata

  • Download URL: specarray-0.3.0.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for specarray-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d41e3c16cd0d5f225867a26d8b6956b364244bf79e3f4d82afac4462199ac97c
MD5 04e40d51628b682d84ccafc557464bb5
BLAKE2b-256 12241da4ef4540656d0d896d05cdf95c9e343600c483521a0347a143d6454773

See more details on using hashes here.

File details

Details for the file specarray-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: specarray-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for specarray-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3e188f3618303fdd2769c02ea96e13de1d19a06c5ca6a58670da79c21e1e1e3
MD5 da548fd8c86243059048cedf8a1a3c69
BLAKE2b-256 c9bbbd7d7c4dc3d771cca859175ed13847a563609d35d0bf9ac67cfde04be654

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page