The hs_extract_pts
function efficiently extracts hyperspectral reflectance
data at spatial points. This is more efficient than reading the entire
raster using hs_read
, then using raster::extract
.
hs_extract_pts(filename, pts, bands)
filename | Path to an .h5 file containing L3 hyperspectral data (char) |
---|---|
pts | a |
bands | Indices of bands to read (integer) |
Points that are not contained within the extent of the raster will return NA values.