-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.R
79 lines (61 loc) · 1.66 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
##
## Draft workflow for creating thematic maps from CONUS gNATSGO mukey grid + SDA
##
## TODO:
# * profile CPU, RAM, disk, network resources
# * finish categorical variable handling
# * better selection of aggregation type
# * add depth interval to file name
## Notes:
# * be sure to disable VPN and free as much RAM as possible
#
# government machine, at the office
# * 26 minutes for a single component level property
# * 37 minutes for 2 hz level properties
# * 45 minutes for 3 hz level properties
#
# * 25 minutes for mosaic/re-sample of single property
# * 30 minutes for 3 hz level properties
#
# 2024-03-26:
#
# gNATSGO 30m:
# * 68 seconds / tile (6 hz level properties)
# * 1 hour for 6 hz level properties (SDA / slow internet)
# STATSGO 300m:
# * 74 seconds for 6 hz level properties (SDA / slow internet)
# *
# gSSURGO 30m (SoilWeb 4-1)
# * 43 minutes for 6 hz level properties (SDA)
#
## create tile systems
## these are already in place
# source('tiling-grid-A.R')
## tile CONUS mukey grid
# only need to do this once per FY snapshot
# synced with other operations via config.R
#
# gSSURGO/gNATSGO 30m : ~ 10 minutes
# STATSGO 300m : ~ 2 minutes
system.time(
source('tile-mukey-grid.R')
)
## process tiles, create thematic grid tiles
# variables stored in config.R
#
# gSSURGO 30m: 12 minutes (1 property)
#
system.time(
source('process-tiles.R')
)
## mosaic / re-sample tiles
# gSSURGO 30m: 10 minutes (1 property)
# gNATSGO 30m: 36 minutes (6 properties)
# STATSGO 300m: 32 seconds (6 properties)
#
# gSSURGO (SoilWeb): 10 minutes (6 properties)
#
# variables stored in config.R
system.time(
source('mosaic-tiles.R')
)