spcmap2array: hyperSpec map to array

Description Usage Arguments Value

View source: R/spcmap2array.R

Description

Convert spatially resolved object of class hyperSpec to an array.

Usage

1
spcmap2array(x, set_dimnames = FALSE, sort = FALSE)

Arguments

x

A hyperSpec object with variables "x" and "y" in @data.

set_dimnames

logical; specify whether values for x, y and wavelength should be used as dimnames.

sort

logical; specify whether dimensions x (increasing), y (decreasing) and wavelengths (increasing) should be sorted prior conversion.

Value

An array with the dimensions "x" "y" and "nwl", with the wavelength vector attached as an attribute.


konradmayer/hyperSpec.utils documentation built on May 2, 2021, 4:17 a.m.