scan_data: Get Data for a SCAN site

Usage Arguments Examples

Usage

1
2
scan_data(stationTriplets, depth, start = Sys.Date() - as.difftime(1, units =
  "days"), end = Sys.Date())

Arguments

stationTriplets

A character vector of the station ID triplets (e.g., c("9897:NM:UCOOP", "9652:AZ:UCOOP")). Stations can be queried with scan_sites_by_element_code.

depth

Individual numeric value for soil moisture sensor depth. In units inches. Common depths include -2, -4, -8, -20, and -40

start

Value with class Date for the beginning date for the data query

end

Value with class Date for the latest date for the data query

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
#To get pretty much all the data, just do this
stations = scan_sites_by_element_code('SMS')

#most stations seem to have 5 sensors
#2inch sensors
data_2 = scan_data(stations, -2)

#4inch sensors
data_4 = scan_data(stations, -4)

#8 inch sensors
data_8 = scan_data(stations, -8)

#20 inch
data_20 = scan_data(stations, -20)

#40 inch
data_20 = scan_data(stations, -40)

## End(Not run)

USGS-R/soilmoisturetools documentation built on May 9, 2019, 9:32 p.m.