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
5cbc4e9d
Commit
5cbc4e9d
authored
Aug 31, 2017
by
Uwe Schulzweida
Browse files
Implementation of CDI_reduce_dim for x/y axis.
parent
85e48994
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
5cbc4e9d
...
...
@@ -5,6 +5,7 @@
2017-08-30 Uwe Schulzweida
* Implementation of CDI_reduce_dim for time axis
* Implementation of CDI_reduce_dim for x/y axis
* cdfDefAxisCommon: bug fix for zaxis bounds in CDI_cmor_mode
2017-08-08 Uwe Schulzweida
...
...
src/stream_cdf_o.c
View file @
5cbc4e9d
...
...
@@ -1875,6 +1875,13 @@ void cdfDefGrid(stream_t *streamptr, int gridID, int gridindex)
if
(
CDI_Debug
)
Message
(
"gridtype = %d size = %d"
,
gridtype
,
size
);
if
(
CDI_reduce_dim
&&
size
==
1
)
{
// no grid information
streamptr
->
ncgrid
[
gridindex
].
gridID
=
gridID
;
return
;
}
if
(
gridtype
==
GRID_GAUSSIAN
||
gridtype
==
GRID_LONLAT
||
gridtype
==
GRID_PROJECTION
||
...
...
@@ -1884,7 +1891,7 @@ void cdfDefGrid(stream_t *streamptr, int gridID, int gridindex)
{
if
(
size
==
1
&&
gridInqXsize
(
gridID
)
==
0
&&
gridInqYsize
(
gridID
)
==
0
)
{
/
*
no grid information
*/
/
/
no grid information
streamptr
->
ncgrid
[
gridindex
].
gridID
=
gridID
;
}
else
...
...
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