get_dsm_30: get_dsm_30

View source: R/get_dsm_30.R

get_dsm_30R Documentation

get_dsm_30

Description

Search for and download ALOS Global Digital Surface Model (AW3D30) and USGS DEM raster datasets via OpenTopography API 1.0.0 based on coordinates of a spatial point with a given distance or bounding box. The AW3D30 raster resolution is 30 meter. The resolutions of USGS datasets are 10m and 1m.

Usage

get_dsm_30(x, y, r, epsg, bbox, global = TRUE, datatype = "AW3D30", key = "")

Arguments

x

numeric, indicating Longtitude degree of the center point.

y

numeric, indicating latitude degree of the center point.

r

numeric, indicating search distance (meter or feet) for LiDAR data.

epsg

numeric, the EPSG code specifying the coordinate reference system.

bbox

vector, a bounding box defining the geographical area for downloading data.

global

logic, if true, AW3D30 data will be downloaded.

datatype

character, dataset names including "AW3D30", "USGS1m", "USGS10m".

key

character, API key of OpenTopography.

Details

To request an API key of OpenTopography, online registeration is needed.

Value

raster

Examples

## Not run: 
data <- dsmSearch::get_dsm_30(bbox = c(-83.783557,42.241833,-83.696525,42.310420),
                              key = "API key")
data <- dsmSearch::get_dsm_30(x = -83.741289,
                              y = 42.270146,
                              r = 1000,
                              epsg = 2253,
                              key = "API key")

## End(Not run)


dsmSearch documentation built on April 3, 2025, 9 p.m.