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
feecb32a
Commit
feecb32a
authored
Aug 09, 2020
by
Uwe Schulzweida
Browse files
gribapiDefStepUnits: switch of grib checks.
parent
90dc2222
Changes
1
Show whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
feecb32a
...
...
@@ -1700,21 +1700,21 @@ void gribapiDefStepUnits(int editionNumber, grib_handle *gh, int timeunit, int p
{
long
unitsOfTime
=
getUnitsOfTime
(
timeunit
);
GRIB_CHECK
(
my_
grib_set_long
(
gh
,
"stepUnits"
,
unitsOfTime
)
,
0
)
;
grib_set_long
(
gh
,
"stepUnits"
,
unitsOfTime
);
if
(
editionNumber
==
1
)
{
GRIB_CHECK
(
my_
grib_set_long
(
gh
,
"unitOfTimeRange"
,
unitsOfTime
)
,
0
)
;
grib_set_long
(
gh
,
"unitOfTimeRange"
,
unitsOfTime
);
}
else
if
(
grib2ProDefTempHasStatisticalDef
(
proDefTempNum
)
)
{
grib_set_long
(
gh
,
"indicatorOfUnitForTimeRange"
,
unitsOfTime
);
GRIB_CHECK
(
my_
grib_set_long
(
gh
,
"indicatorOfUnitOfTimeRange"
,
unitsOfTime
)
,
0
)
;
grib_set_long
(
gh
,
"indicatorOfUnitOfTimeRange"
,
unitsOfTime
);
}
else
{
// NOTE KNMI: HIRLAM model files LAMH_D11 are in grib1 and do NOT have key indicatorOfUnitForTimeRange
// Watch out for compatibility issues.
GRIB_CHECK
(
my_
grib_set_long
(
gh
,
"indicatorOfUnitOfTimeRange"
,
unitsOfTime
)
,
0
)
;
grib_set_long
(
gh
,
"indicatorOfUnitOfTimeRange"
,
unitsOfTime
);
}
}
}
...
...
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