Supports access and classification of PRISMA hyperspectral image data cubes
PRISMA is a satellite mission providing hyperspectral imagery in the visible, near infrared and short infrared range with >200 bands providing 30 m ground resolution.
PRISMA is a mission from Agenzia Spaziale Italiana (ASI) and is also the name of the sensor providing the imagery.
PRISMA imagery can be downloaded after registration HERE and HERE for selecting and downloading data.
PRISMA data are provided in HDF5 format, which is not immediate to use. To foster its usage by the research community, rPRISMA provides function to convert easily to the more common GeoTIFF format. It also provides a streamlined workflow for classification via random forest machine learning algorithm.
You are welcome to beta-test!
NB: terra library version >1.5 is required
PRISMA2geotiff("path-to-HDF5-file.he5/zip", overwrite=T/F)
will write two files, one for the VNIR cube and SWIR cube, repsectively with the same basename as the original file, substituting .he5 extension with _VNIR.tif and _SWIR.tif.
PRISMA2rast("path-to-HDF5-file.he5/zip")
will provide you with a list object containing SWIR, VNIR and panchromatic raster as terra::rast object and metadata.
NOT YET IN CRAN: ---
Install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("fpirotti/rPRISMA")