Get the spatial extent of a hyperspectral image

hs_extent(filename)

Arguments

filename

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

Value

a raster::extent object that contains the min and max x and y coordinates of a hyperspectral image

Examples

path_to_file <- system.file('extdata', 'ex.h5', package = 'neonhs') hs_extent(path_to_file)
#> class : Extent #> xmin : 257000 #> xmax : 257030 #> ymin : 4111970 #> ymax : 4112000