Skip to contents

This 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"))

Source

Simulated based on MODIS (MOD13Q1 NDVI)

Arguments

file

character, file name of the example dataset.

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.rds representing 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()))

Note

All data contained should only be used for testing moveVis and are not suitable to be used for analysis or interpretation.