cdi_fman.tex 5.01 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
% To allow automatic selection of the right graphics type ...
Uwe Schulzweida's avatar
Uwe Schulzweida committed
5
% preset \pdfoutput for older latex installation, it is allways defined for
Uwe Schulzweida's avatar
Uwe Schulzweida committed
6
7
8
9
% news ones
\ifx\pdfoutput\undefined
\gdef\pdfoutput{0}
\fi
Uwe Schulzweida's avatar
Uwe Schulzweida committed
10

11
\newif\ifpdfx
Uwe Schulzweida's avatar
Uwe Schulzweida committed
12
13
\ifnum\pdfoutput=0
% latex is called for dvi output
14
   \pdfxfalse
Uwe Schulzweida's avatar
Uwe Schulzweida committed
15
16
17
18
   \usepackage{graphics}
   \usepackage{hyperref}
\else
% pdflatex is called for pdf output
19
   \pdfxtrue
Uwe Schulzweida's avatar
Uwe Schulzweida committed
20
21
22
23
24
   \usepackage[pdftex]{graphicx}
   \usepackage[pdftex]{hyperref}
\fi

\setlength{\parindent}{0pt}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
25
\newcommand{\CDI}{\bfseries\sffamily CDI}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
26

Uwe Schulzweida's avatar
Uwe Schulzweida committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
% 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}
}

48
49
50
51
52
\usepackage{exscale}
\usepackage{array,colortbl}    % color table

\usepackage{listings}
\usepackage{color}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
53
\definecolor{pyellow}{rgb}{1, 0.98, 0.86}
54

Uwe Schulzweida's avatar
Uwe Schulzweida committed
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
%\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

\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
88
            pdftitle={CDI Fortran Manual},
Uwe Schulzweida's avatar
Uwe Schulzweida committed
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
            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}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
110
\newcommand{\deflabel}[1]{\bfseries #1\hfill}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
111
112
\newenvironment{deflist}[1]
{\begin{list}{}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
113
{\settowidth{\labelwidth}{\bfseries #1}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
114
115
116
117
118
119
120
121
122
123
124
125
\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
126
{\Huge{\CDI} \ \bfseries Fortran Manual}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
127
128
129
130

\setlength{\unitlength}{1cm}
\begin{picture}(16,0.4)
\linethickness{1.5mm}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
131
\put(0,0.1){\line(1,0){16.3}}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
132
133
134
\end{picture}

\begin{flushright}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
135
{\large\bfseries Climate Data Interface \\ Version 1.9.6 \\ November 2018}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
136
137
138
139
\end{flushright}

\vfill

Uwe Schulzweida's avatar
Uwe Schulzweida committed
140
{\Large\bfseries Uwe Schulzweida}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
141

Uwe Schulzweida's avatar
Uwe Schulzweida committed
142
{\Large\bfseries Max-Planck-Institute for Meteorology}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
143
144
145

\begin{picture}(16,1)
\linethickness{1.0mm}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
146
\put(0,0.7){\line(1,0){16.3}}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
\end{picture}
\end{titlepage}


\tableofcontents


\chapter{Introduction}
\input{intro}


\chapter{File Formats}
\input{formats}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
162
\chapter{Use of the CDI Library}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
163
164
165
166
\input{usage}
\input{f_link}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
167
168
\chapter{CDI modules}
\input{modules}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
169

Uwe Schulzweida's avatar
Uwe Schulzweida committed
170
%\newpage
Uwe Schulzweida's avatar
Uwe Schulzweida committed
171
172
\section{Dataset functions}
\input{dataset}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
173
\input{f_stream}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
174
\input{f_stream_write}
175
\input{f_stream_read}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
176
177


Uwe Schulzweida's avatar
Uwe Schulzweida committed
178
179
\newpage
\section{Variable list functions}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
180
\input{vlist}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
181
182
183
\input{f_vlist}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
184
185
\newpage
\section{Variable functions}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
186
\input{variable}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
187
188
189
\input{f_vlist_var}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
190
191
192
\newpage
\section{Attributes}
\input{attribute}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
193
\input{f_cdi_att}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
194
195


Uwe Schulzweida's avatar
Uwe Schulzweida committed
196
197
\newpage
\section{Grid functions}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
198
\input{grid}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
199
200
201
\input{f_grid}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
202
203
\newpage
\section{Z-axis functions}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
204
\input{zaxis}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
205
206
207
\input{f_zaxis}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
208
209
\newpage
\section{T-axis functions}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
210
\input{taxis}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
211
212
213
\input{f_taxis}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
214
%\chapter{Institute}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
215

Uwe Schulzweida's avatar
Uwe Schulzweida committed
216
%\chapter{Model}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
217

218
219
220
\input{bib}


Uwe Schulzweida's avatar
Uwe Schulzweida committed
221
222
223
224
225
226
\appendix


\chapter{Quick Reference}
%\chapter{Quick Reference\markboth{Quick Reference}{}}
%\addcontentsline{toc}{chapter}{Quick Reference}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
227

Uwe Schulzweida's avatar
Uwe Schulzweida committed
228
This appendix provide a brief listing of the Fortran language bindings of the {\CDI}  library routines:
Uwe Schulzweida's avatar
Uwe Schulzweida committed
229
230
231

\input{f_ref}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
232
233
\input{f_examples}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
234
235
\input{environment}

Uwe Schulzweida's avatar
Uwe Schulzweida committed
236

Uwe Schulzweida's avatar
Uwe Schulzweida committed
237
\clearpage
238
\ifpdfx
Uwe Schulzweida's avatar
Uwe Schulzweida committed
239
\phantomsection
Uwe Schulzweida's avatar
Uwe Schulzweida committed
240
\printindex
Uwe Schulzweida's avatar
Uwe Schulzweida committed
241
242
243
244
245
\fi
\addcontentsline{toc}{chapter}{\indexname}


\end{document}