Learn R Programming

Rsagacmd (version 0.4.3)

read_srtm: Get path to the example DEM data

Description

Rsagacmd comes bundled with a small tile of example Digital Elevation Model (DEM) data from the NASA Shuttle Radar Topography Mission Global 1 arc second V003. This data is stored in GeoTIFF format in `inst/extdata`.

Usage

read_srtm()

Arguments

Details

The dataset contains the land surface elevation of an area located near Jasper, Alberta, Canada, with the coordinate reference system (CRS) EPSG code of 3402 (NAD83(CSRS) / Alberta 10-TM (Forest)).

To access the data, use the convenience function of `read_srtm()` to load the data as a `terra::SpatRaster` object.

Examples

Run this code
library(Rsagacmd)
library(terra)

dem <- read_srtm()
plot(dem)

Run the code above in your browser using DataLab