-
Notifications
You must be signed in to change notification settings - Fork 2
/
debug-localDB.R
55 lines (42 loc) · 931 Bytes
/
debug-localDB.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
## TODO: file soilDB issue
library(DBI)
library(RSQLite)
library(soilDB)
local.tabularDB <- NULL
local.tabularDB <- 'e:/temp/ssurgo-combined.sqlite'
# SSURGO
get_SDA_property(
property = 'claytotal_r',
dsn = local.tabularDB,
mukeys = 2600481,
method = "Weighted Average",
top_depth = 0,
bottom_depth = 25,
include_minors = TRUE,
miscellaneous_areas = FALSE
)
# STATSGO
get_SDA_property(
property = 'claytotal_r',
dsn = local.tabularDB,
mukeys = 658083,
method = "Weighted Average",
top_depth = 0,
bottom_depth = 25,
include_minors = TRUE,
miscellaneous_areas = FALSE
)
# try to debug this...
cat(
get_SDA_property(
property = 'claytotal_r',
dsn = local.tabularDB,
mukeys = 2600481,
method = "Weighted Average",
top_depth = 0,
bottom_depth = 25,
include_minors = TRUE,
miscellaneous_areas = FALSE,
query_string = TRUE
)
)