Skip to contents

Use rayshader to plot surface elevation model near a weather station from four cardinal angles

Usage

plot_dem_rayshader(stn = NULL, dsm = NULL, path = stn$path)

Arguments

stn

A SpatVector with station attributes from "get_latlon_frost"

dsm

A SpatRaster of a digital surface model around the station

path

A string path that defines where to save the plot, if NULL (default) the plot is printed on-screen and not saved

Value

A rendered image

Examples

# Load the station metadata and location
# stn <- get_metadata_frost(stationid = 18700, dx = 100, resx = 1)

# Load a digital elevation model
# dsm   <- download_dem_kartverket(stn, name = "dom")

# Plot 3D DEM with rayshader
# plot_dem_rayshader(stn, dsm, path = 'plot/dem3D')