-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.R
More file actions
executable file
·31 lines (24 loc) · 985 Bytes
/
run.R
File metadata and controls
executable file
·31 lines (24 loc) · 985 Bytes
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
# primary workflow script for the sampling processing
# generate the required folder structure
source("scripts/createFolderStructure.R")
# generate the non AOI dependent data
source("0_preprocessing.R")
## could add structure for pulling the NLCD or MLRA data, even if just from google drive
# generate aoi species grids
## this could be a vector of state names, MLRA_ID, or LRRSYM
## type must be with "state","lrr","mlra"
source("scripts/generateAOI.R")
aoi <- generateAOI(id = "Nebraska", type = "state")
# need to write this so it can becomes a target for the next workflow
export <- "data/derived/aoi/aoi.gpkg"
overwrite = FALSE
if(!file.exists(export) | isTRUE(overwrite)){
sf::st_write(aoi,export, delete_dsn = TRUE)
}
source("0_preprocessing.R")
# produce cropped sub grid areas for all mlra and lrr areas at 10km, 2km, and 1km
source("1_developGridsForAOI.R")
# attribute data to all grids
## TOF measure per year
## NLCD cover per year
## road network