cube_read: Import data cube

View source: R/import_cube.R

cube_readR Documentation

Import data cube

Description

This function is a wrapper for the raster stack function, masking saturated pixels and keeping minimal metadata information from the ENVI header file.

Usage

cube_read(file, mask)

Arguments

file

Path to ENVI hyperspectral cube header file.

mask

A raster mask of saturated values such as provided by the mask_s function.

Details

The data type and wavelength information are retained in the "metadata" attribute, and bands are named with their rounded center wavelength. Note that the "metadata" attribute will only be automatically copied by functions in this library.

Value

A raster stack object with additional "metadata" attribute.

See Also

stack, mask_s


AlexCast/surfspec documentation built on July 7, 2022, 9:35 a.m.