Fetch SCAN Data

Share:

Description

Query soil/climate data from USDA-NRCS SCAN Stations (experimental)

Usage

1
2
3
4
# get SCAN data
fetchSCAN(site.code, year, report='SCAN', req=NULL)
# get SCAN station metadata
SCAN_sensor_metadata(site.code)

Arguments

site.code

a vector of site codes

year

a vector of years

report

report name, single value only

req

list of SCAN request parameters, for backwards-compatibility only

Details

See The fetchSCAN tutorial for details. These functions require the 'httr' and 'rvest' libraries.

Value

a data.frame object

Note

SCAN_sensor_metadata() is known to crash on 32bit R / libraries (Windows).

Author(s)

D.E. Beaudette

References

http://www.wcc.nrcs.usda.gov/scan/

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# get data: new interface
x <- fetchSCAN(site.code=c(356, 2072), year=c(2015, 2016))
str(x)

# get sensor metadata
m <- SCAN_sensor_metadata(site.code=c(356, 2072))

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.