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

gridGenXvals: if xfirst >= 180 sub 360.

parent dc5105bd
......@@ -359,6 +359,8 @@ void cdiGridTypeInit(grid_t *gridptr, int gridtype, size_t size)
// used also in CDO
void gridGenXvals(int xsize, double xfirst, double xlast, double xinc, double *restrict xvals)
{
if (xsize > 1 && xfirst >= xlast && xfirst >= 180 && xlast > 0) xfirst -= 360;
if ( (! (fabs(xinc) > 0)) && xsize > 1 )
{
if ( xfirst >= xlast )
......
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