Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An R package for accessing elevation data

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

USEPA/elevatr

Repository files navigation

R build statusCRAN RStudio mirror downloadsCodecov test coverageDOI

Key information about version 0.99.0 and upcoming versions ofelevatr

Several major changes have been made toelevatr in response to theretirement of legacy spatial packages (seehttps://r-spatial.org/r/2023/05/15/evolution4.html for details).Version 0.99.0 has switched to usingsf andterra for all datahandling; however, in this version araster RasterLayer is stillreturned fromget_elev_raster(). Additional changes are planned forversion 1+, most notably the return forget_elev_raster() will be aterra SpatRaster. Please plan accordingly for your analyses and/orpackages account for this change.

elevatr

An R package for accessing elevation data from various sources

Theelevatr package currently provides access to elevation data fromAWS Open DataTerrainTiles and the OpenTopographyGlobal datasetsAPI for raster digitalelevation models. For point elevation data,theUSGS Elevation PointQuery Service) may be used or thepoint elevations may be derived from the AWS Tiles. Additional elevationdata sources may be added as they come available.

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

  • get_elev_point(): Get point elevations using the USGS ElevationPoint 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), aSimple Features object, orterra SpatRaster as input. A SimpleFeatures object is returned of the point locations and elevations.
  • get_elev_raster(): Get elevation data as a raster (e.g. a DigitalElevation Model) from the AWS Open Data Terrain Tiles or OpenTopography Global datasets. Other sources may be added later. Thiswill accept a data frame of of x (long) and y (lat) or anysf orterra SpatRaster object as input and will return a terraSpatRaster object of the elevation. The extent of the SpatRaster isthe full tiles that cover the bounding box of the input spatial data,but may be clipped to the shape or bounding box of the inputlocations.

Installation

Version 0.99.0 of this package is currently available from CRAN and maybe installed by:

install.packages("elevatr")

The development version (this repo) may installed withdevtools:

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

Contributions and Use Cases

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

Attribution

Mapzen terrain tiles (which supply the AWS source) contain 3DEP, SRTM,and GMTED2010 content courtesy of the U.S. Geological Survey and ETOPO1content courtesy of U.S. National Oceanic and AtmosphericAdministration. The Open Topography API provide access to the SRTM andthe ALOS World 3D datasets. Seehttps://opentopography.org/ fordetails.

Repositories

The source code for this repository is maintained athttps://github.com/usepa/elevatr.

EPA Disclaimer

The United States Environmental Protection Agency (EPA) GitHub projectcode is provided on an “as is” basis and the user assumes responsibilityfor its use. EPA has relinquished control of the information and nolonger has responsibility to protect the integrity , confidentiality, oravailability of the information. Any reference to specific commercialproducts, processes, or services by service mark, trademark,manufacturer, or otherwise, does not constitute or imply theirendorsement, recommendation or favoring by EPA. The EPA seal and logoshall not be used in any manner to imply endorsement of any commercialproduct or activity by EPA or the United States Government.

About

An R package for accessing elevation data

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp