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
16dc60bc
Commit
16dc60bc
authored
Dec 14, 2009
by
Uwe Schulzweida
Browse files
cgribexlib update
parent
4fd7ec43
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/cgribexlib.c
View file @
16dc60bc
/* Automatically generated by m214003 at 2009-12-1
1
, do not edit */
/* Automatically generated by m214003 at 2009-12-1
4
, do not edit */
/* CGRIBEXLIB_VERSION="1.4.1" */
...
...
@@ -103,6 +103,22 @@
double
intpow2
(
int
x
);
/* CDI converter routines */
/* param format: DDDCCCNNN */
void
cdiDecodeParam
(
int
param
,
int
*
dis
,
int
*
cat
,
int
*
num
);
int
cdiEncodeParam
(
int
dis
,
int
cat
,
int
num
);
/* date format: YYYYMMDD */
/* time format: hhmmss */
void
cdiDecodeDate
(
int
date
,
int
*
year
,
int
*
month
,
int
*
day
);
int
cdiEncodeDate
(
int
year
,
int
month
,
int
day
);
void
cdiDecodeTime
(
int
time
,
int
*
hour
,
int
*
minute
,
int
*
second
);
int
cdiEncodeTime
(
int
hour
,
int
minute
,
int
second
);
extern
FILE
*
grprsm
;
...
...
@@ -2792,7 +2808,7 @@ void encodeES(GRIBPACK *lGrib, long *gribLen)
if
(
z
>
16777216
)
{
fprintf
(
stderr
,
"Abort: GRIB record to large (max = 16777216)!
\n
"
);
fprintf
(
stderr
,
"Abort: GRIB record to
o
large (max = 16777216)!
\n
"
);
exit
(
1
);
}
...
...
@@ -8889,7 +8905,7 @@ int gribUnzip(unsigned char *dbuf, long dbufsize, unsigned char *sbuf, long sbu
return
(
gribLen
);
}
static
const
char
grb_libvers
[]
=
"1.4.1"
" of ""Dec 1
1
2009"" ""1
5:11:13
"
;
static
const
char
grb_libvers
[]
=
"1.4.1"
" of ""Dec 1
4
2009"" ""1
7:56:05
"
;
const
char
*
cgribexLibraryVersion
(
void
)
{
...
...
src/stream_cgribex.c
View file @
16dc60bc
...
...
@@ -1771,7 +1771,7 @@ void cgribexDefLevel(int *isec1, int *isec2, double *fsec2, int zaxisID, int lev
ISEC2_NumVCP
=
0
;
if
(
vct_warning
)
{
Warning
(
func
,
"VCT size of %d is to large (maximum is 255). Set to 0!"
,
vctsize
);
Warning
(
func
,
"VCT size of %d is to
o
large (maximum is 255). Set to 0!"
,
vctsize
);
vct_warning
=
0
;
}
}
...
...
src/stream_gribapi.c
View file @
16dc60bc
...
...
@@ -2108,7 +2108,7 @@ size_t gribapiEncode(int varID, int levelID, int vlistID, int gridID, int zaxisI
//recsize += 512; /* add some space for possible filling */
if
(
recsize
>
gribbuffersize
)
Error
(
func
,
"Internal problem: GRIB buffer to small (size = %ld, needed = %ld"
,
gribbuffersize
,
recsize
);
Error
(
func
,
"Internal problem: GRIB buffer to
o
small (size = %ld, needed = %ld"
,
gribbuffersize
,
recsize
);
/* get a copy of the coded message */
GRIB_CHECK
(
grib_get_message_copy
(
gh
,
gribbuffer
,
&
recsize
),
0
);
...
...
src/stream_ieg.c
View file @
16dc60bc
...
...
@@ -378,7 +378,7 @@ void iegDefLevel(int *pdb, int *gdb, double *vct, int zaxisID, int levelID)
/* IEG_G_NumVCP(gdb) = 0; */
if
(
vct_warning
)
{
Warning
(
func
,
"VCT size of %d is to large (maximum is 100). Set to 0!"
,
vctsize
);
Warning
(
func
,
"VCT size of %d is to
o
large (maximum is 100). Set to 0!"
,
vctsize
);
vct_warning
=
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