Skip to contents

Download the ETH Global Sentinel-2 10m Canopy Height (2020)

Usage

fd_canopy_height(
  x = NULL,
  lon = NULL,
  lat = NULL,
  layer = "chm",
  crop = FALSE,
  ...
)

Arguments

x

a sf or SpatVector object. It will retrieve the necessary tiles to cover the area (if lat and lon are specified, this argument is ignored)

lon

a number specifying the longitude of the area where we want the tile

lat

a number specifying the latitude of the area where we want the tile

layer

a string for the layer to download. The default "chm" downloads the Canopy Height Model, while "std" downloads the standard deviation. If you want both layers, use "all"

crop

when x is specified, whether to crop the tiles(s) to the object

...

additional arguments passed to the crop function

Value

A SpatRaster

Details

Data may be freely used for research, study, or teaching, but be cited appropriately (see references below).

References

Lang, Nico, Walter Jetz, Konrad Schindler, and Jan Dirk Wegner. "A high-resolution canopy height model of the Earth." arXiv preprint arXiv:2204.08322 (2022).

Examples

# \donttest{
fd_canopy_height(lon = -7.27, lat = 42.43)
#> 1 tile(s) were found.
#> class       : SpatRaster 
#> dimensions  : 36000, 36000, 1  (nrow, ncol, nlyr)
#> resolution  : 8.333333e-05, 8.333333e-05  (x, y)
#> extent      : -9, -6, 42, 45  (xmin, xmax, ymin, ymax)
#> coord. ref. : lon/lat WGS 84 (EPSG:4326) 
#> source      : GlobalCanopyHeight_10m_2020_N42W009_Map.tif 
#> name        : chm 
# }