Commit 9e72feb6 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

stream_cdf::isLatAxis() and isLonAxis(): added support for stdname latitude and longitude

parent 993e1b3d
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
* Version 1.6.2 released * Version 1.6.2 released
* using CGRIBEX library version 1.6.2 * using CGRIBEX library version 1.6.2
2013-10-17 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf::isLatAxis() and isLonAxis(): added support for stdname latitude and longitude
2013-10-15 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de> 2013-10-15 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* added support for GRIB2 key typeOfGeneratingProcess * added support for GRIB2 key typeOfGeneratingProcess
......
...@@ -4299,8 +4299,8 @@ int isLonAxis(const char *units, const char *stdname) ...@@ -4299,8 +4299,8 @@ int isLonAxis(const char *units, const char *stdname)
} }
if ( status == TRUE || if ( status == TRUE ||
(memcmp(units, "degree", 6) == 0 && memcmp(stdname, "grid_longitude", 14) == 0) || ((memcmp(units, "degree", 6) == 0 ||memcmp(units, "radian", 6) == 0) &&
(memcmp(units, "radian", 6) == 0 && memcmp(stdname, "grid_longitude", 14) == 0) ) (memcmp(stdname, "grid_longitude", 14) == 0 || memcmp(stdname, "longitude", 9) == 0)) )
{ {
status = TRUE; status = TRUE;
} }
...@@ -4327,8 +4327,8 @@ int isLatAxis(const char *units, const char *stdname) ...@@ -4327,8 +4327,8 @@ int isLatAxis(const char *units, const char *stdname)
} }
if ( status == TRUE || if ( status == TRUE ||
(memcmp(units, "degree", 6) == 0 && memcmp(stdname, "grid_latitude", 13) == 0) || ((memcmp(units, "degree", 6) == 0 || memcmp(units, "radian", 6) == 0) &&
(memcmp(units, "radian", 6) == 0 && memcmp(stdname, "grid_latitude", 13) == 0) ) (memcmp(stdname, "grid_latitude", 13) == 0 || memcmp(stdname, "latitude", 8) == 0)) )
{ {
status = TRUE; status = TRUE;
} }
......
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