Helper function to get the full path to a sample data file included with geospatialsuite. This is useful when you want the file path rather than loading the data directly.
Examples
# \donttest{
# Get path to sample raster
red_file <- get_sample_data("sample_red.rds")
nir_file <- get_sample_data("sample_nir.rds")
# Load manually with terra::rast() for PackedSpatRaster
red <- terra::rast(readRDS(red_file))
nir <- terra::rast(readRDS(nir_file))
# Or use load_sample_data() directly (recommended)
red <- load_sample_data("sample_red.rds")
nir <- load_sample_data("sample_nir.rds")
# Calculate NDVI
ndvi <- calculate_vegetation_index(red = red, nir = nir, index_type = "NDVI")
# plot(ndvi)
# }
