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
4a6002c8
Commit
4a6002c8
authored
18 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
split GRIB level type 105 with env var SPLIT_LTYPE_105
parent
bc8bcb91
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
src/stream_int.c
+4
-0
4 additions, 0 deletions
src/stream_int.c
src/stream_int.h
+1
-0
1 addition, 0 deletions
src/stream_int.h
src/varscan.c
+9
-4
9 additions, 4 deletions
src/varscan.c
with
15 additions
and
4 deletions
ChangeLog
+
1
−
0
View file @
4a6002c8
2006-08-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* split GRIB level type 105 with env var SPLIT_LTYPE_105
* file.c: remove declaration of getpagesize (report: Mark Hadfield)
* tableWrite: bug fix for undefined strings
* Version 1.0.1 released
...
...
This diff is collapsed.
Click to expand it.
src/stream_int.c
+
4
−
0
View file @
4a6002c8
...
...
@@ -22,6 +22,7 @@ int cdiDefaultInstID = CDI_UNDEFID;
int
cdiDefaultModelID
=
CDI_UNDEFID
;
int
cdiDefaultTableID
=
CDI_UNDEFID
;
int
cdiNcMissingValue
=
CDI_UNDEFID
;
int
cdiSplitLtype105
=
CDI_UNDEFID
;
double
cdiDefaultMissval
=
-
9.E33
;
...
...
@@ -157,6 +158,9 @@ void cdiInitialize(void)
envString
=
getenv
(
"NC_MISSING_VALUE"
);
if
(
envString
)
cdiNcMissingValue
=
atoi
(
envString
);
envString
=
getenv
(
"SPLIT_LTYPE_105"
);
if
(
envString
)
cdiSplitLtype105
=
atoi
(
envString
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/stream_int.h
+
1
−
0
View file @
4a6002c8
...
...
@@ -222,6 +222,7 @@ extern int cdiDefaultModelID;
extern
int
cdiDefaultTableID
;
extern
int
cdiDefaultLeveltype
;
extern
int
cdiNcMissingValue
;
extern
int
cdiSplitLtype105
;
int
streamInqFileID
(
int
streamID
);
...
...
This diff is collapsed.
Click to expand it.
src/varscan.c
+
9
−
4
View file @
4a6002c8
...
...
@@ -45,12 +45,14 @@ typedef struct
}
VARTABLE
;
int
vartableInit
=
0
;
VARTABLE
*
vartable
;
static
int
varTablesize
=
0
;
int
nvars
=
0
;
void
codeInitEntry
(
int
varID
,
int
code
)
static
void
codeInitEntry
(
int
varID
,
int
code
)
{
vartable
[
varID
].
code
=
code
;
vartable
[
varID
].
prec
=
0
;
...
...
@@ -63,7 +65,8 @@ void codeInitEntry(int varID, int code)
vartable
[
varID
].
tableID
=
UNDEFID
;
}
int
varGetEntry
(
int
code
,
int
leveltype
,
int
codetable
)
static
int
varGetEntry
(
int
code
,
int
leveltype
,
int
codetable
)
{
int
varID
;
...
...
@@ -78,6 +81,7 @@ int varGetEntry(int code, int leveltype, int codetable)
return
(
UNDEFID
);
}
void
varFree
(
void
)
{
static
char
func
[]
=
"varFree"
;
...
...
@@ -236,10 +240,11 @@ void varAddRecord(int recID, int code, int gridID, int leveltype, int lbounds,
int
numavg
,
int
codetable
)
{
static
char
func
[]
=
"varAddRecord"
;
int
varID
;
int
varID
=
UNDEFID
;
int
levelID
=
-
1
;
varID
=
varGetEntry
(
code
,
leveltype
,
codetable
);
if
(
!
(
cdiSplitLtype105
==
1
&&
leveltype
==
ZAXIS_HEIGHT
)
)
varID
=
varGetEntry
(
code
,
leveltype
,
codetable
);
if
(
varID
==
UNDEFID
)
{
...
...
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