Skip to content
Snippets Groups Projects
Commit 3696d059 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Don't set CDI_grid_type for GRID_GAUSSIAN.

parent 6e4ed966
No related branches found
No related tags found
No related merge requests found
......@@ -227,21 +227,13 @@ bool is_lat_axis(const char *units, const char *stdname)
bool is_x_axis(const char *units, const char *stdname)
{
bool status = false;
if ( strcmp(stdname, "projection_x_coordinate") == 0 ) status = true;
return status;
return (strcmp(stdname, "projection_x_coordinate") == 0);
}
bool is_y_axis(const char *units, const char *stdname)
{
bool status = false;
if ( strcmp(stdname, "projection_y_coordinate") == 0 ) status = true;
return status;
return (strcmp(stdname, "projection_y_coordinate") == 0);
}
......
......@@ -614,7 +614,7 @@ int cdfDefVar(stream_t *streamptr, int varID)
}
}
if ( gridtype != GRID_GENERIC && gridtype != GRID_LONLAT &&
if ( gridtype != GRID_GENERIC && gridtype != GRID_LONLAT && gridtype != GRID_GAUSSIAN &&
gridtype != GRID_PROJECTION && gridtype != GRID_CURVILINEAR )
{
size_t len = strlen(gridNamePtr(gridtype));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment