Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
e5999d13
Commit
e5999d13
authored
Oct 07, 2014
by
Uwe Schulzweida
Browse files
These files are directly used in the documentation. Please do not change these files!
parent
74f547bc
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitattributes
View file @
e5999d13
...
...
@@ -104,6 +104,7 @@ doc/tex/vlist.tex -text
doc/tex/zaxis.tex -text
examples/Makefile.am -text
examples/Makefile.in -text
examples/README -text
examples/cdi_copy.c -text
examples/cdi_copy_f.f -text
examples/cdi_copy_file.c -text
...
...
examples/README
0 → 100644
View file @
e5999d13
The following C Source files
cdi_read.c
cdi_write.c
cdi_copy.c
are directly used in the documentation.
!!! Please do not change these files !!!
examples/cdi_copy.c
View file @
e5999d13
...
...
@@ -9,7 +9,7 @@ int nts = 3; // Number of time steps
int
main
(
void
)
{
int
taxisID
,
vlistID1
,
vlistID2
,
varID1
,
varID2
,
streamID1
,
streamID2
,
tsID
;
int
nmiss
;
int
nmiss
,
vdate
,
vtime
;
double
var1
[
nlon
*
nlat
];
double
var2
[
nlon
*
nlat
*
nlev
];
...
...
@@ -51,8 +51,8 @@ int main(void)
streamInqTimestep
(
streamID1
,
tsID
);
// Get the verification date and time
/* int
vdate =
*/
taxisInqVdate
(
taxisID
);
/* int
vtime =
*/
taxisInqVtime
(
taxisID
);
vdate
=
taxisInqVdate
(
taxisID
);
vtime
=
t
taxisInqVtime
(
taxisID
);
// Define the output time step
streamDefTimestep
(
streamID2
,
tsID
);
...
...
examples/cdi_read.c
View file @
e5999d13
...
...
@@ -9,7 +9,7 @@ int nts = 3; // Number of time steps
int
main
(
void
)
{
int
taxisID
,
vlistID
,
varID1
,
varID2
,
streamID
,
tsID
;
int
nmiss
;
int
nmiss
,
vdate
,
vtime
;
double
var1
[
nlon
*
nlat
];
double
var2
[
nlon
*
nlat
*
nlev
];
...
...
@@ -39,8 +39,8 @@ int main(void)
streamInqTimestep
(
streamID
,
tsID
);
// Get the verification date and time
/* int
vdate =
*/
taxisInqVdate
(
taxisID
);
/* int
vtime =
*/
taxisInqVtime
(
taxisID
);
vdate
=
taxisInqVdate
(
taxisID
);
vtime
=
taxisInqVtime
(
taxisID
);
// Read var1 and var2
streamReadVar
(
streamID
,
varID1
,
var1
,
&
nmiss
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment