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)

Arguments

filename

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

pts

a SpatialPointsDataFrame object defining points where data will be extracted

bands

Indices of bands to read (integer)

Details

Points that are not contained within the extent of the raster will return NA values.