Learn R Programming

⚠️There's a newer version (4.3.0) of this package.Take me there.

FedData (version 2.0.2)

Functions to Automate Downloading Geospatial Data Available from Several Federated Data Sources

Description

Functions to automate downloading geospatial data available from several federated data sources (mainly sources maintained by the US Federal government). Currently, the package allows for retrieval of five datasets: The National Elevation Dataset digital elevation models (1 and 1/3 arc-second; USGS); The National Hydrography Dataset (USGS); The Soil Survey Geographic (SSURGO) database from the National Cooperative Soil Survey (NCSS), which is led by the Natural Resources Conservation Service (NRCS) under the USDA; the Global Historical Climatology Network (GHCN), coordinated by National Climatic Data Center at NOAA; and the International Tree Ring Data Bank. Additional data sources are in the works, including global DEM resources (ETOPO1, ETOPO5, ETOPO30, SRTM), global soils (HWSD), MODIS satellite data products, the National Atlas (US), Natural Earth, PRISM, and WorldClim.

Copy Link

Version

Install

install.packages('FedData')

Monthly Downloads

647

Version

2.0.2

License

GPL-3

Maintainer

R. Bocinsky

Last Published

December 3rd, 2015

Functions in FedData (2.0.2)

polygon_from_extent

Turn an extent object into a polygon
download_huc4

Download a zipped directory containing a shapefile of the HUC4 subregions of the NHD.
get_ned

Download and crop the 1 (~30 meter) or 1/3 (~10 meter) arc-second National Elevation Dataset.
download_ned_tile

Download a zipped tile from the 1 (~30 meter) or 1/3 (~10 meter) arc-second National Elevation Dataset.
download_nhd_subregion

Download a zipped NHD HUC4 subregion.
get_ned_tile

Download and crop tile from the 1 (~30 meter) or 1/3 (~10 meter) arc-second National Elevation Dataset.
get_ssurgo_study_area

Download and crop the spatial and tabular data for a SSURGO study area.
get_huc4

Download and crop a shapefile of the HUC4 regions of the National Hydrography Dataset.
sequential_duplicated

Get a logical vector of which elements in a vector are sequentially duplicated.
read_crn

Read a Tucson-format chronology file.
station_to_data_frame

Convert a list of station data to a single data frame.
substr_right

Get the rightmost "n" characters of a character string.
spdf_from_polygon

Turn an SpatialPolygons object into a SpatialPolygonsDataFrame.
get_nhd

Download and crop the National Hydrography Dataset.
curl_download

Use RCurl to download a file.
download_itrdb

Download the latest version of the ITRDB.
get_ghcn_daily

Download and crop the Global Historical Climate Network-Daily data.
get_ssurgo

Download and crop data from the NRCS SSURGO soils database.
read_crn_data

Read chronology data from a Tucson-format chronology file.
FedData-package

Scripts to automate downloading geospatial data available from the several federated data sources
get_ssurgo_inventory

Download and crop a shapefile of the SSURGO study areas.
download_ssurgo_inventory

Download a zipped directory containing a shapefile of the SSURGO study areas.
get_ghcn_inventory

Download and crop the inventory of GHCN stations.
pkg_test

Install and load a package.
read_crn_metadata

Read metadata from a Tucson-format chronology file.
get_itrdb

Download the latest version of the ITRDB, and extract given parameters.
get_ghcn_daily_station

Download and extract the daily data for a GHCN weather station.
get_nhd_subregion

Download and crop data from a zipped HUC4 subregion of the National Hydrography Dataset.
download_ssurgo_study_area

Download a zipped directory containing the spatial and tabular data for a SSURGO study area.
extract_ssurgo_data

Extract data from a SSURGO databse pertaining to a set of mapunits.
download_ghcn_daily_station

Download the daily data for a GHCN weather station.
unwrap_rows

Unwraps a matrix and only keep the first n elements.