load_etopo: Load the ETOPO global relief

View source: R/load_etopo.R

load_etopoR Documentation

Load the ETOPO global relief

Description

This function loads previously downloaded ETOPO 2022 global relief dataset, at 30 or 60 arcsec resolution. To save the variables in a compatible format, use download_etopo().

Usage

load_etopo(path = NULL, resolution = 60, version = "1")

Arguments

path

character. Path where the dataset is stored. If left NULL, the data will be downloaded from the directory returned by get_data_path()

resolution

numeric resolution in arcsecs (one of 30, or 60). Defaults to 60 arcsecs.

version

character or numeric. The ETOPO2022 version number. Only "1" supported at the moment

Details

The function assumes that the file name is ⁠etopo2022_{resolution}s_v1.nc⁠

Value

a terra::SpatRaster of relief


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