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
48254452
Commit
48254452
authored
Feb 19, 2020
by
Uwe Schulzweida
Browse files
NetCDF: read lat bounds of a Gaussian reduced grid
parent
2cfa0540
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
48254452
2020-02-19 Uwe Schulzweida
* NetCDF: read lat bounds of a Gaussian reduced grid
2020-02-12 Uwe Schulzweida
* cfortran.h: define SXFortran [patch: Florian Prill]
...
...
src/stream_cdf_i.c
View file @
48254452
...
...
@@ -2480,6 +2480,21 @@ bool cdf_read_coordinates(struct cdfLazyGrid *restrict lazyGrid, ncvar_t *ncvar,
grid
->
reducedPoints
=
(
int
*
)
Malloc
(
ysize
*
sizeof
(
int
));
cdf_get_var_int
(
ncvar
->
ncid
,
ncvar
->
rpvarid
,
grid
->
reducedPoints
);
grid
->
np
=
ncvar
->
numLPE
;
int
bvarid
=
ncvars
[
yvarid
].
bounds
;
if
(
bvarid
!=
CDI_UNDEFID
)
{
int
nbdims
=
ncvars
[
bvarid
].
ndims
;
if
(
nbdims
==
2
||
nbdims
==
3
)
{
if
(
*
vdimid
==
CDI_UNDEFID
)
{
*
vdimid
=
ncvars
[
bvarid
].
dimids
[
nbdims
-
1
];
grid
->
nvertex
=
(
int
)
ncdims
[
*
vdimid
].
len
;
}
cdf_load_bounds
(
size
*
(
size_t
)
grid
->
nvertex
,
&
ncvars
[
yvarid
],
&
grid
->
y
.
bounds
,
&
lazyGrid
->
yBoundsGet
);
}
}
}
}
break
;
...
...
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