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
c838d7d0
Commit
c838d7d0
authored
Dec 20, 2016
by
Uwe Schulzweida
Browse files
cgribexlib update.
parent
ec952899
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cgribex.h
View file @
c838d7d0
...
...
@@ -16,6 +16,7 @@
#define GRIB1_LTYPE_ATMOSPHERE 10
#define GRIB1_LTYPE_99 99
#define GRIB1_LTYPE_ISOBARIC 100
#define GRIB1_LTYPE_ISOBARIC_PA 210
#define GRIB1_LTYPE_MEANSEA 102
#define GRIB1_LTYPE_ALTITUDE 103
#define GRIB1_LTYPE_HEIGHT 105
...
...
@@ -32,7 +33,6 @@
#define GRIB1_LTYPE_SEDIMENT_BOTTOM_TA 164
/* Bottom Of Thermally Active Sediment Layer */
#define GRIB1_LTYPE_SEDIMENT_BOTTOM_TW 165
/* Bottom Of Sediment Layer Penetrated By Thermal Wave */
#define GRIB1_LTYPE_MIX_LAYER 166
/* Mixing Layer */
#define GRIB1_LTYPE_99_MARGIN 1000
/* GRIB1 Data representation type (Grid Type) [Table 6] */
#define GRIB1_GTYPE_LATLON 0
/* latitude/longitude */
...
...
src/cgribexlib.c
View file @
c838d7d0
/* Automatically generated by m214003 at 2016-1
1-05
, do not edit */
/* Automatically generated by m214003 at 2016-1
2-20
, do not edit */
/* CGRIBEXLIB_VERSION="1.7.6" */
...
...
@@ -8623,19 +8623,20 @@ int decodePDS(unsigned char *pds, int *isec0, int *isec1)
ISEC1_LevelType
=
PDS_LevelType
;
if
(
(
ISEC1_LevelType
!=
20
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_99
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ISOBARIC
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ALTITUDE
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_HEIGHT
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_SIGMA
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_HYBRID
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_LANDDEPTH
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ISENTROPIC
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_99
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ISOBARIC
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ISOBARIC_PA
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ALTITUDE
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_HEIGHT
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_SIGMA
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_HYBRID
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_LANDDEPTH
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ISENTROPIC
)
&&
(
ISEC1_LevelType
!=
115
)
&&
(
ISEC1_LevelType
!=
117
)
&&
(
ISEC1_LevelType
!=
125
)
&&
(
ISEC1_LevelType
!=
127
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_SEADEPTH
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_SEADEPTH
)
&&
(
ISEC1_LevelType
!=
210
)
)
{
ISEC1_Level1
=
PDS_Level1
;
...
...
@@ -11304,14 +11305,15 @@ void encodePDS(GRIBPACK *lpds, long pdsLen, int *isec1)
Put1Byte
(
ISEC1_Parameter
);
/* 8 Parameter Code */
Put1Byte
(
ISEC1_LevelType
);
/* 9 Type of level */
if
(
(
ISEC1_LevelType
!=
20
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_99
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ISOBARIC
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ALTITUDE
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_HEIGHT
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_SIGMA
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_HYBRID
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_LANDDEPTH
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ISENTROPIC
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_99
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ISOBARIC
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ISOBARIC_PA
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ALTITUDE
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_HEIGHT
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_SIGMA
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_HYBRID
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_LANDDEPTH
)
&&
(
ISEC1_LevelType
!=
GRIB1_LTYPE_ISENTROPIC
)
&&
(
ISEC1_LevelType
!=
115
)
&&
(
ISEC1_LevelType
!=
117
)
&&
(
ISEC1_LevelType
!=
125
)
&&
...
...
@@ -13709,7 +13711,7 @@ void encode_dummy(void)
(
void
)
encode_array_unrolled_double
(
0
,
0
,
0
,
NULL
,
NULL
,
0
,
0
,
NULL
);
(
void
)
encode_array_unrolled_float
(
0
,
0
,
0
,
NULL
,
NULL
,
0
,
0
,
NULL
);
}
static
const
char
grb_libvers
[]
=
"1.7.6"
" of ""
Nov 5
2016"" ""1
1
:5
9:02
"
;
static
const
char
grb_libvers
[]
=
"1.7.6"
" of ""
Dec 20
2016"" ""1
9
:5
5:24
"
;
const
char
*
cgribexLibraryVersion
(
void
)
{
...
...
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