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
04eaa182
Commit
04eaa182
authored
4 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Removed cdiInqGridMissval().
parent
fa023e75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Replaced gridDefDatatype()/gridInqDatatype() by cdiDefKeyInt()/cdiInqKeyInt()...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cdi.h
+0
-1
0 additions, 1 deletion
src/cdi.h
src/cdi_int.c
+15
-22
15 additions, 22 deletions
src/cdi_int.c
with
15 additions
and
23 deletions
src/cdi.h
+
0
−
1
View file @
04eaa182
...
...
@@ -282,7 +282,6 @@ int cdiHaveFiletype(int filetype);
void
cdiDefMissval
(
double
missval
);
double
cdiInqMissval
(
void
);
double
cdiInqGridMissval
(
void
);
void
cdiDefGlobal
(
const
char
*
string
,
int
val
);
int
namespaceNew
(
void
);
...
...
This diff is collapsed.
Click to expand it.
src/cdi_int.c
+
15
−
22
View file @
04eaa182
...
...
@@ -278,9 +278,9 @@ void cdiSetChunk(const char *chunkAlgo)
{
int
algo
=
-
1
;
if
(
str
cmp
(
"auto"
,
chunkAlgo
)
==
0
)
algo
=
CDI_CHUNK_AUTO
;
else
if
(
str
cmp
(
"grid"
,
chunkAlgo
)
==
0
)
algo
=
CDI_CHUNK_GRID
;
else
if
(
str
cmp
(
"lines"
,
chunkAlgo
)
==
0
)
algo
=
CDI_CHUNK_LINES
;
if
(
str
IsEqual
(
"auto"
,
chunkAlgo
))
algo
=
CDI_CHUNK_AUTO
;
else
if
(
str
IsEqual
(
"grid"
,
chunkAlgo
))
algo
=
CDI_CHUNK_GRID
;
else
if
(
str
IsEqual
(
"lines"
,
chunkAlgo
))
algo
=
CDI_CHUNK_LINES
;
else
Warning
(
"Invalid environment variable CDI_CHUNK_ALGO: %s"
,
chunkAlgo
);
...
...
@@ -461,18 +461,18 @@ const char *strfiletype(int filetype)
void
cdiDefGlobal
(
const
char
*
string
,
int
value
)
{
// clang-format off
if
(
str
cmp
(
string
,
"REGULARGRID"
)
==
0
)
cdiDataUnreduced
=
value
;
else
if
(
str
cmp
(
string
,
"ECCODES_DEBUG"
)
==
0
)
CDI_gribapi_debug
=
(
bool
)
value
;
else
if
(
str
cmp
(
string
,
"ECCODES_GRIB1"
)
==
0
)
cdiSetEccodesGrib1
((
bool
)
value
);
else
if
(
str
cmp
(
string
,
"SORTNAME"
)
==
0
)
cdiSortName
=
value
;
else
if
(
str
cmp
(
string
,
"SORTPARAM"
)
==
0
)
cdiSortParam
=
value
;
else
if
(
str
cmp
(
string
,
"HAVE_MISSVAL"
)
==
0
)
cdiHaveMissval
=
value
;
else
if
(
str
cmp
(
string
,
"NC_CHUNKSIZEHINT"
)
==
0
)
cdiNcChunksizehint
=
value
;
else
if
(
str
cmp
(
string
,
"READ_CELL_CORNERS"
)
==
0
)
CDI_read_cell_corners
=
value
;
else
if
(
str
cmp
(
string
,
"CMOR_MODE"
)
==
0
)
CDI_cmor_mode
=
value
;
else
if
(
str
cmp
(
string
,
"REDUCE_DIM"
)
==
0
)
CDI_reduce_dim
=
value
;
else
if
(
str
cmp
(
string
,
"NETCDF_HDR_PAD"
)
==
0
)
CDI_netcdf_hdr_pad
=
(
size_t
)
value
;
else
if
(
str
cmp
(
string
,
"NETCDF_LAZY_GRID_LOAD"
)
==
0
)
CDI_netcdf_lazy_grid_load
=
(
bool
)
value
;
if
(
str
IsEqual
(
string
,
"REGULARGRID"
)
)
cdiDataUnreduced
=
value
;
else
if
(
str
IsEqual
(
string
,
"ECCODES_DEBUG"
)
)
CDI_gribapi_debug
=
(
bool
)
value
;
else
if
(
str
IsEqual
(
string
,
"ECCODES_GRIB1"
)
)
cdiSetEccodesGrib1
((
bool
)
value
);
else
if
(
str
IsEqual
(
string
,
"SORTNAME"
)
)
cdiSortName
=
value
;
else
if
(
str
IsEqual
(
string
,
"SORTPARAM"
)
)
cdiSortParam
=
value
;
else
if
(
str
IsEqual
(
string
,
"HAVE_MISSVAL"
)
)
cdiHaveMissval
=
value
;
else
if
(
str
IsEqual
(
string
,
"NC_CHUNKSIZEHINT"
)
)
cdiNcChunksizehint
=
value
;
else
if
(
str
IsEqual
(
string
,
"READ_CELL_CORNERS"
)
)
CDI_read_cell_corners
=
value
;
else
if
(
str
IsEqual
(
string
,
"CMOR_MODE"
)
)
CDI_cmor_mode
=
value
;
else
if
(
str
IsEqual
(
string
,
"REDUCE_DIM"
)
)
CDI_reduce_dim
=
value
;
else
if
(
str
IsEqual
(
string
,
"NETCDF_HDR_PAD"
)
)
CDI_netcdf_hdr_pad
=
(
size_t
)
value
;
else
if
(
str
IsEqual
(
string
,
"NETCDF_LAZY_GRID_LOAD"
))
CDI_netcdf_lazy_grid_load
=
(
bool
)
value
;
else
Warning
(
"Unsupported global key: %s"
,
string
);
// clang-format on
}
...
...
@@ -494,13 +494,6 @@ double cdiInqMissval(void)
}
double
cdiInqGridMissval
(
void
)
{
cdiInitialize
();
return
CDI_default_missval
;
}
int
cdiBaseFiletype
(
int
filetype
)
{
switch
(
filetype
)
...
...
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