Compute a raster of distances from the sea for each land pixel.Source:
Get the land mask for a dataset at a given time point, and compute distance from the sea for each land pixel.
time slice in years before present (negative)
time slice in years CE. Only one of
time_ceshould be used.
string defining the dataset to use (a list of possible values can be obtained with
list_available_datasets()). This function will not work on custom datasets.
terra::SpatRaster of distances from the coastline in km