Writes an hsi_cube object as an ENVI header (.hdr) and binary (.dat) file pair.
Arguments
- cube
An hsi_cube object.
- path
Character. Output path without extension. Files
.hdrand.datwill be created.- interleave
Character. Data interleave format:
"bsq"(default),"bil", or"bip".- data_type
Integer. ENVI data type code. Default
4(float32).- verbose
Logical. Print progress. Default
TRUE.
Examples
cube <- hs_example_cube()
dir <- tempdir()
paths <- hs_write_envi(cube, file.path(dir, "test_cube"), verbose = FALSE)
file.exists(paths)
#> [1] TRUE TRUE