-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsgpFlowStateData.R
33 lines (21 loc) · 1.14 KB
/
sgpFlowStateData.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
##################################################################################################
####
#### File to produce sgpFlowStateData containing state meta-data for sgpFlow analyses
#### Source data comes from JSON files located in JSON/STATE_NAME/...
####
###################################################################################################
sgpFlowStateData <- new.env()
### Load required packages
require(jsonlite)
#########################################################
### DEMO
#########################################################
load("CSEM/DEMO/csemInterpolationFunctions.Rdata")
sgpFlowStateData[["DEMO"]][["Achievement"]][["Knots_Boundaries"]] <- fromJSON("JSON/DEMO/knots_boundaries_loss_hoss.json")
sgpFlowStateData[["DEMO"]][["Achievement"]][["CSEM"]] <- csemInterpolationFunctions
######################################################
### Create 'digest' stamp and save the result
######################################################
sgpFlowStateData[["digest"]] <- NULL
sgpFlowStateData[["digest"]] <- digest::digest(sgpFlowStateData)
save(sgpFlowStateData, file="sgpFlowStateData.rda", compress="xz")