Skip to content

Merges USGS WESM and Entwine index files for lidar data acquisitions

License

Notifications You must be signed in to change notification settings

bmcgaughey1/EntwineIndex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EntwineIndex

UpdateEntwinePlusIndex

EntwineIndex is a simple code repository for code that merges the Entwine lidar data index created by Howard Butler (GitHub repository: usgs-lidar) with the WESM index for the USGS 3DEP data collection. The goal is to add lidar project information to the Entwine index to facilitate querying the index for data covering specific locations and dates.

Some projects are removed from the Entwine index. These include FullState projects for IA, KY, and MN and two projects in Indiana that are incorrectly located in Kansas. For these Indiana projects duplicates exist in the Entwine collection that are correctly located.

This code is run every few days to maintain synchronization with the Entwine and WESM index files.

URL for the index is: https://raw.githubusercontent.com/bmcgaughey1/EntwineIndex/main/Index/ENTWINEBoundaries.gpkg

You can grab a copy of the index and store it locally. However, I do not recommend maintaining a local copy as the index changes frequently. The index is fairly small so direct reads take only a few seconds. You can read the index directly from GitHub using st_read from the sf package as shown in the example code below.

The index is used with my USGSlidar R package to help discover lidar data for specific locations and dates. The index can be accessed in the package using fetchUSGSProjectIndex(type = “entwineplus”).

url <- "https://raw.githubusercontent.com/bmcgaughey1/EntwineIndex/main/Index/ENTWINEBoundaries.gpkg"

# download to local file using utils library
library(utils)
if (!utils::download.file(url, "ENTWINEBoundaries.gpkg", mode = "wb",)) {
  projects <- sf::st_read("ENTWINEBoundaries.gpkg", stringsAsFactors = FALSE)
}

# use the sf package to read the index directly from GitHub
library(sf)
projects <- sf::st_read(url, stringsAsFactors = FALSE)

About

Merges USGS WESM and Entwine index files for lidar data acquisitions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages