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
619589eb
Commit
619589eb
authored
Sep 05, 2018
by
Uwe Schulzweida
Browse files
GRIB2: correct longitudeOfFirstGridPoint if necessary (bug fix).
parent
365db31d
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
619589eb
...
...
@@ -2,6 +2,10 @@
* Version 1.9.6 released
2018-09-05 Uwe Schulzweida
* GRIB2: correct longitudeOfFirstGridPoint if necessary (bug fix)
2018-09-04 Uwe Schulzweida
* CDI_reduce_dim: wrong result when reduce time dimension (bug fix)
...
...
src/gribapi_utilities.c
View file @
619589eb
...
...
@@ -585,7 +585,7 @@ void gribapiGetGrid(grib_handle *gh, grid_t *grid)
{
if
(
grid
->
x
.
size
>
1
)
{
if
(
editionNumber
<=
1
)
//
if ( editionNumber <= 1 )
{
if
(
grid
->
x
.
last
<
grid
->
x
.
first
)
{
...
...
@@ -596,7 +596,7 @@ void gribapiGetGrid(grib_handle *gh, grid_t *grid)
}
// correct xinc if necessary
if
(
IS_EQUAL
(
grid
->
x
.
first
,
0
)
&&
grid
->
x
.
last
>
354
)
if
(
IS_EQUAL
(
grid
->
x
.
first
,
0
)
&&
grid
->
x
.
last
>
354
&&
grid
->
x
.
last
<
360
)
{
double
xinc
=
360
.
/
grid
->
x
.
size
;
if
(
fabs
(
grid
->
x
.
inc
-
xinc
)
>
0
.
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