Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
104cf06d
Commit
104cf06d
authored
15 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
42e313da
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cgribex.h
+12
-8
12 additions, 8 deletions
src/cgribex.h
src/cgribexlib.c
+588
-358
588 additions, 358 deletions
src/cgribexlib.c
with
600 additions
and
366 deletions
src/cgribex.h
+
12
−
8
View file @
104cf06d
#ifndef _GRIB_H
#define _GRIB_H
#ifndef _
C
GRIB
EX
_H
#define _
C
GRIB
EX
_H
#include
<stdio.h>
#include
<sys/types.h>
...
...
@@ -72,7 +72,7 @@
#define ISEC1_TimePeriod2 (isec1[16])
/* P2 Time period */
#define ISEC1_TimeRange (isec1[17])
/* Time range indicator */
#define ISEC1_AvgNum (isec1[18])
/* Number of products included in an average */
#define ISEC1_AvgMiss (isec1[19])
/* Number of products missing f
o
rm an average */
#define ISEC1_AvgMiss (isec1[19])
/* Number of products missing fr
o
m an average */
#define ISEC1_Century (isec1[20])
/* Century */
#define ISEC1_SubCenterID (isec1[21])
/* Subcenter identifier */
#define ISEC1_DecScaleFactor (isec1[22])
/* Decimal scale factor */
...
...
@@ -179,7 +179,7 @@ void gribExDP(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
int
kleng
,
int
*
kword
,
char
*
hoper
,
int
*
kret
);
const
char
*
gribLibraryVersion
(
void
);
const
char
*
c
grib
ex
LibraryVersion
(
void
);
void
gribDebug
(
int
debug
);
...
...
@@ -205,8 +205,11 @@ void gribPrintGDS(int nrec, long recpos, long recsize, unsigned char *gribbuffe
void
gribPrintBMS
(
int
nrec
,
long
recpos
,
long
recsize
,
unsigned
char
*
gribbuffer
);
void
gribPrintBDS
(
int
nrec
,
long
recpos
,
long
recsize
,
unsigned
char
*
gribbuffer
);
int
gribSections
(
unsigned
char
*
gribbuffer
,
long
recsize
,
unsigned
char
**
pdsp
,
unsigned
char
**
gdsp
,
unsigned
char
**
bmsp
,
unsigned
char
**
bdsp
);
int
grib1Sections
(
unsigned
char
*
gribbuffer
,
long
recsize
,
unsigned
char
**
pdsp
,
unsigned
char
**
gdsp
,
unsigned
char
**
bmsp
,
unsigned
char
**
bdsp
);
int
grib2Sections
(
unsigned
char
*
gribbuffer
,
long
recsize
,
unsigned
char
**
idsp
,
unsigned
char
**
lusp
,
unsigned
char
**
gdsp
,
unsigned
char
**
pdsp
,
unsigned
char
**
drsp
,
unsigned
char
**
bmsp
,
unsigned
char
**
bdsp
);
int
gribGetZip
(
long
recsize
,
unsigned
char
*
gribbuffer
,
long
*
urecsize
);
...
...
@@ -226,6 +229,7 @@ int gribFileSeek(int fileID, long *offset);
int
gribReadSize
(
int
fileID
);
int
gribVersion
(
unsigned
char
*
buffer
,
size_t
buffersize
);
int
gribGinfo
(
long
recpos
,
long
recsize
,
unsigned
char
*
gribbuffer
,
int
*
intnum
,
float
*
fltnum
);
int
gribGinfo
(
long
recpos
,
long
recsize
,
unsigned
char
*
gribbuffer
,
int
*
intnum
,
float
*
fltnum
);
#endif
/* _CGRIBEX_H */
#endif
/* _GRIB_H */
This diff is collapsed.
Click to expand it.
src/cgribexlib.c
+
588
−
358
View file @
104cf06d
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment