
Example raster data
raster_data.RdThis function provides two example raster datasets as SpatRasterDataset, covering the Lake of Constance area, as well as invented dates and times that simulate acquisition times.
Usage
example_data(file = c("raster_NDVI.rds", "raster_classification.rds"))Value
A SpatRasterDataset dataset of either continuous or discrete values, including acquisition times as POSIXct objects.
Details
The returned SpatRasterDataset objects are used as example data by some moveVis code examples and unit tests.
The two available datasets are:
raster_NDVI.rdsrepresenting simulated NDVI images (continuous values)raster_classification.rds, representing an NDVI-derived classification (discrete values). NDVI values from -1 to 0 translate into class 1, from 0 to 0.2 into class 2, from 0.2 to 0.4 into class 3, from 0.4 to 0.8 into class 4 and from 0.8 to 1 into class 5.
Acquisition times can be retrieved using terra::time(readRDS(example_data()))