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
4a333b09
Commit
4a333b09
authored
Jan 04, 2018
by
Uwe Schulzweida
Browse files
GRIB2: use typeOfSecondFixedSurface if present.
parent
67dde6e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
4a333b09
...
...
@@ -4,6 +4,7 @@
2018-01-04 Uwe Schulzweida
* GRIB2: use typeOfSecondFixedSurface if present
* Added support for GRIB2 key tablesVersion/localTablesVersion
* Added CDI function cdiDefKeyInt()/cdiInqKeyInt()
...
...
src/stream_gribapi.c
View file @
4a333b09
...
...
@@ -2351,7 +2351,7 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int zaxisID, int levelI
}
long
grib_ltype
=
(
editionNumber
<=
1
)
?
zaxisTypeToGrib1ltype
(
zaxistype
)
:
zaxisTypeToGrib2ltype
(
zaxistype
);
//
long grib_ltype2 = (ltype != ltype2) ? ltype2 : grib_ltype;
long
grib_ltype2
=
(
ltype
!=
ltype2
)
?
ltype2
:
grib_ltype
;
switch
(
zaxistype
)
{
...
...
@@ -2415,7 +2415,7 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int zaxisID, int levelI
if
(
editionNumber
<=
1
)
grib1DefLevel
(
gh
,
gcinit
,
grib_ltype
,
lbounds
,
level
,
dlevel1
,
dlevel2
);
else
grib2DefLevel
(
gh
,
gcinit
,
grib_ltype
,
grib_ltype
,
lbounds
,
level
,
dlevel1
,
dlevel2
);
grib2DefLevel
(
gh
,
gcinit
,
grib_ltype
,
grib_ltype
2
,
lbounds
,
level
,
dlevel1
,
dlevel2
);
break
;
}
...
...
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