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

CDI_PROJ_LCC: don't overwrite NetCDF units (bug fix).

parent c0db82de
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
* Version 1.9.1 released * Version 1.9.1 released
2017-09-18 Uwe Schulzweida
* CDI_PROJ_LCC: don't overwrite NetCDF units (bug fix)
2017-09-13 Uwe Schulzweida 2017-09-13 Uwe Schulzweida
* Added interface function taxisWithBounds() * Added interface function taxisWithBounds()
......
...@@ -348,8 +348,9 @@ void cdiGridTypeInit(grid_t *gridptr, int gridtype, int size) ...@@ -348,8 +348,9 @@ void cdiGridTypeInit(grid_t *gridptr, int gridtype, int size)
gridptr->x.stdname = xystdname_tab[grid_xystdname_projection][0]; gridptr->x.stdname = xystdname_tab[grid_xystdname_projection][0];
gridptr->y.stdname = xystdname_tab[grid_xystdname_projection][1]; gridptr->y.stdname = xystdname_tab[grid_xystdname_projection][1];
gridSetName(gridptr->x.units, "m");
gridSetName(gridptr->y.units, "m"); if ( !gridptr->x.units[0] ) gridSetName(gridptr->x.units, "m");
if ( !gridptr->y.units[0] ) gridSetName(gridptr->y.units, "m");
} }
break; break;
} }
...@@ -1044,8 +1045,8 @@ void gridVerifyProj(int gridID) ...@@ -1044,8 +1045,8 @@ void gridVerifyProj(int gridID)
{ {
gridptr->x.stdname = xystdname_tab[grid_xystdname_projection][0]; gridptr->x.stdname = xystdname_tab[grid_xystdname_projection][0];
gridptr->y.stdname = xystdname_tab[grid_xystdname_projection][1]; gridptr->y.stdname = xystdname_tab[grid_xystdname_projection][1];
gridSetName(gridptr->x.units, "m"); if ( !gridptr->x.units[0] ) gridSetName(gridptr->x.units, "m");
gridSetName(gridptr->y.units, "m"); if ( !gridptr->y.units[0] ) gridSetName(gridptr->y.units, "m");
} }
} }
......
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