Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
cceb78ed
Commit
cceb78ed
authored
Jun 25, 2008
by
Uwe Schulzweida
Browse files
grbDefGrid: add warning for curvilinear grids
parent
05d8fe7c
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
cceb78ed
...
...
@@ -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
...
...
src/stream_cdf.c
View file @
cceb78ed
...
...
@@ -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
--
)
{
...
...
src/stream_grb.c
View file @
cceb78ed
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment