Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libcdi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mpim-sw
libcdi
Commits
feecb32a
Commit
feecb32a
authored
Aug 09, 2020
by
Uwe Schulzweida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gribapiDefStepUnits: switch of grib checks.
parent
90dc2222
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/stream_gribapi.c
src/stream_gribapi.c
+4
-4
No files found.
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
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