Returns the 3D data cube as an R array with wavelength metadata.
Value
A numeric 3D array with dimensions [rows, cols, bands].
The "wavelengths" attribute contains a numeric vector of band center
wavelengths in nanometers.
Examples
if (FALSE) { # \dontrun{
cuvis_init()
session <- cuvis_session("path/to/file.cu3s")
mesu <- cuvis_get_measurement(session, 1)
cube <- cuvis_get_cube(mesu)
dim(cube) # e.g., c(100, 100, 61)
attr(cube, "wavelengths") # wavelengths in nm
cuvis_shutdown()
} # }