Commit 952ac982 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Remap: check range of grid cell center coordinates.

parent 1f9c7f93
Pipeline #4696 passed with stages
in 16 minutes and 39 seconds
......@@ -214,7 +214,7 @@ check_lon_range(const char *txt, size_t nlons, Varray<double> &lons)
maxval = std::max(maxval, lons[i]);
}
if (minval < -PI2 || maxval > 2 * PI2)
cdoWarning("%s grid cell center longitudes out of range (min=%g/max=%g)!", txt, RAD2DEG*minval, RAD2DEG*maxval);
cdoWarning("%s grid cell center longitudes out of range (min=%.3g/max=%.3g)!", txt, RAD2DEG*minval, RAD2DEG*maxval);
}
#ifdef _OPENMP
......@@ -249,7 +249,7 @@ check_lat_range(const char *txt, size_t nlats, Varray<double> &lats)
maxval = std::max(maxval, lats[i]);
}
if (minval < -PIH || maxval > PIH)
cdoWarning("%s grid cell center latitudes out of range (min=%g/max=%g)!", txt, RAD2DEG*minval, RAD2DEG*maxval);
cdoWarning("%s grid cell center latitudes out of range (min=%.3g/max=%.3g)!", txt, RAD2DEG*minval, RAD2DEG*maxval);
}
#ifdef _OPENMP
......
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