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
e8c7e0fb
Commit
e8c7e0fb
authored
Apr 12, 2017
by
Uwe Schulzweida
Browse files
gribapiSetExtMode: don't change the scanning mode.
parent
8ccdb15b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
e8c7e0fb
...
...
@@ -2984,7 +2984,7 @@ void gribapiSetExtMode(grib_handle *gh, int gridID, long datasize, const double
if
(
gridtype
==
GRID_GENERIC
||
gridtype
==
GRID_LONLAT
||
gridtype
==
GRID_GAUSSIAN
||
gridtype
==
GRID_GAUSSIAN_REDUCED
||
gridtype
==
GRID_PROJECTION
)
{
//scanModeIN = gribapiGetScanningMode(gh);
#ifdef HIRLAM_EXTENSIONS
int
scanModeIN
=
gridInqScanningMode
(
gridID
);
if
(
cdiDebugExt
>=
100
)
...
...
@@ -2993,8 +2993,6 @@ void gribapiSetExtMode(grib_handle *gh, int gridID, long datasize, const double
Message
(
"(scanModeIN=%d; gridsize=%d"
,
scanModeIN
,
gridsize
);
}
/*
#ifdef HIRLAM_EXTENSIONS
if
(
cdiGribDataScanningMode
.
active
)
// allowed modes: <0, 64, 96>; Default is 64
{
int
iDim
=
gridInqXsize
(
gridID
);
...
...
@@ -3015,12 +3013,11 @@ void gribapiSetExtMode(grib_handle *gh, int gridID, long datasize, const double
verticallyFlipGridDefinitionWhenScanningModeChanged
(
gh
,
yfirst
,
ylast
,
yinc
);
}
else
#endif
{
if
(
cdiDebugExt
>=
100
)
Message
(
"Set GribDataScanningMode => (%d) based on used grid"
,
scanModeIN
);
gribapiSetScanningMode
(
gh
,
scanModeIN
);
}
*/
#endif
if
(
cdiGribChangeModeUvRelativeToGrid
.
active
)
{
...
...
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