hs_dims: Get the dimensions of a hyperspectral reflectance HDF5 file

Description Usage Arguments Value Examples

View source: R/hs_read.R

Description

The hs_dims function returns the dimensions of reflectance data contained within an HDF5 file for NEON's L3 hyperspectral reflectance data. In most cases, these dimensions will be 426 X 1000 X 1000: 426 bands and images that are 1000m by 1000m in their spatial extent at 1 meter resolution.

Usage

1
hs_dims(filename)

Arguments

filename

Path to an .h5 file containing L3 hyperspectral data (char)

Value

an integer vector of length 3 containing the number of bands, number of x pixels, and number of y pixels.

Examples

1
2
path_to_file <- system.file('extdata', 'ex.h5', package = 'neonhs')
hs_dims(path_to_file)

earthlab/neonaop documentation built on March 27, 2021, 12:28 p.m.