Skip to content

Hyperspectral core scanning data processing in R

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

mzarowka/HSItools

Repository files navigation

HSItools

R-CMD-check

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

HSItools logo

HSItools logo

Installation

You can install the development version of HSItools like so:

# install.packages("pak")

# pak::pak("mzarowka/HSItools)

Book

An extensive tutorial is available at: https://mzarowka.quarto.pub/hsitools

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.

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

NAWA logo