-
Notifications
You must be signed in to change notification settings - Fork 1
/
plotcgem.R
55 lines (47 loc) · 1.2 KB
/
plotcgem.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
#library(ncdf4)
library(leaflet)
library(viridis)
source("listplot.R")
#which_nodes = c(823,6000,492,1850,3083,78,2383,3329)
which_nodes = c(10)
#which_nodes = c(823)
setwd("./outputs")
for (node in which_nodes){
pdf(paste0("outputs_",node,".pdf"))
time <- readRDS(paste0("time_",node,".rds"))
cgem <- readRDS(paste0("cgem_",node,".rds"))
#First plot, Var1
pdf_layout <- c(2,1)
par(mfrow=pdf_layout)
listplot(time,cgem$A1)
listplot(time,cgem$Qn1)
listplot(time,cgem$Qp1)
listplot(time,cgem$Z1)
listplot(time,cgem$Z2)
listplot(time,cgem$NO3)
listplot(time,cgem$NH4)
listplot(time,cgem$PO4)
listplot(time,cgem$DIC)
listplot(time,cgem$O2)
listplot(time,cgem$Alk)
listplot(time,cgem$Si)
listplot(time,cgem$CDOM)
listplot(time,cgem$OM1CA)
listplot(time,cgem$OM1NA)
listplot(time,cgem$OM1PA)
listplot(time,cgem$OM2CA)
listplot(time,cgem$OM2NA)
listplot(time,cgem$OM2PA)
listplot(time,cgem$OM1CZ)
listplot(time,cgem$OM1NZ)
listplot(time,cgem$OM1PZ)
listplot(time,cgem$OM2CZ)
listplot(time,cgem$OM2NZ)
listplot(time,cgem$OM2PZ)
listplot(time,cgem$OM1R)
listplot(time,cgem$OM2R)
listplot(time,cgem$OM1BC)
listplot(time,cgem$OM2BC)
listplot(time,cgem$Tr)
dev.off()
}