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
65d16d27
Commit
65d16d27
authored
Jan 27, 2012
by
Luis Kornblueh
Browse files
Corrected error of defining NV in grib2 (changed from 2 to 3).
parent
b019b18c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
65d16d27
...
...
@@ -664,7 +664,7 @@ void gribapiAddRecord(int streamID, int param, grib_handle *gh,
long
nlev
,
nvgrid
;
GRIB_CHECK
(
grib_get_long
(
gh
,
"NV"
,
&
lpar
),
0
);
if
(
lpar
!=
2
)
if
(
lpar
!=
3
)
{
fprintf
(
stderr
,
"Warning ...
\n
"
);
}
...
...
@@ -2629,7 +2629,7 @@ void gribapiDefLevel(grib_handle *gh, int param, int zaxisID, int levelID)
GRIB_CHECK
(
grib_set_long
(
gh
,
"typeOfFirstFixedSurface"
,
GRIB2_LTYPE_REFERENCE
),
0
);
GRIB_CHECK
(
grib_set_double
(
gh
,
"level"
,
level
),
0
);
GRIB_CHECK
(
grib_set_long
(
gh
,
"NV"
,
2
),
0
);
GRIB_CHECK
(
grib_set_long
(
gh
,
"NV"
,
3
),
0
);
GRIB_CHECK
(
grib_set_long
(
gh
,
"nlev"
,
(
long
)
zaxisInqSize
(
zaxisID
)),
0
);
GRIB_CHECK
(
grib_set_long
(
gh
,
"numberOfVGridUsed"
,
reference
),
0
);
len
=
16
;
...
...
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