knitr::opts_chunk$set(echo = TRUE) library(glint)
Get a digital elevation model (DEM) from WorldClim data, aggregate to 1 arc degrees and crop at -60/60 degrees latitude and return a spatial object in the current R session.
DEM <- make_DEM(resolution = 1)
Get a digital elevation model (DEM) from WorldClim data and aggregate to 0.5 arc degrees.
DEM <- make_DEM(resolution = 0.5)
Get a digital elevation model (DEM) from WorldClim data, aggregate to 15 arc minutes and crop at -60/60 degrees latitude and save a GeoTIFF file of the resulting DEM to local disk.
DEM <- make_DEM(resolution = 0.25, dsn = "~/GSOD")
Get GSOD data for 1998 to 2000.
gsod <- make_GSOD_set(years = 1998:2000)
# Create a list of GSOD files gsod_list <- make_GSOD_set(years = 1998:1999) # Get and aggregate the raster digital elevation model dem <- make_DEM() # Run the function for MAX and MIN temperature lapply(X = gsod_list, FUN = interpolate_GSOD, dem = dem, vars = c("MAX", "MIN"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.