Commit 3a3acdee authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Docu update

parent d22a1915
......@@ -79,7 +79,7 @@ Here is an example for the {\CDO} description of a curvilinear grid.
xvals/yvals describes the position of the 6x5 quadrilateral grid cells.
The first 4 values of xbounds/ybounds are the corners of the first grid cell.
\lstset{moredelim=**[is][\color{red}]{|}{|}}
\begin{lstlisting}[frame=single, backgroundcolor=\color{pyellow}, basicstyle=\footnotesize]
\begin{lstlisting}[frame=single, backgroundcolor=\color{pcolor1}, basicstyle=\footnotesize]
gridtype = curvilinear
gridsize = 30
xsize = 6
......@@ -130,7 +130,7 @@ The first 6 values of xbounds/ybounds are the corners of the first
grid cell.
The grid cell corners have to rotate counterclockwise.
The first grid cell is colored red.
\begin{lstlisting}[frame=single, backgroundcolor=\color{pyellow}, basicstyle=\footnotesize]
\begin{lstlisting}[frame=single, backgroundcolor=\color{pcolor1}, basicstyle=\footnotesize]
gridtype = unstructured
gridsize = 30
nvertex = 6
......
......@@ -62,9 +62,9 @@
\usepackage{listings}
\usepackage{longtable}
\usepackage{color}
\definecolor{pyellow}{rgb}{1, 0.98, 0.86}
\definecolor{pgreen}{rgb}{1, 0.925, 0.70}
%\definecolor{pgreen}{rgb}{0.92, 1, 0.91}
\definecolor{pcolor1}{rgb}{0.992, 0.980, 0.875} % rgb: 253/250/223
\definecolor{pcolor2}{rgb}{1.000, 0.925, 0.700} % rgb: 255/236/278
\definecolor{pcolor3}{rgb}{0.968, 0.756, 0.623} % rgb: 247/193/159
%\usepackage{ae} % fuer die "almost european" computer modern fonts
%\usepackage{url} % Standard-Paket fuer WWW-Adressen
......
\definecolor{pyellow}{rgb}{1, 0.98, 0.86}
\definecolor{pgreen}{rgb}{1, 0.925, 0.70}
%\definecolor{pgreen}{rgb}{0.92, 1, 0.91}
\definecolor{pcolor1}{rgb}{0.992, 0.980, 0.875} % rgb: 253/250/223
\definecolor{pcolor2}{rgb}{1.000, 0.925, 0.698} % rgb: 255/236/178
\definecolor{pcolor3}{rgb}{0.968, 0.756, 0.623} % rgb: 247/193/159
\newcommand{\CDO}{{\bfseries\sffamily CDO\ }}
\newcommand{\cdologo}{\includegraphics{logo/cdo_logo}}
......@@ -37,28 +37,28 @@
\vspace*{2mm}
\subsection*{Options}
\noindent
\begin{tabular*}{3.95in}{|>{\columncolor{pyellow}}ll|} \hline
\makebox[0.85in][l]{{\bf{-a}} } & \makebox[2.76in][l]{Generate an absolute time axis} \\ \hline
\begin{tabular*}{3.95in}{|>{\columncolor{pcolor2}}l>{\columncolor{pcolor1}}l|} \hline
\makebox[0.85in][l]{{\bf{-a}} } & \makebox[2.76in][l]{Generate an absolute time axis} \\ %\hline
\makebox[0.85in][l]{{\bf{-b}} $<\!nbits\!>$ } & \makebox[2.76in][l]{Set the number of bits for the output precision} \\
& (I8/I16/I32/F32/F64 for nc,nc2,nc4,nc4c; \\
& F32/F64 for srv,ext,ieg; 1-24 for grb,grb2) \\
& Add L or B for Little or Big endian byteorder\\ \hline
\makebox[0.85in][l]{{\bf{-f}} $<\!format\!>$ } & \makebox[2.76in][l]{Outputformat: grb,grb2,nc,nc2,nc4,nc4c,srv,ext,ieg} \\ \hline
& Add L or B for Little or Big endian byteorder\\ %\hline
\makebox[0.85in][l]{{\bf{-f}} $<\!format\!>$ } & \makebox[2.76in][l]{Outputformat: grb,grb2,nc,nc2,nc4,nc4c,srv,ext,ieg} \\ %\hline
\makebox[0.85in][l]{{\bf{-g}} $<\!grid\!>$ } & \makebox[2.76in][l]{Grid or file name} \\
& Grid names: {\tt r<NX>x<NY>}, {\tt n<N>}, {\tt gme<NI>} \\ \hline
\makebox[0.85in][l]{{\bf{-h}} } & \makebox[2.76in][l]{Help information for the operators} \\ \hline
\makebox[0.85in][l]{{\bf{-M}} } & \makebox[2.76in][l]{Indicate that the I/O streams have missing values} \\ \hline
\makebox[0.85in][l]{{\bf{-m}} $<\!missval\!>$ } & \makebox[2.76in][l]{Set the default missing value (default: {\tt-9e+33})} \\ \hline
\makebox[0.85in][l]{{\bf{-O}} } & \makebox[2.76in][l]{Overwrite existing output file, if checked} \\ \hline
\makebox[0.85in][l]{{\bf{-R}} } & \makebox[2.76in][l]{Convert GRIB1 data from reduced to regular grid} \\ \hline
\makebox[0.85in][l]{{\bf{-r}} } & \makebox[2.76in][l]{Generate a relative time axis} \\ \hline
\makebox[0.85in][l]{{\bf{-s}} } & \makebox[2.76in][l]{Silent mode} \\ \hline
& Grid names: {\tt r<NX>x<NY>}, {\tt n<N>}, {\tt gme<NI>} \\ %\hline
\makebox[0.85in][l]{{\bf{-h}} } & \makebox[2.76in][l]{Help information for the operators} \\ %\hline
\makebox[0.85in][l]{{\bf{-M}} } & \makebox[2.76in][l]{Indicate that the I/O streams have missing values} \\ %\hline
\makebox[0.85in][l]{{\bf{-m}} $<\!missval\!>$ } & \makebox[2.76in][l]{Set the default missing value (default: {\tt-9e+33})} \\ %\hline
\makebox[0.85in][l]{{\bf{-O}} } & \makebox[2.76in][l]{Overwrite existing output file, if checked} \\ %\hline
\makebox[0.85in][l]{{\bf{-R}} } & \makebox[2.76in][l]{Convert GRIB1 data from reduced to regular grid} \\ %\hline
\makebox[0.85in][l]{{\bf{-r}} } & \makebox[2.76in][l]{Generate a relative time axis} \\ %\hline
\makebox[0.85in][l]{{\bf{-s}} } & \makebox[2.76in][l]{Silent mode} \\ %\hline
\makebox[0.85in][l]{{\bf{-t}} $<\!table\!>$ } & \makebox[2.76in][l]{Set the parameter table name or file} \\
& Predefined tables: echam4 echam5 mpiom1 \\ \hline
\makebox[0.85in][l]{{\bf{-V}} } & \makebox[2.76in][l]{Print the version number} \\ \hline
\makebox[0.85in][l]{{\bf{-v}} } & \makebox[2.76in][l]{Print extra details for some operators} \\ \hline
& Predefined tables: echam4 echam5 mpiom1 \\ %\hline
\makebox[0.85in][l]{{\bf{-V}} } & \makebox[2.76in][l]{Print the version number} \\ %\hline
\makebox[0.85in][l]{{\bf{-v}} } & \makebox[2.76in][l]{Print extra details for some operators} \\ %\hline
\makebox[0.85in][l]{{\bf{-z}} szip } & \makebox[2.76in][l]{SZIP compression of GRIB1 records} \\ \hline
% \makebox[0.85in][l]{{\bf{\ \ }} jpeg } & \makebox[2.76in][l]{JPEG compression of GRIB2 records} \\ \hline
% \makebox[0.85in][l]{{\bf{\ \ }} zip } & \makebox[2.76in][l]{Deflate compression of netCDF4 variables} \\ \hline
% \makebox[0.85in][l]{{\bf{\ \ }} jpeg } & \makebox[2.76in][l]{JPEG compression of GRIB2 records} \\ %\hline
% \makebox[0.85in][l]{{\bf{\ \ }} zip } & \makebox[2.76in][l]{Deflate compression of netCDF4 variables} \\ %\hline
\end{tabular*}
......@@ -68,7 +68,7 @@ with netCDF support.
%\begin{minipage}[t]{\textwidth}
SCRIP grid description example of a curvilinear MPIOM \cite{MPIOM} GROB3 grid (only the netCDF header):
\begin{lstlisting}[frame=single, backgroundcolor=\color{pyellow}, basicstyle=\footnotesize]
\begin{lstlisting}[frame=single, backgroundcolor=\color{pcolor1}, basicstyle=\footnotesize]
netcdf grob3s {
dimensions:
grid_size = 12120 ;
......@@ -109,7 +109,7 @@ For more information about this format see \cite{PINGO}.
%\begin{minipage}[t]{\textwidth}
PINGO grid description example of a T21 gaussian grid:
\begin{lstlisting}[frame=single, backgroundcolor=\color{pyellow}, basicstyle=\footnotesize]
\begin{lstlisting}[frame=single, backgroundcolor=\color{pcolor1}, basicstyle=\footnotesize]
Grid Description File
(Comments start at non digit characters and end at end of line)
First part: The dimensions.
......@@ -182,10 +182,10 @@ with respect to the different grid types.
\vspace{2mm}
\hspace{2cm}
\begin{tabular}[c]{|>{\columncolor{pyellow}}l|c|c|c|c|}
\begin{tabular}[c]{|>{\columncolor{pcolor1}}l|c|c|c|c|}
\hline
\rowcolor{pyellow}
\cellcolor{pgreen}
\rowcolor{pcolor1}
\cellcolor{pcolor2}
gridtype & lonlat & gaussian & curvilinear & unstructured \\
\hline
gridsize & xsize*ysize & xsize*ysize & xsize*ysize & {\bf ncell} \\
......@@ -231,7 +231,7 @@ The grid cell corners xbounds and ybounds have to rotate counterclockwise.
%\begin{minipage}[t]{\textwidth}
{\CDO} grid description example of a T21 gaussian grid:
\begin{lstlisting}[frame=single, backgroundcolor=\color{pyellow}, basicstyle=\footnotesize]
\begin{lstlisting}[frame=single, backgroundcolor=\color{pcolor1}, basicstyle=\footnotesize]
gridtype = gaussian
xsize = 64
ysize = 32
......@@ -248,7 +248,7 @@ The grid cell corners xbounds and ybounds have to rotate counterclockwise.
%\begin{minipage}[t]{\textwidth}
{\CDO} grid description example of a global regular grid with 60x30 points:
\begin{lstlisting}[frame=single, backgroundcolor=\color{pyellow}, basicstyle=\footnotesize]
\begin{lstlisting}[frame=single, backgroundcolor=\color{pcolor1}, basicstyle=\footnotesize]
gridtype = lonlat
xsize = 60
ysize = 30
......@@ -269,7 +269,7 @@ are for the rotated system.
%\begin{minipage}[t]{\textwidth}
{\CDO} grid description example of a regional rotated lon/lat grid:
\begin{lstlisting}[frame=single, backgroundcolor=\color{pyellow}, basicstyle=\footnotesize]
\begin{lstlisting}[frame=single, backgroundcolor=\color{pcolor1}, basicstyle=\footnotesize]
gridtype = lonlat
xsize = 81
ysize = 91
......
......@@ -278,10 +278,11 @@ while (<MOFILE>) {
if ( $chap eq "Statistical values" ) {
print TRCARD "\\noindent\n";
print TRCARD "\\hspace*{0.5in}\n";
print TRCARD "\\begin{tabular*}{2.8in}{|l|l|} \\hline\n";
print TRCARD "\\rowcolor{pgreen}\n";
print TRCARD "\\begin{tabular*}{2.8in}{|>{\\columncolor{pcolor1}}l>{\\columncolor{pcolor2}}l|} \\hline\n";
print TRCARD "\\rowcolor{pcolor3}\n";
print TRCARD "\\makebox[1.8in][c]{Available statistical functions} &\n";
print TRCARD "\\makebox[0.65in][c]{\$<\\!stat\\!>\$} \\\\ \\hline\n";
print TRCARD "\\makebox[0.65in][c]{\$<\\!stat\\!>\$} \\\\ \n";
# print TRCARD "\\makebox[0.65in][c]{\$<\\!stat\\!>\$} \\\\ \\hline\n";
print TRCARD "minimum & {\\bf min} \\\\ \n";
print TRCARD "maximum & {\\bf max} \\\\ \n";
print TRCARD "sum & {\\bf sum} \\\\ \n";
......@@ -361,7 +362,7 @@ while (<MOFILE>) {
if ( $refskip == 0 ) {
print TRCARD "\\noindent\n";
print TRCARD "\\begin{tabular*}{$len1}{|>{\\columncolor{pyellow}}ll|} \\hline\n";
print TRCARD "\\begin{tabular*}{$len1}{|>{\\columncolor{pcolor2}}l>{\\columncolor{pcolor1}}l|} \\hline\n";
}
print HELPFILE " \"NAME\",\n";
......@@ -630,7 +631,7 @@ while (<MOFILE>) {
if ( "$otitle" ne "" ) {
if ( $refskip == 0 && $xopercnt > 1 && "$oparameter" ne "$operpara" ) {
# print TRCARD "\\rowcolor[gray]{.9}\n";
print TRCARD "\\multicolumn{2}{|>{\\columncolor{pgreen}}l|}";
print TRCARD "\\multicolumn{2}{|>{\\columncolor{pcolor3}}l|}";
if ( $xopercnt == 2 ) {
print TRCARD "{{\\bf $opernamex}{\\sl $operpara} \ {\\tt $marguments}} ";
} else {
......@@ -992,7 +993,7 @@ while (<MOFILE>) {
if ( $refskip == 0 ) {
# print TRCARD "\\rowcolor[gray]{.9}\n";
print TRCARD "\\multicolumn{2}{|>{\\columncolor{pgreen}}l|}";
print TRCARD "\\multicolumn{2}{|>{\\columncolor{pcolor3}}l|}";
}
if ( "$opername" eq "selpctl" ) {
$marguments =~ s/ifile/in/og;
......@@ -1104,16 +1105,16 @@ sub print_description {
print TRFILE "\n";
$math = 0;
# } elsif ( "$kword" eq "\@BEGINVERBATIM" ) {
# print TRFILE "\\begin{lstlisting}[backgroundcolor=\\color{pyellow}, basicstyle=\\small]\n";
# print TRFILE "\\begin{lstlisting}[backgroundcolor=\\color{pcolor1}, basicstyle=\\small]\n";
# $verb = 1;
} elsif ( "$kword" eq "\@BEGINVERBATIM" ) {
print TRFILE "\\begin{lstlisting}[frame=single, backgroundcolor=\\color{pgreen}, basicstyle=\\ttfamily, columns=flexible]\n";
print TRFILE "\\begin{lstlisting}[frame=single, backgroundcolor=\\color{pcolor2}, basicstyle=\\ttfamily, columns=flexible]\n";
$verb = 1;
} elsif ( "$kword" eq "\@ENDVERBATIM" ) {
print TRFILE "\\end{lstlisting}\n";
$verb = 0;
} elsif ( "$kword" eq "\@BEGINLISTING" ) {
print TRFILE "\\begin{lstlisting}[frame=single, backgroundcolor=\\color{pyellow}, basicstyle=\\small]\n";
print TRFILE "\\begin{lstlisting}[frame=single, backgroundcolor=\\color{pcolor1}, basicstyle=\\small]\n";
$text = 1;
} elsif ( "$kword" eq "\@ENDLISTING" ) {
print TRFILE "\\end{lstlisting}\n";
......
......@@ -24,11 +24,11 @@ value results in $0$.
%\ifpdf
%\begin{longtable}[t]{|c||c|c|c|}
%\else
\begin{tabular}[t]{|>{\columncolor{pyellow}}c|c|c|c|}
\begin{tabular}[t]{|>{\columncolor{pcolor1}}c|c|c|c|}
%\fi
\hline
\rowcolor{pyellow}
\cellcolor{pgreen}
\rowcolor{pcolor1}
\cellcolor{pcolor2}
\makebox[2.3cm]{\bf addition}& \makebox[2cm]{b} & & \makebox[2cm]{miss} \\
\hline
{a} & $a + b$ & & $miss$ \\
......@@ -41,8 +41,8 @@ value results in $0$.
%
%\begin{tabular}[t]{|c||c|c|}
\hline
\rowcolor{pyellow}
\cellcolor{pgreen}
\rowcolor{pcolor1}
\cellcolor{pcolor2}
\makebox[2.3cm]{\bf subtraction}& \makebox[2cm]{b} & & \makebox[2cm]{miss} \\
\hline
{a} & $a - b$ & & $miss$ \\
......@@ -55,8 +55,8 @@ value results in $0$.
%
%\begin{tabular}[b]{|c||c|c|c|}
\hline
\rowcolor{pyellow}
\cellcolor{pgreen}
\rowcolor{pcolor1}
\cellcolor{pcolor2}
\makebox[2.3cm]{\bf multiplication} & \makebox[2cm]{b} & \makebox[2cm]{0} & \makebox[2cm]{miss} \\
\hline
{a} & $a * b$ & $0$ & $miss$ \\
......@@ -71,8 +71,8 @@ value results in $0$.
%
%\begin{tabular}[b]{|c||c|c|c|}
\hline
\rowcolor{pyellow}
\cellcolor{pgreen}
\rowcolor{pcolor1}
\cellcolor{pcolor2}
\makebox[2.3cm]{\bf division} & \makebox[2cm]{b} & \makebox[2cm]{0} & \makebox[2cm]{miss} \\
\hline
{a} & $a / b$ & $miss$ & $miss$ \\
......@@ -87,8 +87,8 @@ value results in $0$.
%
%\begin{tabular}[b]{|c||c|c|}
\hline
\rowcolor{pyellow}
\cellcolor{pgreen}
\rowcolor{pcolor1}
\cellcolor{pcolor2}
\makebox[2.3cm]{\bf maximum} & \makebox[2cm]{b} & & \makebox[2cm]{miss} \\
\hline
{a} & $max(a,b)$ & & $a$ \\
......@@ -101,8 +101,8 @@ value results in $0$.
%
%\begin{tabular}[b]{|c||c|c|}
\hline
\rowcolor{pyellow}
\cellcolor{pgreen}
\rowcolor{pcolor1}
\cellcolor{pcolor2}
\makebox[2.3cm]{\bf minimum} & \makebox[2cm]{b} & & \makebox[2cm]{miss} \\
\hline
{a} & $min(a,b)$ & & $a$ \\
......@@ -118,8 +118,8 @@ value results in $0$.
%
%\begin{tabular}[b]{|c||c|c|}
\hline
\rowcolor{pyellow}
\cellcolor{pgreen}
\rowcolor{pcolor1}
\cellcolor{pcolor2}
\makebox[2.3cm]{\bf sum} & \makebox[2cm]{b} & & \makebox[2cm]{miss} \\
\hline
{a} & $a + b$ & & $a$ \\
......
......@@ -12,7 +12,7 @@ Use the operator 'setpartab' to set the parameter table for a specific file.
\begin{minipage}[t]{\textwidth}
Example of a {\CDO} parameter table:
\begin{lstlisting}[frame=single, backgroundcolor=\color{pyellow}, basicstyle=\footnotesize]
\begin{lstlisting}[frame=single, backgroundcolor=\color{pcolor1}, basicstyle=\footnotesize]
134 aps surface pressure [Pa]
141 sn snow depth [m]
147 ahfl latent heat flux [W/m**2]
......
......@@ -22,7 +22,7 @@ The following options are available for all operators:
\vspace*{1mm}
\hspace*{0cm}\begin{tabular}{|l|l|}
\hline
\rowcolor{pgreen}
\rowcolor{pcolor2}
\sl $<$format$>$ & \sl $<$nbits$>$ \\
{\tt grb, grb2} & {\tt 1 - 24} \\
{\tt nc, nc2, nc4, nc4c} & {\tt I8/I16/I32/F32/F64} \\
......@@ -39,7 +39,7 @@ The following options are available for all operators:
\vspace*{1mm}
\hspace*{0cm}\begin{tabular}{|l|l|}
\hline
\rowcolor{pgreen}
\rowcolor{pcolor2}
{\bf File format} & \sl $<$format$>$ \\
GRIB version 1 & {\tt grb} \\
GRIB version 2 & {\tt grb2} \\
......
......@@ -41,7 +41,7 @@ Z-axis type & Description & Units \\ \hline
%\begin{minipage}[t]{\textwidth}
Z-axis description example for pressure levels 100, 200, 500, 850 and 1000 hPa:
\begin{lstlisting}[frame=single, backgroundcolor=\color{pyellow}, basicstyle=\footnotesize]
\begin{lstlisting}[frame=single, backgroundcolor=\color{pcolor1}, basicstyle=\footnotesize]
zaxistype = pressure
size = 5
levels = 10000 20000 50000 85000 100000
......@@ -50,7 +50,7 @@ Z-axis description example for pressure levels 100, 200, 500, 850 and 1000 hPa:
%\begin{minipage}[t]{\textwidth}
Z-axis description example for ECHAM5 L19 hybrid model levels:
\begin{lstlisting}[frame=single, backgroundcolor=\color{pyellow}, basicstyle=\footnotesize]
\begin{lstlisting}[frame=single, backgroundcolor=\color{pcolor1}, basicstyle=\footnotesize]
zaxistype = hybrid
size = 19
levels = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment