comparison doc/config-manual/generating_charts.tex @ 1138:2c00570ab3bd

merged doc
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:02 +0200
parents 9a28846dfb9c
children
comparison
equal deleted inserted replaced
1129:ccfa07b88476 1138:2c00570ab3bd
1 \subsection{Generating Charts -- Background Information and Configuration}
2
3 The artifact-server is able to render different types of charts like 1D
4 (timeseries, vertical- and horizontalprofiles, horizontal-cross-section
5 profiles (a special case of the horizontalprofiles) and histograms) and 2D-diagrams
6 (vertical-cross section profiles). This section describes the
7 possibilities to configure different aspects for interpolating of data and
8 visualising them in charts.
9
10 \begin{lstlisting}
11 artifact-database
12 `-- gnv # charts, palettes, interpolation parameters
13 |-- charttemplate
14 |-- palettes
15 |-- horizontal-cross-section-profile
16 `-- vertical-cross-section
17 \end{lstlisting}
18
19 \paragraph*{charttemplate}
20 {\em Function}: The chart template is a global template for setting the
21 visualization of charts globally like font styles, background, title,
22 subtitle, etc. Further information can be found in the configuration
23 file referenced via the attribute {\tt configuration}.
24
25 \begin{itemize}
26 \item {\tt configuration}: path to the configuration XML-file.
27 \end{itemize}
28
29
30 \paragraph*{palettes}
31 {\em Function}: This section lists the available palettes used for rendering
32 vertical-cross-section charts (2D). Each {\tt palette}-element contains
33 the following attributes:
34
35 \begin{itemize}
36 \item {\tt name}: a descriptive name.
37 \item {\tt parameter-ids}: identifier used as keys for matching
38 between data (from the database) and palette. {\bf The {\tt
39 parameter-ids} have to been in sync with the database parameters
40 (normally in {\tt MEDIAN.Parameter})}
41 \item {\tt description}: a description.
42 \item {\tt file}: reference to the defintion of the palette.
43 \end{itemize}
44
45 For defining ranges for a palette, a range is definied by:
46
47 \begin{itemize}
48 \item {\tt index}: Index for accessing the explicit range from the
49 program logic.
50 \item {\tt from}: lower limit of a range.
51 \item {\tt to}: upper limit of a range
52 \item {\tt rgb}: Red-Green-Blue (RGB) value for rendering the range
53 \item {\tt description}: description for rendering the legend. For
54 special characters use HTML-encoded values like {\tt \&lt;} for $<$
55 or {\tt \&gt;} for $>$.
56 \end{itemize}
57
58
59 \paragraph*{horizontal-cross-section-profile}
60
61 {\em Function}: Parameterization for the interpolation algorithm for
62 horizontal-cross-section-profile calculating the interpolated value
63 along the distance.
64
65 \begin{itemize}
66 \item {\tt samples}: Number of samples calculated for a
67 interpolation along the passed geometric line.
68 \end{itemize}
69
70
71 \paragraph*{vertical-cross-section}
72 {\em Function}: Parameterization for the interpolation algorithm for
73 vertical-cross-sections (2D-charts).
74
75 \begin{itemize}
76 \item {\tt samples}: Parameters for defining the interpolation grid.
77 {\tt width} for horizontal distances; {\tt height} for the vertical
78 distance.
79 \item {\tt ground}: {\tt interpolation} method for calculating the
80 interpolation from the last measured value against the seafloor.
81 Available methods are {\tt nearest-neighbor | bilinear | bicubic}.\\
82 {\tt fill-color}: setting the file color for the seafloor in the
83 diagram.
84 \end{itemize}

http://dive4elements.wald.intevation.org