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

grbDefGrid: add warning for curvilinear grids

parent 05d8fe7c
......@@ -5,6 +5,7 @@
* add datatype UINT8
* streamClose: use taxisDestroy to release memory
* cdfInqContents: skip time variable with type = NC_CHAR
* grbDefGrid: add warning for curvilinear grids
* ptaxisCopy: don't overwrite item 'self' (bug fix)
* Version 1.2.0 released
......
......@@ -3824,8 +3824,8 @@ int cdfInqContents(int streamID)
else if ( strcmp(attname, "axis") == 0 )
{
cdfGetAttText(fileID, ncvarid, attname, attstringlen-1, attstring);
/* attlen = strlen(attstring); */
/* check attlen */
/* don't check attlen anymore because the meaning changed from COARDS to CF */
/*
if ( (int) attlen != nvdims )
{
if ( (int)(attlen-1) == nvdims && attstring[attlen] == 0 ) attlen--;
......@@ -3843,6 +3843,7 @@ int cdfInqContents(int streamID)
}
}
else
*/
{
while ( attlen-- )
{
......
......@@ -1817,6 +1817,7 @@ void grbDefGrid(int *isec1, int *isec2, int gridID)
{
static char func[] = "grbDefGrid";
int gridtype;
static short lwarn = TRUE;
memset(isec2, 0, 16*sizeof(int));
......@@ -1853,6 +1854,11 @@ void grbDefGrid(int *isec1, int *isec2, int gridID)
}
else if ( gridtype == GRID_CURVILINEAR )
{
if ( lwarn )
{
lwarn = FALSE;
Warning(func, "Curvilinear grids are unsupported in GRIB format! Create wrong GDS!");
}
gridtype = GRID_LONLAT;
}
......
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