Learn R Programming

soilDB (version 2.7.1)

SCAN_sensor_metadata: Get daily climate data from USDA-NRCS SCAN (Soil Climate Analysis Network) Stations

Description

Query soil/climate data from USDA-NRCS SCAN Stations

Usage

SCAN_sensor_metadata(site.code)

SCAN_site_metadata(site.code = NULL)

fetchSCAN(site.code, year, report = "SCAN", ...)

Arguments

site.code

a vector of site codes. If NULL SCAN_site_metadata() returns metadata for all SCAN sites.

year

a vector of years

report

report name, single value only

...

additional arguments (not used)

Value

a data.frame object; NULL on bad request.

Details

Possible above and below ground sensor types include: 'SMS' (soil moisture), 'STO' (soil temperature), 'SAL' (salinity), 'TAVG' (daily average air temperature), 'TMIN' (daily minimum air temperature), 'TMAX' (daily maximum air temperature), 'PRCP' (daily precipitation), 'PREC' (daily precipitation), 'SNWD' (snow depth), 'WTEQ' (snow water equivalent),'WDIRV' (wind direction), 'WSPDV' (wind speed), 'LRADT' (solar radiation/langley total).

See the SCAN and SNOTEL FAQ for answers to common questions about these data.

See the fetchSCAN tutorial for additional usage and visualization examples.

References

https://www.nrcs.usda.gov/wps/portal/wcc/home/

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
if(requireNamespace("curl") &
    curl::has_internet()) {

    # get data
    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))

    # get site metadata
    m <- SCAN_site_metadata(site.code=c(356, 2072))
}
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab