Skip to content
GitLab
Menu
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
b9279d6b
Commit
b9279d6b
authored
Jan 18, 2011
by
Uwe Schulzweida
Browse files
added more resolutions for gaussgrid check
parent
9d2f06e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
b9279d6b
...
...
@@ -1719,8 +1719,10 @@ void cgribexDefGrid(int *isec1, int *isec2, int *isec4, int gridID)
xsize
=
gridInqXsize
(
gridID
);
ysize
=
gridInqYsize
(
gridID
);
if
(
(
ysize
==
32
||
ysize
==
48
||
ysize
==
64
||
ysize
==
96
||
ysize
==
160
)
&&
if
(
(
ysize
==
32
||
ysize
==
48
||
ysize
==
64
||
ysize
==
96
||
ysize
==
160
||
ysize
==
192
||
ysize
==
240
||
ysize
==
320
||
ysize
==
384
||
ysize
==
480
||
ysize
==
768
)
&&
(
xsize
==
2
*
ysize
||
xsize
==
1
)
)
{
gridtype
=
GRID_GAUSSIAN
;
...
...
src/stream_gribapi.c
View file @
b9279d6b
...
...
@@ -1947,8 +1947,10 @@ void gribapiDefGrid(grib_handle *gh, int gridID, int ljpeg)
xsize
=
gridInqXsize
(
gridID
);
ysize
=
gridInqYsize
(
gridID
);
if
(
(
ysize
==
32
||
ysize
==
48
||
ysize
==
64
||
ysize
==
96
||
ysize
==
160
)
&&
if
(
(
ysize
==
32
||
ysize
==
48
||
ysize
==
64
||
ysize
==
96
||
ysize
==
160
||
ysize
==
192
||
ysize
==
240
||
ysize
==
320
||
ysize
==
384
||
ysize
==
480
||
ysize
==
768
)
&&
(
xsize
==
2
*
ysize
||
xsize
==
1
)
)
{
gridtype
=
GRID_GAUSSIAN
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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