lookup_usgs_elevation: Use USGS API (USGS Elevation Point Query Service) to...

View source: R/lookup_usgs_elevation.R

lookup_usgs_elevationR Documentation

Use USGS API (USGS Elevation Point Query Service) to determine approximate local elevation

Description

This is meant to supply an APPROXIMATE elevation, with no guarantees on precision or on the lifetime of the API service used by the function. This function uses two packages, RCurl and XML, that are not required for the streamMetabolizer package as a whole. If these are not already installed, run install.packages(c('RCurl','XML')) before calling lookup_usgs_elevation.

Usage

lookup_usgs_elevation(latitude, longitude, units = c("Meters", "Feet"))

Arguments

latitude

degrees latitude (positive for north) of the location to look up.

longitude

degrees longitude (positive for east) of the location to look up.

units

character, one of Meters or Feet, specifying the units in which to return the elevation

References

https://nationalmap.gov/epqs/


USGS-R/streamMetabolizer documentation built on Aug. 15, 2023, 7:50 a.m.