-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.