Skip to contents

Writes an hsi_cube object as a multi-band GeoTIFF file. Requires the terra package.

Usage

hs_write_tiff(cube, path, verbose = TRUE)

Arguments

cube

An hsi_cube object.

path

Character. Output path (should end in .tif).

verbose

Logical. Print progress. Default TRUE.

Value

Invisible path to the written file.

Examples

# \donttest{
# Requires terra package
# cube <- hs_example_cube()
# hs_write_tiff(cube, file.path(tempdir(), "test.tif"))
# }