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
e82d6e8b
Commit
e82d6e8b
authored
Oct 14, 2019
by
Uwe Schulzweida
Browse files
gribapi: use forecast reference time.
parent
8ea18489
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
e82d6e8b
...
...
@@ -1828,12 +1828,13 @@ int gribapiDefDateTimeRel(int editionNumber, grib_handle *gh, int64_t fdate, int
// printf(">>>>> tsteptype %d startStep %ld endStep %ld\n", tsteptype, startStep, endStep);
// Product Definition Template Number: defined in GRIB_API file 4.0.table
// point in time products:
// Product Definition Template Number: defined in GRIB_API file 4.0.table point in time products:
if
(
(
proDefTempNum
>=
0
&&
proDefTempNum
<=
7
)
||
proDefTempNum
==
55
||
proDefTempNum
==
40055
)
// Tile
startStep
=
endStep
;
if
(
endStep
<
startStep
)
return
status
;
if
(
editionNumber
>
1
)
GRIB_CHECK
(
my_grib_set_long
(
gh
,
"forecastTime"
,
startStep
),
0
);
if
(
editionNumber
==
1
&&
startStep
>
0
)
GRIB_CHECK
(
my_grib_set_long
(
gh
,
"startStep"
,
startStep
),
0
);
GRIB_CHECK
(
my_grib_set_long
(
gh
,
"endStep"
,
endStep
),
0
);
...
...
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