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
e1b0e8ca
Commit
e1b0e8ca
authored
Oct 23, 2009
by
Uwe Schulzweida
Browse files
stream_cdf:cdfDefXaxis: bug fix for multi generic grids
parent
acd4b207
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
e1b0e8ca
2009-10-23 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf:cdfDefXaxis: bug fix for multi generic grids [report: Uwe Mikolajewicz]
2009-10-15 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* using GRIB library version 1.4.0.1
...
...
src/stream_cdf.c
View file @
e1b0e8ca
...
...
@@ -1162,6 +1162,7 @@ void cdfDefXaxis(int streamID, int gridID)
int
fileID
;
int
dimlen
,
dimlen0
;
size_t
len
;
int
ncdimid
;
int
ncvarid
=
UNDEFID
,
ncbvarid
=
UNDEFID
;
int
nvertex
=
2
,
nvdimID
=
-
1
;
int
vlistID
;
...
...
@@ -1232,7 +1233,8 @@ void cdfDefXaxis(int streamID, int gridID)
strcpy
(
axisname2
,
axisname
);
if
(
iz
)
sprintf
(
&
axisname2
[
strlen
(
axisname2
)],
"_%d"
,
iz
+
1
);
status
=
nc_inq_varid
(
fileID
,
axisname2
,
&
ncvarid
);
//status = nc_inq_varid(fileID, axisname2, &ncvarid);
status
=
nc_inq_dimid
(
fileID
,
axisname2
,
&
ncdimid
);
if
(
status
!=
NC_NOERR
)
{
if
(
iz
)
...
...
@@ -1326,6 +1328,7 @@ void cdfDefYaxis(int streamID, int gridID)
int
fileID
;
int
dimlen
,
dimlen0
;
size_t
len
;
int
ncdimid
;
int
ncvarid
=
UNDEFID
,
ncbvarid
=
UNDEFID
;
int
nvdimID
=
-
1
;
int
vlistID
;
...
...
@@ -1396,7 +1399,8 @@ void cdfDefYaxis(int streamID, int gridID)
strcpy
(
axisname2
,
axisname
);
if
(
iz
)
sprintf
(
&
axisname2
[
strlen
(
axisname2
)],
"_%d"
,
iz
+
1
);
status
=
nc_inq_varid
(
fileID
,
axisname2
,
&
ncvarid
);
//status = nc_inq_varid(fileID, axisname2, &ncvarid);
status
=
nc_inq_varid
(
fileID
,
axisname2
,
&
ncdimid
);
if
(
status
!=
NC_NOERR
)
{
if
(
iz
)
...
...
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