Skip to content
GitLab
Menu
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
9d0f47c6
Commit
9d0f47c6
authored
Jan 11, 2012
by
Uwe Schulzweida
Browse files
cdfScanVarAttributes: cleanup warning message
parent
fb775f27
Changes
3
Hide whitespace changes
Inline
Side-by-side
configure
View file @
9d0f47c6
...
...
@@ -812,6 +812,7 @@ enable_dependency_tracking
with_gnu_ld
with_sysroot
enable_libtool_lock
with_gnu_ld
enable_largefile
with_threads
with_zlib
...
...
@@ -843,16 +844,25 @@ LDFLAGS
LIBS
CPPFLAGS
CPP
CPPFLAGS
FC
FCFLAGS
LDFLAGS
LIBS
FPP
FPPFLAGS
F77
FFLAGS
LDFLAGS
LIBS
CXX
CXXFLAGS
LDFLAGS
LIBS
CPPFLAGS
CCC
CXXCPP
CPPFLAGS
FCMODEXT'
...
...
src/stream_cdf.c
View file @
9d0f47c6
...
...
@@ -4336,8 +4336,8 @@ int cmpvarname(const void *s1, const void *s2)
#if defined (HAVE_LIBNETCDF)
static
void
s
canVarAttributes
(
int
fileID
,
int
nvars
,
ncvar_t
*
ncvars
,
ncdim_t
*
ncdims
,
int
timedimid
,
int
modelID
,
int
format
)
void
cdfS
canVarAttributes
(
int
fileID
,
int
nvars
,
ncvar_t
*
ncvars
,
ncdim_t
*
ncdims
,
int
timedimid
,
int
modelID
,
int
format
)
{
int
ncvarid
;
int
ncdimid
;
...
...
@@ -4473,7 +4473,7 @@ void scanVarAttributes(int fileID, int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
if
(
warn
)
{
warn
=
FALSE
;
Warning
(
"
G
rid
type
%s unsupported!"
,
attstring
);
Warning
(
"
netCDF attribute g
rid
_
type
='
%s
'
unsupported!"
,
attstring
);
}
}
...
...
@@ -4496,7 +4496,7 @@ void scanVarAttributes(int fileID, int nvars, ncvar_t *ncvars, ncdim_t *ncdims,
if
(
warn
)
{
warn
=
FALSE
;
Warning
(
"
Zaxis
type
%s unsupported!"
,
attstring
);
Warning
(
"
netCDF attribute level_
type
='
%s
'
unsupported!"
,
attstring
);
}
}
...
...
@@ -6303,8 +6303,8 @@ int cdfInqContents(int streamID)
}
/* scan
var
attributes */
s
canVarAttributes
(
fileID
,
nvars
,
ncvars
,
ncdims
,
timedimid
,
modelID
,
format
);
/* scan attributes
of all variables
*/
cdfS
canVarAttributes
(
fileID
,
nvars
,
ncvars
,
ncdims
,
timedimid
,
modelID
,
format
);
if
(
CDI_Debug
)
printNCvars
(
ncvars
,
nvars
);
...
...
src/stream_gribapi.c
View file @
9d0f47c6
...
...
@@ -843,7 +843,7 @@ int gribapiScanTimestep1(int streamID)
dlevel
=
grib1GetLevel
(
gh
,
leveltype
);
if
(
leveltype
==
99
)
leveltype
++
;
}
else
else
{
leveltype
=
0
;
dlevel
=
0
;
...
...
@@ -860,7 +860,7 @@ int gribapiScanTimestep1(int streamID)
// fprintf(stderr, "packingType %d %s\n", len, typeOfPacking);
if
(
strncmp
(
typeOfPacking
,
"grid_jpeg"
,
len
)
==
0
)
comptype
=
COMPRESS_JPEG
;
}
GRIB_CHECK
(
grib_get_long
(
gh
,
"discipline"
,
&
lpar
),
0
);
pdis
=
(
int
)
lpar
;
...
...
@@ -879,7 +879,7 @@ int gribapiScanTimestep1(int streamID)
dlevel
=
grib2GetLevel
(
gh
,
leveltype
);
if
(
leveltype
==
99
)
leveltype
++
;
}
else
else
{
leveltype
=
0
;
dlevel
=
0
;
...
...
@@ -943,7 +943,7 @@ int gribapiScanTimestep1(int streamID)
if
(
memcmp
(
&
datetime
,
&
datetime0
,
sizeof
(
DateTime
))
!=
0
)
{
char
paramstr
[
32
];
cdiParamToString
(
param
,
paramstr
,
sizeof
(
paramstr
));
cdiParamToString
(
param
,
paramstr
,
sizeof
(
paramstr
));
Warning
(
"Inconsistent verification time (param=%s level=%d)"
,
paramstr
,
level1
);
warn_time
=
FALSE
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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