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
c424a47c
Commit
c424a47c
authored
Nov 16, 2008
by
Uwe Schulzweida
Browse files
add support of GRIB level type MEANSEA
parent
470f5358
Changes
5
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c424a47c
2008-12-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* add support of GRIB level type MEANSEA
* cdf_inq_contents: check zaxis type "depth_blow_sea/land" (bug fix)
2008-11-13 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
...
...
src/cdi.h
View file @
c424a47c
...
...
@@ -124,6 +124,7 @@ extern "C" {
#define ZAXIS_TRAJECTORY 9
#define ZAXIS_ALTITUDE 10
#define ZAXIS_SIGMA 11
#define ZAXIS_MEANSEA 12
/* TAXIS types */
...
...
src/stream_cdf.c
View file @
c424a47c
...
...
@@ -2033,6 +2033,7 @@ void cdfDefZaxis(int streamID, int zaxisID)
type
=
zaxisInqType
(
zaxisID
);
if
(
dimlen
==
1
&&
type
==
ZAXIS_SURFACE
)
return
;
if
(
dimlen
==
1
&&
type
==
ZAXIS_MEANSEA
)
return
;
zaxisInqName
(
zaxisID
,
axisname
);
/*
...
...
src/stream_grb.c
View file @
c424a47c
...
...
@@ -342,6 +342,11 @@ int gribGetZaxisType(int grb_ltype)
zaxistype
=
ZAXIS_SURFACE
;
break
;
}
case
LTYPE_MEANSEA
:
{
zaxistype
=
ZAXIS_MEANSEA
;
break
;
}
case
LTYPE_99
:
case
LTYPE_ISOBARIC
:
{
...
...
@@ -2029,6 +2034,13 @@ void grbDefLevel(int *isec1, int *isec2, double *fsec2, int zaxisID, int levelID
ISEC1_Level2
=
0
;
break
;
}
case
ZAXIS_MEANSEA
:
{
ISEC1_LevelType
=
LTYPE_MEANSEA
;
ISEC1_Level1
=
(
int
)
zaxisInqLevel
(
zaxisID
,
levelID
);
ISEC1_Level2
=
0
;
break
;
}
case
ZAXIS_HYBRID
:
case
ZAXIS_HYBRID_HALF
:
{
...
...
src/zaxis.c
View file @
c424a47c
...
...
@@ -30,6 +30,7 @@ ZaxistypeEntry[] = {
{
"lev"
,
"trajectory"
,
""
},
{
"alt"
,
"altitude"
,
"m"
},
{
"lev"
,
"sigma"
,
"level"
},
{
"lev"
,
"meansea"
,
"level"
},
};
static
int
CDI_MaxZaxistype
=
sizeof
(
ZaxistypeEntry
)
/
sizeof
(
ZaxistypeEntry
[
0
]);
...
...
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