Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mzarowka/hsitools

Hyperspectral core scanning data processing in R
https://github.com/mzarowka/hsitools

geology geosciences paleoclimate paleolimnology spatial

Last synced: 3 days ago
JSON representation

Hyperspectral core scanning data processing in R

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# HSItools

[![R-CMD-check](https://github.com/mzarowka/HSItools/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/mzarowka/HSItools/actions/workflows/R-CMD-check.yaml)

HSItools is an R package to process and visualize hyperspectral core scanning data.

![HSItools logo](man/figures/package_logo.png){width="150"}

## Installation

You can install the development version of HSItools like so:

``` r
# install.packages("pak")

# pak::pak("mzarowka/HSItools)
```

## Book

An extensive tutorial is available at:

## Example

The basic workflow includes running the shiny app to choose analysis options and visually interact with the core image. After this, reflectance is calculated and all subsequent operations use reflectance or its subsets.

```{r example, include=TRUE, eval=FALSE}
library(HSItools)

# Run shiny app and store results for further processing
core <- run_core()

# Get reflectance, normalize the capture
reflectance <- core |>
prepare_core()

# Create RGB preview and write to file
rgb_preview <- reflectance |>
stretch_raster_full(reflectance, ext = "tif", write = TRUE)

# Plot RGB preview
rgb_plot <- reflectance |>
plot_raster_rgb(reflectance)
```

Maurycy Żarczyński is founded by the Polish National Agency for Academic Exchange (BPN/BEK/2021/1/00133).

![NAWA logo](man/figures/nawa_logo.png){width="192"}