• Stars
    star
    167
  • Rank 224,864 (Top 5 %)
  • Language
    R
  • License
    Other
  • Created about 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An R package for accessing elevation data

R build status CRAN RStudio mirror downloads Codecov test coverage DOI

elevatr

An R package for accessing elevation data from various sources

The elevatr package currently provides access to elevation data from AWS Open Data Terrain Tiles and the Open Topography Global datasets API for raster digital elevation models. For point elevation data,the USGS Elevation Point Query Service) may be used or the point elevations may be derived from the AWS Tiles. Additional elevation data sources may be added as they come available.

Currently this package includes just two primary functions to access elevation web services:

  • get_elev_point(): Get point elevations using the USGS Elevation Point Query Service (for the US Only) or using the AWS Terrain Tiles (global). This will accept a data frame of x (long) and y (lat), a Simple Features object, or terra SpatRaster as input. A Simple Features object is returned of the point locations and elevations.
  • get_elev_raster(): Get elevation data as a raster (e.g. a Digital Elevation Model) from the AWS Open Data Terrain Tiles or Open Topography Global datasets. Other sources may be added later. This will accept a data frame of of x (long) and y (lat) or any sf or terra SpatRaster object as input and will return a terra SpatRaster object of the elevation. The extent of the SpatRaster is the full tiles that cover the bounding box of the input spatial data, but may be clipped to the shape or bounding box of the input locations.

Installation

Version 0.4.5 of this package is currently available from CRAN and may be installed by:

install.packages("elevatr")

NOTE: As of 2023-06-16, the CRAN version is the older version that does not support terra.

The development version (this repo) may installed with devtools:

library(devtools)
install_github("jhollist/elevatr")

NOTE: As of 2023-06-16, the development version on GitHub, 1.0.0.9999, is the latest version and supports sf and terra. Support for sp and raster has been deprecated.

Contributions and Use Cases

As elevatr is getting more widely used, there have been some great contributions, use cases, and additional packages that have come from the user community. If you have one you’d like to share, let me know and I will gladly add it. Here are some of the ones that I have seen. Thank you all!

Attribution

Mapzen terrain tiles (which supply the AWS source) contain 3DEP, SRTM, and GMTED2010 content courtesy of the U.S. Geological Survey and ETOPO1 content courtesy of U.S. National Oceanic and Atmospheric Administration. The Open Topography API provide access to the SRTM and the ALOS World 3D datasets. See https://opentopography.org/ for details.

Repositories

The source code for this repository is maintained at https://github.com/jhollist/elevatr which is also mirrored at https://github.com/usepa/elevatr

EPA Disclaimer

The United States Environmental Protection Agency (EPA) GitHub project code is provided on an “as is” basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity , confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.

More Repositories

1

manuscriptPackage

Template for writing manuscripts as an R package
R
54
star
2

alt_datacamp

Repo to keep track of all the links that have been shared about Datacamp alternatives
23
star
3

dadjokeapi

An R package for accessing the I Can Haz Dad Joke API: A Very Serious R Package
R
19
star
4

rmd_word_manuscript

rmd to docx: draft manuscript
TeX
18
star
5

proj4shortcut

R package with easy to remember names for many commonly used proj4strings
R
14
star
6

lakemorpho

R package for calculating morphometry of lakes
R
12
star
7

epsgio

R package that wraps the https://epsg.io API
6
star
8

nsink

Flow path based nitrogen removal estimation
R
6
star
9

clear_r_2019

R Workshop materials for UCONN CLEAR R and esri training
HTML
5
star
10

markdownPoster

first cut at using markdown, knitr, pandoc, wkhtmltopdf, and css to create a reproducible poster
CSS
5
star
11

miscPackage

Starting my own package of miscellaneous functions
HTML
5
star
12

jhollist.github.io

source for personal website
HTML
4
star
13

tider

process tide data
R
4
star
14

autocrop

R package to autocrop image files
R
4
star
15

condprob2

Second version of conditional probability analysis
R
3
star
16

followr

R Package for accessing the Follow The Money API <https://followthemoney.org/our-data/apis/>
R
3
star
17

iale_open_science

source for IALE Workshop: An Open Science and Reproducible Research Primer for Landscape Ecologists
3
star
18

crabs

R
3
star
19

nlmd

R
3
star
20

fed_ds_gigs

2
star
21

SciComp2014

HTML
2
star
22

nerrs_r

course material for NERRS Intro to R online training
HTML
2
star
23

lakes_landscapes_r

Repository for 2018 US-IALE Talk
HTML
2
star
24

narrabay_r

workshop materials for Narragansett Bay Commission R workshop
R
2
star
25

ridarts_archive

RI Dart League South Central Division Roster Archives from March 2016 -
HTML
2
star
26

github_101

Presentation materials for git and github intro presented to USEPA ORD R Users Group
2
star
27

cardigans

Color palette for R that uses the colors of Mr. Rogers cardigans
R
2
star
28

pancake

Years of practice == damn fine pancakes
2
star
29

nla_population

Pulling together population estimates for buffers around NLA lakes
2
star
30

rgis_lightning_demo

This respository holds the materials used for a Lightning Talk/Demo on GIS in R given at the Northeast Arc Users Group 2015 Meeting in Burlington, VT.
2
star
31

yale_r_2018

Materials for Introduction to Reproducible Workflows with R, markdown, and GitHub workshop at Yale
R
2
star
32

depth_explore

repository for first cut explorations on new ways to model lake depth and stream depth
R
1
star
33

ri_wq_trends

HTML
1
star
34

cyanos_data

repository for work on the New England cyano monitoring data
R
1
star
35

what_should_jeff_watch

Collating great TV Show suggestions made for me by Twitter!
1
star
36

rhodyrstats_demo

rhodyRstats demonstration of git and github
1
star
37

r_landscape_tutorial

Short tutorial on conducting landscape ecology with R
HTML
1
star
38

maxmaps

R package for testing us states and capitals
R
1
star
39

rstudio_addin_ideas

1
star
40

surge_cyanos

Repository holding data, scripts, documents, etc. for SuRGE-cyanos project
1
star
41

eln_r_talk

HTML
1
star
42

troutlake_rspatial

Materials for mini-workshop on spatial data and R with a focus on lakemorpho and elevatr
HTML
1
star
43

nsink_rbridge

Scripts for creating an Nsink Arc Toolbox via the esri R-bridge
R
1
star
44

lakemorpho_manuscript

repository containing manuscript describing the lakemorpho R package
TeX
1
star
45

high_res_cyano

Research project focusing on high resolution spatial/temportal cyanobacteria dynamics
HTML
1
star
46

cc_buoy_test

HTML
1
star
47

goatscape

R
1
star
48

swmpr_review

review of Beck swmpr manuscript
1
star
49

rspatial_workshop_am

R
1
star
50

epablogpresent

Presenation to AED and EPA Region 1 on Blogging, social media and science (with suggestions on how to do it as EPA employee).
CSS
1
star
51

cscie12

PHP
1
star
52

cloud_gov_shiny

notes on getting shiny up and running on cloud.gov
Go
1
star