distance_from_sea: Compute a raster of distances from the sea for each land...

View source: R/distance_from_sea.R

distance_from_seaR Documentation

Compute a raster of distances from the sea for each land pixel.

Description

Get the land mask for a dataset at a given time point, and compute distance from the sea for each land pixel.

Usage

distance_from_sea(time_bp = NULL, time_ce = NULL, dataset)

Arguments

time_bp

time slice in years before present (negative)

time_ce

time slice in years CE. Only one of time_bp or time_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


EvolEcolGroup/pastclim documentation built on Nov. 6, 2023, 5:11 a.m.