mzarowka / HSItools

Hyperspectral core scanning data processing in R
https://mzarowka.github.io/HSItools/
Other
1 stars 0 forks source link
geology geosciences paleoclimate paleolimnology spatial

HSItools

R-CMD-check

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

HSItools logo

Installation

You can install the development version of HSItools like so:

install.packages("pak")

pak::pak("mzarowka/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