-
Notifications
You must be signed in to change notification settings - Fork 0
/
processing-outputs-old.Rmd
53 lines (38 loc) · 1.46 KB
/
processing-outputs-old.Rmd
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
# (PART) Old Stuff {-}
# Processing Outputs - OLD {#processing-outputs -}
## Visualising Results {-}
Depending on your preference for visualisation software, both Excel and R can be used for the plotting of GLM's general lake or depth-specific csv outputs. R is required for visualising NetCDF outputs.
### Excel {-}
```{r pic04-1, echo=FALSE, fig.cap="", out.width = '100%'}
knitr::include_graphics("images/processing-outputs/picture1.png")
```
### R {-}
```{r echo=TRUE, message=FALSE, warning=FALSE}
# Load packages
library(tidyverse)
library(lubridate)
read_csv("plots/processing-outputs/WQ_5.csv") %>% # Read GLM csv
mutate(
time = as_datetime(time, format = "%Y-%m-%d %H:%M:%S") # Format date/time
) %>%
ggplot(mapping = aes(x = time, y = temp)) + # Plot with ggplot()
geom_line(colour = 'red') +
labs(x = "Date", y = "Temperature (°C)") +
theme_classic()
```
### Water balance {.unnumbered #WaterBalance}
```{r pic04-2, echo=FALSE, fig.cap="", out.width = c('40%','10%','40%')}
knitr::include_graphics(c("images/02-files/GLMworkbook-10.png","images/Spacer.png","images/02-files/GLMworkbook-09.png"))
```
```{=tex}
\begin{eqnarray}
\frac{\Delta Storage}{\Delta time} = Rainfall + Snow + Local \ \ runoff + River \ \ inflow
\\
- Evaporation - Withdrawal - Overflow - Seepage
(\#eq:outputs-1)
\end{eqnarray}
```
### Heat balance {-}
```{r pic04-3, echo=FALSE, fig.cap="", out.width = '40%'}
knitr::include_graphics("images/02-files/GLMworkbook-11.png")
```