Skip to content
GitLab
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
1c143f86
Commit
1c143f86
authored
Aug 30, 2012
by
Uwe Schulzweida
Browse files
stream_cgribex: use varDefEnsembleInfo()
parent
7e151a1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
1c143f86
...
...
@@ -51,9 +51,7 @@ int cgribexGetGridType(int *isec2)
return
(
gridtype
);
}
#endif
#if defined (HAVE_LIBCGRIBEX)
static
int
cgribexGetIsRotated
(
int
*
isec2
)
{
...
...
@@ -66,9 +64,7 @@ int cgribexGetIsRotated(int *isec2)
return
(
isRotated
);
}
#endif
#if defined (HAVE_LIBCGRIBEX)
static
int
cgribexGetZaxisHasBounds
(
int
grb_ltype
)
{
...
...
@@ -87,9 +83,7 @@ int cgribexGetZaxisHasBounds(int grb_ltype)
return
(
lbounds
);
}
#endif
#if defined (HAVE_LIBCGRIBEX)
static
int
cgribexGetTimeUnit
(
int
*
isec1
)
{
...
...
@@ -115,9 +109,7 @@ int cgribexGetTimeUnit(int *isec1)
return
(
timeunit
);
}
#endif
#if defined (HAVE_LIBCGRIBEX)
static
int
cgribexTimeIsFC
(
int
*
isec1
)
{
...
...
@@ -128,9 +120,7 @@ int cgribexTimeIsFC(int *isec1)
return
(
isFC
);
}
#endif
#if defined (HAVE_LIBCGRIBEX)
static
int
cgribexGetTsteptype
(
int
timerange
)
{
...
...
@@ -156,9 +146,7 @@ int cgribexGetTsteptype(int timerange)
return
(
tsteptype
);
}
#endif
#if defined (HAVE_LIBCGRIBEX)
static
void
cgribexGetGrid
(
stream_t
*
streamptr
,
int
*
isec2
,
int
*
isec4
,
grid_t
*
grid
)
{
...
...
@@ -346,9 +334,7 @@ void cgribexGetGrid(stream_t *streamptr, int *isec2, int *isec4, grid_t *grid)
grid
->
yvals
=
NULL
;
grid
->
type
=
gridtype
;
}
#endif
#if defined (HAVE_LIBCGRIBEX)
static
void
cgribexAddRecord
(
int
streamID
,
int
param
,
int
*
isec1
,
int
*
isec2
,
double
*
fsec2
,
double
*
fsec3
,
int
*
isec4
,
long
recsize
,
off_t
position
,
int
datatype
,
int
comptype
,
int
lmv
)
...
...
@@ -415,6 +401,9 @@ void cgribexAddRecord(int streamID, int param, int *isec1, int *isec2, double *f
varDefCompType
(
varID
,
comptype
);
if
(
isec1
[
36
]
)
varDefEnsembleInfo
(
varID
,
isec1
[
37
],
isec1
[
38
],
isec1
[
39
]);
if
(
lmv
)
varDefMissval
(
varID
,
FSEC3_MissVal
);
if
(
varInqInst
(
varID
)
==
CDI_UNDEFID
)
...
...
@@ -455,9 +444,7 @@ void cgribexAddRecord(int streamID, int param, int *isec1, int *isec2, double *f
Message
(
"varID = %d param = %d zaxistype = %d gridID = %d levelID = %d"
,
varID
,
param
,
zaxistype
,
gridID
,
levelID
);
}
#endif
#if defined (HAVE_LIBCGRIBEX)
static
void
MCH_get_undef
(
int
*
isec1
,
double
*
undef_pds
,
double
*
undef_eps
)
{
...
...
@@ -482,9 +469,7 @@ void MCH_get_undef(int *isec1, double *undef_pds, double *undef_eps)
}
}
}
#endif
#if defined (HAVE_LIBCGRIBEX)
static
void
cgribexDecodeHeader
(
int
*
isec0
,
int
*
isec1
,
int
*
isec2
,
double
*
fsec2
,
int
*
isec3
,
double
*
fsec3
,
int
*
isec4
,
double
*
fsec4
,
...
...
@@ -1420,7 +1405,6 @@ int cgribexDecode(unsigned char *gribbuffer, int gribsize, double *data, int gri
return
(
status
);
}
#if defined (HAVE_LIBCGRIBEX)
static
void
cgribexDefInstitut
(
int
*
isec1
,
int
vlistID
,
int
varID
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment