Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
d8bfdd6c
Commit
d8bfdd6c
authored
Feb 15, 2019
by
Uwe Schulzweida
Browse files
cdfScanVarAttr: ignore attribute valid_range if min > max (bug fix).
parent
49cbed5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
d8bfdd6c
2019-02-15 Uwe Schulzweida
* cdfScanVarAttr: ignore attribute valid_range if min > max (bug fix)
2019-02-07 Uwe Schulzweida
* using CGRIBEX library version 1.9.2
...
...
src/stream_cdf_i.c
View file @
d8bfdd6c
...
...
@@ -1419,7 +1419,7 @@ void cdfScanVarAttr(int nvars, ncvar_t *ncvars, int ndims, ncdim_t *ncdims, int
if
(
!
cdiIgnoreValidRange
&&
lignore
==
false
)
{
cdfGetAttDouble
(
ncid
,
ncvarid
,
attname
,
2
,
ncvars
[
ncvarid
].
validrange
);
ncvars
[
ncvarid
].
lvalidrange
=
true
;
ncvars
[
ncvarid
].
lvalidrange
=
(
ncvars
[
ncvarid
].
validrange
[
0
]
<=
ncvars
[
ncvarid
].
validrange
[
1
])
;
if
(
((
int
)
ncvars
[
ncvarid
].
validrange
[
0
])
==
0
&&
((
int
)
ncvars
[
ncvarid
].
validrange
[
1
])
==
255
)
ncvars
[
ncvarid
].
lunsigned
=
true
;
/* cdf_set_var(ncvars, ncvarid, TRUE); */
...
...
Write
Preview
Markdown
is supported
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