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
4ec4478d
Commit
4ec4478d
authored
May 28, 2013
by
Uwe Schulzweida
Browse files
gribapiDefLevel: cleanup
parent
6ce2ca1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_gribapi.c
View file @
4ec4478d
...
...
@@ -2784,16 +2784,15 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int param, int zaxisID,
getLevelFactor
(
dlevel1
,
&
factor
,
&
scaled_level
);
gribapiDefLevelType
(
gh
,
gcinit
,
"typeOfFirstFixedSurface"
,
GRIB2_LTYPE_ISOBARIC
);
GRIB_CHECK
(
grib_set_long
(
gh
,
"scaleFactorOfFirstFixedSurface"
,
factor
),
0
);
GRIB_CHECK
(
grib_set_
double
(
gh
,
"scaledValueOfFirstFixedSurface"
,
scaled_level
),
0
);
GRIB_CHECK
(
grib_set_
long
(
gh
,
"scaledValueOfFirstFixedSurface"
,
scaled_level
),
0
);
/*
printf("level1 %g level2 %g\n", dlevel1, dlevel2);
if ( lbounds )
{
getLevelFactor(dlevel2, &factor, &scaled_level);
printf("level1 %g level2 %g %ld %ld\n", dlevel1, dlevel2, factor, scaled_level);
gribapiDefLevelType(gh, gcinit, "typeOfSecondFixedSurface", GRIB2_LTYPE_ISOBARIC);
GRIB_CHECK(grib_set_long(gh, "scaleFactorOfSecondFixedSurface", factor), 0);
GRIB_CHECK(grib_set_
double
(gh, "scaledValueOfSecondFixedSurface", scaled_level), 0);
GRIB_CHECK(grib_set_
long
(gh, "scaledValueOfSecondFixedSurface", scaled_level), 0);
}
*/
}
...
...
@@ -2860,7 +2859,7 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int param, int zaxisID,
getLevelFactor
(
dlevel1
,
&
factor
,
&
scaled_level
);
gribapiDefLevelType
(
gh
,
gcinit
,
"typeOfFirstFixedSurface"
,
GRIB2_LTYPE_LANDDEPTH
);
GRIB_CHECK
(
grib_set_long
(
gh
,
"scaleFactorOfFirstFixedSurface"
,
factor
),
0
);
GRIB_CHECK
(
grib_set_
double
(
gh
,
"scaledValueOfFirstFixedSurface"
,
scaled_level
),
0
);
GRIB_CHECK
(
grib_set_
long
(
gh
,
"scaledValueOfFirstFixedSurface"
,
scaled_level
),
0
);
if
(
lbounds
)
{
...
...
@@ -2868,7 +2867,7 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int param, int zaxisID,
getLevelFactor
(
dlevel2
,
&
factor
,
&
scaled_level
);
gribapiDefLevelType
(
gh
,
gcinit
,
"typeOfSecondFixedSurface"
,
GRIB2_LTYPE_LANDDEPTH
);
GRIB_CHECK
(
grib_set_long
(
gh
,
"scaleFactorOfSecondFixedSurface"
,
factor
),
0
);
GRIB_CHECK
(
grib_set_
double
(
gh
,
"scaledValueOfSecondFixedSurface"
,
scaled_level
),
0
);
GRIB_CHECK
(
grib_set_
long
(
gh
,
"scaledValueOfSecondFixedSurface"
,
scaled_level
),
0
);
}
}
...
...
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