-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.tex
More file actions
143 lines (108 loc) · 4.49 KB
/
main.tex
File metadata and controls
143 lines (108 loc) · 4.49 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
\documentclass[11pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{xcolor}
% COLORS
% Use these definitions to change the color in the listings
\definecolor{green}{rgb}{0,0.6,0}
% CODE LISTINGS
\lstset{
language=SQL,
basicstyle=\footnotesize,
commentstyle=\color{green},
keywordstyle=\color{blue},
numbers=left,
numberstyle=\tiny\color{gray}
}
% biibliography
% for citation styles see here:
% https://www.overleaf.com/learn/latex/Natbib%20citation%20styles
%
% You can export references as bibtex (i.e. on google scholar) and copy them to the bibliography.bib
% The most important citation commands are:
% \citep{ref} for parenthesis
% \citet{ref} for a text citation
\usepackage{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={(},close={)}}
\newcommand\wordcount[1]{
\immediate\write18{texcount -sum=[1,0,0] -sub=section #1.tex | grep "Section" | sed -e 's/+.*//' | sed -n \thesection p > ./\jobname-words.sum}%
\medskip\par\input{./\jobname-words.sum} words
}
% CHANGE TO YOU NEEDS HERE
\title{SQL Report: Your title goes here}
\author{Your Name}
\date{January 2021}
\begin{document}
\maketitle
\begin{abstract}
An abstract is absolutely not necessary and you can simply drop or comment this part.
Alternatively, you can use it to place your contact details:\medskip\par
\begin{tabular}{lc}
student-id & 1234567 \\
e-mail & mail@example.com
\end{tabular}
\end{abstract}
\section{Temperature indices}
\subsection{SQL code}
An overview of temperature indices was implemented using a \texttt{VIEW} as defined in lising \ref{lst:view_1}
\lstinputlisting[label={lst:view_1},caption={create statement for view},]{./sql/temperature_indices.sql}
\subsection{discuss}
% REPLACE WITH YOUR TEXT HERE
In the next paragraph discuss the differences between the Postgres and R solution for calculating temperature indices.
Name a few advantages \textbf{and} disadvantages for both solutions.
% this does not yet work...
%\wordcount{main}
\section{Verify results}
% REPLACE WITH YOUR TEXT HERE
Compare your SQL calculated indices to the R calculated indices. Do they differ and if they do, why?
%\wordcount{main}
\section{Spatial variability}
% REPLACE WITH YOUR TEXT HERE
Describe the variability of your sensor compared to the others this year.
You might also want to place some citations. Check out the comments in the source
\texttt{main.tex} for the commands.
If you want to cite your HOBO report here, add an bibliography entry to the \texttt{bibliography.bib} like:
\begin{verbatim}
@article{hobo,
author={Bar Foo},
year=2021,
journal={Data collection, -management, -visualization lecture},
title={HOBO Report}
}
\end{verbatim}
You can cite it with the \texttt{\textbackslash citep\{hobo\}} command \citep{hobo}.
%\wordcount{main}
\section{Indices across time and space}
\begin{figure}[ht]
\centering
\includegraphics[width=.5\textwidth]{./figures/example_analysis}
\caption{Boxplot of the mean, minimum and maximum hourly, quality checked air temperature in Freiburg on Christmas eve. The data was taken from 52 different locations in 2019, 2020 and 2021. Original measurements were taken with an onset HOBO temperature data logger.}
\label{fig:first_figure}
\end{figure}
% REPLACE WITH YOUR TEXT HERE
This last section should focus on the question how this years' measurements compare
to the last few years. For this, you are asked to produce a number of graphs.
The best practice is to generate PDF graphics and include them directly here.
The necessary commands are already loaded in this template.
You can even automate your workflow further and run your scripts producing the
PDFs in this repository, saving them to the \texttt{'./figures/'} subfolder.
This will refresh the figures in the report whenever, your scripts overwrite them (Fig \ref{fig:first_figure}).
The figure above can be included like:
\begin{verbatim}
\begin{figure}[ht]
\centering
\includegraphics[width=.5\textwidth]{./figures/example_analysis}
\caption{Boxplot of the mean, minimum and maximum hourly, quality
checked air temperature in Freiburg on Christmas eve. The data was
taken from 52 different locations in 2019, 2020 and 2021. Original
measurements were taken with an onset HOBO temperature data logger.}
\label{fig:first_figure}
\end{figure}
\end{verbatim}
%\wordcount{main}
\bibliography{bibliography}
\end{document}