cdi_cman.tex 4.62 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
\documentclass[DIV16,BCOR1cm,11pt,a4paper,fleqn,twoside]{scrreprt}         % for pdf output
Uwe Schulzweida's avatar
Uwe Schulzweida committed
2
3
%\documentclass[DIV16,BCOR1cm,11pt,a4paper,fleqn]{report}         % for pdf output

Uwe Schulzweida's avatar
Uwe Schulzweida committed
4
5
\usepackage{graphics}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
6
\newcommand{\CDI}{\bfseries\sffamily CDI}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
7

Uwe Schulzweida's avatar
Uwe Schulzweida committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% To define headers and footers
\usepackage{fancyhdr}
\pagestyle{fancy}

% Headers and footers personalization using the `fancyhdr' package
\fancyhf{} % Clear all fields

\renewcommand{\headrulewidth}{0.2mm}
\renewcommand{\footrulewidth}{0.2mm}

\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
%\renewcommand{\sectionmark}[1]{\markright{#1}}

\fancyhead[LO,RE]{\slshape \leftmark}
%\fancyhead[LE,RO]{\slshape \rightmark}
\fancyfoot[LE,RO]{\Large\thepage}
\fancypagestyle{plain}{%
  \fancyhead{} % get rid of headers
  \renewcommand{\headrulewidth}{0pt}
}

29
30
31
32
\usepackage{exscale}
\usepackage{array,colortbl}    % color table

\usepackage{listings}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
33
%\lstloadlanguages{[ANSI]C,[77]Fortran}
34
35
36
\usepackage{color}
\definecolor{zebg}{rgb}{1,1,.8} %elfenbeinfarbig 

Uwe Schulzweida's avatar
Uwe Schulzweida committed
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
%\usepackage{ae}               % fuer die "almost european" computer modern fonts
%\usepackage{url}              % Standard-Paket fuer WWW-Adressen

%\typearea{10}                 % Einen sinnvollen Satzspiegel aktivieren

%\documentclass[DIV16,BCOR1cm,12pt,a4paper,fleqn]{scrreprt}         % for pdf output
%\documentclass[DIV16,BCOR1cm,11pt,a4paper,twoside]{scrreprt}  % for ps output
%\documentclass[a4paper,DIV14,BCOR1cm]{scrartcl}

%Usage:
%latex2html -local_icons -split 4 -toc_depth 3 -white cdi.tex
%dvips -o cdi.ps cdi.dvi
%dvips ps+pdf
%dvipdf
%pdflatex

% To allow automatic selection of the right graphics type ...

\newif\ifpdf
\ifx\pdfoutput\undefined
   \pdffalse                    % LaTeX
\else
   \pdfoutput=1                 % PDFLaTeX
   \pdftrue
\fi

\usepackage{thumbpdf}

%\usepackage{html}

\usepackage{makeidx}

%\ifpdf
%\usepackage[a4paper, colorlinks=true, pdfstartview=FitV, bookmarks=true, linkcolor=blue,
%            citecolor=blue, urlcolor=blue, latex2html=true]{hyperref}
%\fi

\usepackage{hyperref}
\hypersetup{pdftoolbar=true,
            pdfmenubar=true,
            pdfwindowui=true,   
%            pdffitwindow=true,
            pdfauthor={Uwe Schulzweida},
Uwe Schulzweida's avatar
Uwe Schulzweida committed
80
            pdftitle={CDI C Manual},
Uwe Schulzweida's avatar
Uwe Schulzweida committed
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
            pdfcreator={pdflatex + hyperref},
            pdfstartview=FitV,
%            pdfpagemode=FullScreen,
            a4paper,
            bookmarks=true,
            linkcolor=blue,
            citecolor=blue,
            urlcolor=blue,
            colorlinks=true}

\makeindex
%\newcommand{\ii}[1]{\textit{#1}}  \newcommand{\nn}[1]{#1n}
%\renewcommand{\dotfill}{\leaders\hbox to 5p1{\hss.\hss}\hfill}
%\newcommand{\idxdotfill}{5p1{\hss.\hss}\hfill}
\newcommand{\idxdotfill}{\ \dotfill \ }
%\def\idxdotfill{\leaders\hbox to.6em{\hss .\hss}\hskip 0pt plus 1fill}
%\MakeShortVerb{\@}

\renewcommand{\indexname}{Function index}


\newcommand{\deflabel}[1]{\bf #1\hfill}
\newenvironment{deflist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{\bf #1}
\setlength{\parsep}{0mm}
\setlength{\itemsep}{1mm}
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{\labelsep}
\renewcommand{\makelabel}{\deflabel}}}
{\end{list}}


\begin{document}

\begin{titlepage}
\vspace*{50mm}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
118
{\Huge{\CDI} \ \bf C Manual}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
119
120
121
122
123
124
125
126

\setlength{\unitlength}{1cm}
\begin{picture}(16,0.4)
\linethickness{1.5mm}
\put(0,0.1){\line(1,0){15.85}}
\end{picture}

\begin{flushright}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
127
\large\bf{Climate Data Interface \\ Version 1.4.1 \\ December 2009}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
\end{flushright}

\vfill

\Large\bf{Uwe Schulzweida}

\Large\bf{Max-Planck-Institute for Meteorology}

\begin{picture}(16,1)
\linethickness{1.0mm}
\put(0,0.7){\line(1,0){15.85}}
\end{picture}
\end{titlepage}


\tableofcontents


\chapter{Introduction}
\input{intro}


\chapter{File Formats}
\input{formats}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
154
\chapter{Use of the CDI Library}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
155
156
157
158
\input{usage}
\input{c_link}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
159
160
\chapter{CDI modules}
\input{modules}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
161

Uwe Schulzweida's avatar
Uwe Schulzweida committed
162
%\newpage
Uwe Schulzweida's avatar
Uwe Schulzweida committed
163
164
\section{Dataset functions}
\input{dataset}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
165
166
167
\input{c_stream}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
168
169
\newpage
\section{Variable list functions}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
170
\input{vlist}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
171
172
173
\input{c_vlist}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
174
175
\newpage
\section{Variable functions}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
176
\input{variable}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
177
178
179
\input{c_vlist_var}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
180
181
\newpage
\section{Grid functions}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
182
\input{grid}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
183
184
185
\input{c_grid}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
186
187
\newpage
\section{Z-axis functions}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
188
\input{zaxis}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
189
190
191
\input{c_zaxis}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
192
193
\newpage
\section{T-axis functions}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
194
\input{taxis}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
195
196
197
\input{c_taxis}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
198
%\chapter{Institute}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
199

Uwe Schulzweida's avatar
Uwe Schulzweida committed
200
%\chapter{Model}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
201

202
203
\input{bib}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
204

Uwe Schulzweida's avatar
Uwe Schulzweida committed
205
206
207
208
209
210
\appendix


\chapter{Quick Reference}
%\chapter{Quick Reference\markboth{Quick Reference}{}}
%\addcontentsline{toc}{chapter}{Quick Reference}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
211
212
213
214
215
216
217

This appendix provide a brief listing of the C language bindings of the
CDI library routines:

\input{c_ref}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
218
219
220
\input{c_examples}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
221
222
223
224
225
226
227
228
229
\clearpage
\ifpdf
\phantomsection
\fi
\addcontentsline{toc}{chapter}{\indexname}

\printindex

\end{document}