download_etopo_subset {pastclim} | R Documentation |
Download part of the ETOPO relief dataset.
Description
This function downloads part of the ETOPO2020 relief (topography+bathymetry) dataset.
Usage
download_etopo_subset(rast_template, ...)
Arguments
rast_template |
a |
... |
additional parameters to be passed to |
Details
Use this function if you only need part of the dataset, or you need a
relatively low resolution. This function fetches the necessary subset on the
fly from the NOAA server. If you plan to use the ETOPO2022 dataset
extensively, it is worthwhile downloading it permanently to your computer
with download_etopo()
, but beware that it is a large file (>1Gb). This
function uses marmap::getNOAA.bathy()
to download the data, and then
converts them into a terra::SpatRaster
formatted to be compatible with
pastclim
. NOTE: this function does not save the relief, it returns a
terra::SpatRaster
. If you plan to reuse this relief multiple times, it
would be wise to save it with terra::writeCDF()
.
Value
a terra::SpatRaster
with the relief for the chosen region