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
412466a1
Commit
412466a1
authored
Apr 18, 2006
by
Uwe Schulzweida
Browse files
cdfInqContents: use coord vars from attr coordinates
parent
13f9fff6
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
412466a1
2006-05-?? Uwe Schulzweida <schulzweida@dkrz.de>
* using GRIB library version 0.6.6
* cdfInqContents: check attlen for attname "axis"
* cdfInqContents: use coord vars from attr coordinates (bug report: Alberto Maurizi)
* gridPrint: print xfirst and xinc if xinc is constant
* Version 0.9.7 released
...
...
src/stream_cdf.c
View file @
412466a1
...
...
@@ -3452,9 +3452,19 @@ int cdfInqContents(int streamID)
/* check attlen */
if
(
(
int
)
attlen
!=
nvdims
)
{
if
(
nvdims
>
0
)
Warning
(
func
,
"axis attribute length %d does not match nvdim %d for %s"
,
attlen
,
nvdims
,
name
);
if
(
attlen
-
1
==
nvdims
&&
attstring
[
attlen
]
==
0
)
attlen
--
;
else
{
if
(
nvdims
>
0
)
Warning
(
func
,
"axis attribute length %d does not match nvdim %d for %s"
,
attlen
,
nvdims
,
name
);
if
(
nvdims
>
0
)
{
fprintf
(
stderr
,
"attlen %d %d %d
\n
"
,
strlen
(
attstring
),
attlen
,
nvdims
);
for
(
i
=
0
;
i
<
attlen
;
i
++
)
fprintf
(
stderr
,
" %d %d %c
\n
"
,
i
,
(
int
)
attstring
[
i
],
attstring
[
i
]);
}
}
}
else
{
...
...
@@ -3906,7 +3916,6 @@ int cdfInqContents(int streamID)
ydimid
=
ncvars
[
ncvarid
].
dimids
[
i
];
}
/*
if
(
ncvars
[
ncvarid
].
xvarid
!=
UNDEFID
)
xvarid
=
ncvars
[
ncvarid
].
xvarid
;
else
if
(
xdimid
!=
UNDEFID
)
...
...
@@ -3916,8 +3925,8 @@ int cdfInqContents(int streamID)
yvarid
=
ncvars
[
ncvarid
].
yvarid
;
else
if
(
ydimid
!=
UNDEFID
)
yvarid
=
ncdims
[
ydimid
].
ncvarid
;
*/
/*
if ( xdimid != UNDEFID )
xvarid = ncdims[xdimid].ncvarid;
if ( xvarid == UNDEFID && ncvars[ncvarid].xvarid != UNDEFID )
...
...
@@ -3927,6 +3936,7 @@ int cdfInqContents(int streamID)
yvarid = ncdims[ydimid].ncvarid;
if ( yvarid == UNDEFID && ncvars[ncvarid].yvarid != UNDEFID )
yvarid = ncvars[ncvarid].yvarid;
*/
if
(
xdimid
!=
UNDEFID
)
cdf_inq_dimlen
(
fileID
,
xdimid
,
&
xsize
);
...
...
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