tiff_torast | R Documentation |
This is a wrapper of terra::rast()
and generates a raster object if provided with a TIF file.
tiff_torast(path_to_tif)
path_to_tif |
TIFF file. This is an encoding of map in raster format. |
SpatRaster.
# Generate raster for usage
fp <- paste(tempfile(), ".tif", sep = "")
ret <- utils::download.file(
"https://geohabnet.s3.us-east-2.amazonaws.com/util-rasters/avocado_HarvestedAreaFraction.tif",
destfile = fp, method = "auto", mode = "wb")
tiff_torast(fp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.