Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
3bf9a83b
Commit
3bf9a83b
authored
Feb 20, 2019
by
Uwe Schulzweida
Browse files
Removed unused function streamGrbChangeModeUvRelativeToGrid().
parent
90e520b8
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
3bf9a83b
...
...
@@ -1820,17 +1820,6 @@ void cgribexDefGrid(int *isec1, int *isec2, double *fsec2, int *isec4, int gridI
break
;
}
}
if
(
cdiGribChangeModeUvRelativeToGrid
.
active
)
{
// this will overrule/change the UvRelativeToGrid flag;
// typically when the wind is rotated with respect to north pole
const
bool
uvRelativeToGrid
=
gribbyte_get_bit
(
ISEC2_ResFlag
,
5
);
if
(
uvRelativeToGrid
&&
!
cdiGribChangeModeUvRelativeToGrid
.
mode
)
gribbyte_clear_bit
(
&
ISEC2_ResFlag
,
5
);
else
if
(
!
uvRelativeToGrid
&&
cdiGribChangeModeUvRelativeToGrid
.
mode
)
gribbyte_set_bit
(
&
ISEC2_ResFlag
,
5
);
}
}
static
...
...
src/stream_grb.c
View file @
3bf9a83b
...
...
@@ -64,15 +64,6 @@ void streamGrbChangeParameterIdentification(int code, int ltype, int lev)
cdiGribChangeParameterID
.
lev
=
lev
;
}
struct
cdiGribModeChange
cdiGribChangeModeUvRelativeToGrid
;
// Used only for CDO module WindTrans
void
streamGrbChangeModeUvRelativeToGrid
(
int
mode
)
{
cdiGribChangeModeUvRelativeToGrid
.
active
=
true
;
cdiGribChangeModeUvRelativeToGrid
.
mode
=
(
mode
>
0
);
}
struct
cdiGribScanModeChange
cdiGribDataScanningMode
;
void
streamGrbDefDataScanningMode
(
int
scanmode
)
...
...
src/stream_grb.h
View file @
3bf9a83b
...
...
@@ -39,12 +39,6 @@ struct cdiGribParamChange
bool
active
;
};
struct
cdiGribModeChange
{
bool
mode
;
bool
active
;
};
struct
cdiGribScanModeChange
{
int
value
;
...
...
@@ -52,12 +46,10 @@ struct cdiGribScanModeChange
};
extern
struct
cdiGribParamChange
cdiGribChangeParameterID
;
extern
struct
cdiGribModeChange
cdiGribChangeModeUvRelativeToGrid
;
extern
struct
cdiGribScanModeChange
cdiGribDataScanningMode
;
// Used in CDO
void
streamGrbChangeParameterIdentification
(
int
code
,
int
ltype
,
int
lev
);
void
streamGrbChangeModeUvRelativeToGrid
(
int
mode
);
void
streamGrbDefDataScanningMode
(
int
scanmode
);
int
streamGrbInqDataScanningMode
(
void
);
...
...
src/stream_gribapi.c
View file @
3bf9a83b
...
...
@@ -2980,14 +2980,6 @@ void gribapiSetExtMode(grib_handle *gh, int gridID, size_t datasize, const doubl
gribapiSetScanningMode
(
gh
,
scanModeIN
);
}
#endif
if
(
cdiGribChangeModeUvRelativeToGrid
.
active
)
{
// this will overrule/change the UvRelativeToGrid flag;
// typically when the wind is rotated with respect to north pole
if
(
cdiDebugExt
>=
100
)
Message
(
"Set ModeUvRelativeToGrid =>%d ( note grid has: %d)"
,
cdiGribChangeModeUvRelativeToGrid
.
mode
,
gridInqUvRelativeToGrid
(
gridID
));
GRIB_CHECK
(
my_grib_set_long
(
gh
,
"uvRelativeToGrid"
,
(
long
)
cdiGribChangeModeUvRelativeToGrid
.
mode
),
0
);
}
}
}
...
...
Write
Preview
Markdown
is supported
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