Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
3f3915f0
Commit
3f3915f0
authored
5 years ago
by
Oliver Heidmann
Browse files
Options
Downloads
Patches
Plain Diff
added esdm include and switch bewteen netcdf and esdm
parent
b78ca3bf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cdf_int.h
+16
-10
16 additions, 10 deletions
src/cdf_int.h
with
16 additions
and
10 deletions
src/cdf_int.h
+
16
−
10
View file @
3f3915f0
...
...
@@ -3,7 +3,13 @@
#ifdef HAVE_LIBNETCDF
#ifdef HAVE_LIBESDM
#include
<esdm.h>
#define cdi_cdf_type esdm_type
#else
#include
<netcdf.h>
#define cdi_cdf_type nc_type
#endif
void
cdf_create
(
const
char
*
path
,
int
cmode
,
int
*
idp
);
int
cdf_open
(
const
char
*
path
,
int
omode
,
int
*
idp
);
...
...
@@ -21,13 +27,13 @@ void cdf_inq_dimid (int ncid, const char *name, int *dimidp);
void
cdf_inq_dim
(
int
ncid
,
int
dimid
,
char
*
name
,
size_t
*
lengthp
);
void
cdf_inq_dimname
(
int
ncid
,
int
dimid
,
char
*
name
);
void
cdf_inq_dimlen
(
int
ncid
,
int
dimid
,
size_t
*
lengthp
);
void
cdf_def_var
(
int
ncid
,
const
char
*
name
,
n
c_type
xtype
,
int
ndims
,
const
int
dimids
[],
int
*
varidp
);
void
cdf_def_var_serial
(
int
ncid
,
const
char
*
name
,
n
c_type
xtype
,
int
ndims
,
const
int
dimids
[],
int
*
varidp
);
void
cdf_def_var
(
int
ncid
,
const
char
*
name
,
c
di_cdf
_type
xtype
,
int
ndims
,
const
int
dimids
[],
int
*
varidp
);
void
cdf_def_var_serial
(
int
ncid
,
const
char
*
name
,
c
di_cdf
_type
xtype
,
int
ndims
,
const
int
dimids
[],
int
*
varidp
);
void
cdf_inq_varid
(
int
ncid
,
const
char
*
name
,
int
*
varidp
);
void
cdf_inq_nvars
(
int
ncid
,
int
*
nvarsp
);
void
cdf_inq_var
(
int
ncid
,
int
varid
,
char
*
name
,
n
c_type
*
xtypep
,
int
*
ndimsp
,
int
dimids
[],
int
*
nattsp
);
void
cdf_inq_var
(
int
ncid
,
int
varid
,
char
*
name
,
c
di_cdf
_type
*
xtypep
,
int
*
ndimsp
,
int
dimids
[],
int
*
nattsp
);
void
cdf_inq_varname
(
int
ncid
,
int
varid
,
char
*
name
);
void
cdf_inq_vartype
(
int
ncid
,
int
varid
,
n
c_type
*
xtypep
);
void
cdf_inq_vartype
(
int
ncid
,
int
varid
,
c
di_cdf
_type
*
xtypep
);
void
cdf_inq_varndims
(
int
ncid
,
int
varid
,
int
*
ndimsp
);
void
cdf_inq_vardimid
(
int
ncid
,
int
varid
,
int
dimids
[]);
void
cdf_inq_varnatts
(
int
ncid
,
int
varid
,
int
*
nattsp
);
...
...
@@ -68,9 +74,9 @@ void cdf_get_vara_int(int ncid, int varid, const size_t start[],
const
size_t
count
[],
int
*
dp
);
void
cdf_put_att_text
(
int
ncid
,
int
varid
,
const
char
*
name
,
size_t
len
,
const
char
*
tp
);
void
cdf_put_att_int
(
int
ncid
,
int
varid
,
const
char
*
name
,
n
c_type
xtype
,
size_t
len
,
const
int
*
ip
);
void
cdf_put_att_float
(
int
ncid
,
int
varid
,
const
char
*
name
,
n
c_type
xtype
,
size_t
len
,
const
float
*
dp
);
void
cdf_put_att_double
(
int
ncid
,
int
varid
,
const
char
*
name
,
n
c_type
xtype
,
size_t
len
,
const
double
*
dp
);
void
cdf_put_att_int
(
int
ncid
,
int
varid
,
const
char
*
name
,
c
di_cdf
_type
xtype
,
size_t
len
,
const
int
*
ip
);
void
cdf_put_att_float
(
int
ncid
,
int
varid
,
const
char
*
name
,
c
di_cdf
_type
xtype
,
size_t
len
,
const
float
*
dp
);
void
cdf_put_att_double
(
int
ncid
,
int
varid
,
const
char
*
name
,
c
di_cdf
_type
xtype
,
size_t
len
,
const
double
*
dp
);
void
cdf_get_att_string
(
int
ncid
,
int
varid
,
const
char
*
name
,
char
**
tp
);
void
cdf_get_att_text
(
int
ncid
,
int
varid
,
const
char
*
name
,
char
*
tp
);
...
...
@@ -78,8 +84,8 @@ void cdf_get_att_int (int ncid, int varid, const char *name, int *ip);
void
cdf_get_att_long
(
int
ncid
,
int
varid
,
const
char
*
name
,
long
*
ip
);
void
cdf_get_att_double
(
int
ncid
,
int
varid
,
const
char
*
name
,
double
*
dp
);
void
cdf_inq_att
(
int
ncid
,
int
varid
,
const
char
*
name
,
n
c_type
*
xtypep
,
size_t
*
lenp
);
void
cdf_inq_atttype
(
int
ncid
,
int
varid
,
const
char
*
name
,
n
c_type
*
xtypep
);
void
cdf_inq_att
(
int
ncid
,
int
varid
,
const
char
*
name
,
c
di_cdf
_type
*
xtypep
,
size_t
*
lenp
);
void
cdf_inq_atttype
(
int
ncid
,
int
varid
,
const
char
*
name
,
c
di_cdf
_type
*
xtypep
);
void
cdf_inq_attlen
(
int
ncid
,
int
varid
,
const
char
*
name
,
size_t
*
lenp
);
void
cdf_inq_attname
(
int
ncid
,
int
varid
,
int
attnum
,
char
*
name
);
void
cdf_inq_attid
(
int
ncid
,
int
varid
,
const
char
*
name
,
int
*
attnump
);
...
...
@@ -91,7 +97,7 @@ typedef int (*cdi_nc__create_funcp)(const char *path, int cmode,
int
*
ncidp
);
typedef
void
(
*
cdi_cdf_def_var_funcp
)(
int
ncid
,
const
char
*
name
,
n
c_type
xtype
,
int
ndims
,
c
di_cdf
_type
xtype
,
int
ndims
,
const
int
dimids
[],
int
*
varidp
);
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment