Commit d8bfdd6c authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdfScanVarAttr: ignore attribute valid_range if min > max (bug fix).

parent 49cbed5c
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
......
......@@ -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); */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment