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

grid_check_lat_borders_rad: remove RAD2DEG (bug fix for remapycon with non...

grid_check_lat_borders_rad: remove RAD2DEG (bug fix for remapycon with non global reg2d source grids).
parent ae6678ea
......@@ -3,6 +3,10 @@
* Using CDI library version 1.8.2
* Version 1.8.2 release
2017-05-10 Uwe Schulzweida
* grid_check_lat_borders_rad: remove RAD2DEG (bug fix for remapycon with non global reg2d source grids)
2017-04-25 Uwe Schulzweida
* setcalendar, settaxis memory error (bug introduce in 1.8.1) [Bug #7691]
......
......@@ -275,7 +275,7 @@ int gridToMeridional(int gridID1)
}
void grid_gen_corners(size_t n, const double* restrict vals, double* restrict corners)
void grid_gen_corners(size_t n, const double *restrict vals, double *restrict corners)
{
if ( n == 1 )
{
......
......@@ -529,13 +529,13 @@ void grid_check_lat_borders_rad(int n, double *ybounds)
{
if ( ybounds[0] > ybounds[n-1] )
{
if ( RAD2DEG*ybounds[0] > PIH ) ybounds[0] = PIH;
if ( RAD2DEG*ybounds[n-1] < -PIH ) ybounds[n-1] = -PIH;
if ( ybounds[0] > PIH ) ybounds[0] = PIH;
if ( ybounds[n-1] < -PIH ) ybounds[n-1] = -PIH;
}
else
{
if ( RAD2DEG*ybounds[0] < -PIH ) ybounds[0] = -PIH;
if ( RAD2DEG*ybounds[n-1] > PIH ) ybounds[n-1] = PIH;
if ( ybounds[0] < -PIH ) ybounds[0] = -PIH;
if ( ybounds[n-1] > PIH ) ybounds[n-1] = PIH;
}
}
......
Supports Markdown
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