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
b02bc0e8
Commit
b02bc0e8
authored
Nov 21, 2012
by
Uwe Schulzweida
Browse files
stream_cdf::setDimType: fill dims only if ndims >= 1
parent
0ecd2f5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
b02bc0e8
...
...
@@ -19,10 +19,6 @@
* app/cdi: added optional compression level -z zip[_1-9]
2012-11-13 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf::setDimType: fill dims only if ndims > 1
2012-11-09 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* file.c::file_initialize: added support for env GRIB_API_IO_BUFFER_SIZE [request: Florian Prill]
...
...
src/stream_cdf.c
View file @
b02bc0e8
...
...
@@ -4956,7 +4956,7 @@ void setDimType(int nvars, ncvar_t *ncvars, ncdim_t *ncdims)
/* else if ( ncvars[ncvarid].dimtype[i] == T_AXIS ) ltdim = TRUE; */
}
if
(
ndims
>
1
)
//
if ( ndims > 1 )
for
(
i
=
ndims
-
1
;
i
>=
0
;
i
--
)
{
if
(
ncvars
[
ncvarid
].
dimtype
[
i
]
==
-
1
)
...
...
@@ -5167,7 +5167,7 @@ void copy_numeric_projatts(int gridID, int ncvarID, int ncfileID)
cdf_inq_atttype
(
ncfileID
,
ncvarID
,
attname
,
&
xtype
);
cdf_inq_attlen
(
ncfileID
,
ncvarID
,
attname
,
&
attlen
);
printf
(
"%s %d
\n
"
,
attname
,
(
int
)
attlen
);
//
printf("%s %d\n", attname, (int)attlen);
}
}
...
...
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