Commit 3696d059 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Don't set CDI_grid_type for GRID_GAUSSIAN.

parent 6e4ed966
...@@ -227,21 +227,13 @@ bool is_lat_axis(const char *units, const char *stdname) ...@@ -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 is_x_axis(const char *units, const char *stdname)
{ {
bool status = false; return (strcmp(stdname, "projection_x_coordinate") == 0);
if ( strcmp(stdname, "projection_x_coordinate") == 0 ) status = true;
return status;
} }
bool is_y_axis(const char *units, const char *stdname) bool is_y_axis(const char *units, const char *stdname)
{ {
bool status = false; return (strcmp(stdname, "projection_y_coordinate") == 0);
if ( strcmp(stdname, "projection_y_coordinate") == 0 ) status = true;
return status;
} }
......
...@@ -614,7 +614,7 @@ int cdfDefVar(stream_t *streamptr, int varID) ...@@ -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 ) gridtype != GRID_PROJECTION && gridtype != GRID_CURVILINEAR )
{ {
size_t len = strlen(gridNamePtr(gridtype)); size_t len = strlen(gridNamePtr(gridtype));
......
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