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
becfa6ed
Commit
becfa6ed
authored
Nov 30, 2009
by
Uwe Schulzweida
Browse files
cdfInqContents: bug fix for GRID_CELL with levels
parent
6dfba216
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
becfa6ed
2009-11-30 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cdfInqContents: bug fix for GRID_CELL with levels [report: Stephan Lorenz]
2009-11-25 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* using GRIB library version 1.4.1
...
...
src/stream_cdf.c
View file @
becfa6ed
...
...
@@ -3869,7 +3869,7 @@ int isLonAxis(const char *units, const char *stdname)
memcmp
(
units
,
"degreeE"
,
7
)
==
0
||
memcmp
(
units
,
"degreesE"
,
8
)
==
0
||
memcmp
(
stdname
,
"longitude"
,
9
)
==
0
||
(
memcmp
(
units
,
"degree
s
"
,
7
)
==
0
&&
(
memcmp
(
units
,
"degree"
,
6
)
==
0
&&
memcmp
(
stdname
,
"grid_longitude"
,
14
)
==
0
)
||
(
memcmp
(
units
,
"radian"
,
6
)
==
0
&&
memcmp
(
stdname
,
"grid_longitude"
,
14
)
==
0
)
)
...
...
@@ -3892,7 +3892,7 @@ int isLatAxis(const char *units, const char *stdname)
memcmp
(
units
,
"degreeN"
,
7
)
==
0
||
memcmp
(
units
,
"degreesN"
,
8
)
==
0
||
memcmp
(
stdname
,
"latitude"
,
8
)
==
0
||
(
memcmp
(
units
,
"degree
s
"
,
7
)
==
0
&&
(
memcmp
(
units
,
"degree"
,
6
)
==
0
&&
memcmp
(
stdname
,
"grid_latitude"
,
13
)
==
0
)
||
(
memcmp
(
units
,
"radian"
,
6
)
==
0
&&
memcmp
(
stdname
,
"grid_latitude"
,
13
)
==
0
)
)
...
...
@@ -4518,7 +4518,7 @@ void setDimType(int nvars, NCVAR *ncvars, NCDIM *ncdims)
cdfSetDim
(
ncvars
,
ncvarid
,
i
,
X_AXIS
);
lxdim
=
TRUE
;
}
else
if
(
lydim
==
FALSE
)
else
if
(
lydim
==
FALSE
&&
ncvars
[
ncvarid
].
gridtype
!=
GRID_CELL
)
{
cdfSetDim
(
ncvars
,
ncvarid
,
i
,
Y_AXIS
);
lydim
=
TRUE
;
...
...
@@ -5249,9 +5249,9 @@ int cdfInqContents(int streamID)
{
int
dimid
;
size_t
dimsize1
,
dimsize2
;
dimid
=
ncvars
[
x
varid
].
dimids
[
ndims
-
2
];
dimid
=
ncvars
[
y
varid
].
dimids
[
ndims
-
2
];
cdf_inq_dimlen
(
fileID
,
dimid
,
&
dimsize1
);
dimid
=
ncvars
[
x
varid
].
dimids
[
ndims
-
1
];
dimid
=
ncvars
[
y
varid
].
dimids
[
ndims
-
1
];
cdf_inq_dimlen
(
fileID
,
dimid
,
&
dimsize2
);
if
(
dimsize1
*
dimsize2
!=
size
)
{
...
...
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