Compute a raster of distances from the sea for each land pixel.
Source:R/distance_from_sea.R
distance_from_sea.Rd
Get the land mask for a dataset at a given time point, and compute distance from the sea for each land pixel.
Arguments
- time_bp
time slice in years before present (negative)
- time_ce
time slice in years CE. Only one of
time_bp
ortime_ce
should be used.- dataset
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.
Value
a terra::SpatRaster
of distances from the coastline in km