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
32acaa0c
Commit
32acaa0c
authored
Dec 09, 2010
by
Uwe Schulzweida
Browse files
cgribexDefGrid: convert generic grids with gridsize=1 to lonlat
parent
3ea99c42
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
32acaa0c
...
...
@@ -1709,8 +1709,9 @@ void cgribexDefGrid(int *isec1, int *isec2, int *isec4, int gridID)
if
(
gridtype
==
GRID_GENERIC
)
{
int
xsize
,
ysize
;
int
xsize
,
ysize
,
gridsize
;
gridsize
=
gridInqSize
(
gridID
);
xsize
=
gridInqXsize
(
gridID
);
ysize
=
gridInqYsize
(
gridID
);
...
...
@@ -1721,7 +1722,7 @@ void cgribexDefGrid(int *isec1, int *isec2, int *isec4, int gridID)
gridtype
=
GRID_GAUSSIAN
;
gridChangeType
(
gridID
,
gridtype
);
}
else
if
(
(
xsize
==
1
&&
ysize
==
1
)
||
(
xsize
==
0
&&
ysize
==
0
)
)
else
if
(
gridsize
==
1
)
{
gridtype
=
GRID_LONLAT
;
gridChangeType
(
gridID
,
gridtype
);
...
...
src/stream_gribapi.c
View file @
32acaa0c
...
...
@@ -1927,8 +1927,9 @@ void gribapiDefGrid(grib_handle *gh, int gridID, int ljpeg)
if
(
gridtype
==
GRID_GENERIC
)
{
int
xsize
,
ysize
;
int
xsize
,
ysize
,
gridsize
;
gridsize
=
gridInqSize
(
gridID
);
xsize
=
gridInqXsize
(
gridID
);
ysize
=
gridInqYsize
(
gridID
);
...
...
@@ -1939,7 +1940,7 @@ void gribapiDefGrid(grib_handle *gh, int gridID, int ljpeg)
gridtype
=
GRID_GAUSSIAN
;
gridChangeType
(
gridID
,
gridtype
);
}
else
if
(
(
xsize
==
1
&&
ysize
==
1
)
||
(
xsize
==
0
&&
ysize
==
0
)
)
else
if
(
gridsize
==
1
)
{
gridtype
=
GRID_LONLAT
;
gridChangeType
(
gridID
,
gridtype
);
...
...
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