Skip to content

Commit

Permalink
added image and example
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoelles committed Sep 1, 2023
1 parent 8725c6d commit a70b41d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
# SPECARRAY

To read hyperspectral data from Specim devices. Currently only tested with FX10 data
To read hyperspectral data from Specim devices. Currently only tested with FX10 data

## Core features

* read Specim FX10 data
* support for large files thanks to dask
* using xarray for data storage
* computaiton of spectral albedo and braodband albedo

## Installation

```bash
pip install specarray
```

## Usage

```python
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(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](images/output.png)



For more examples see the [notebooks](notebooks) folder.
Binary file added images/output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a70b41d

Please sign in to comment.