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
3696d059
Commit
3696d059
authored
Aug 15, 2016
by
Uwe Schulzweida
Browse files
Don't set CDI_grid_type for GRID_GAUSSIAN.
parent
6e4ed966
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdf_util.c
View file @
3696d059
...
...
@@ -227,21 +227,13 @@ bool is_lat_axis(const char *units, const char *stdname)
bool
is_x_axis
(
const
char
*
units
,
const
char
*
stdname
)
{
bool
status
=
false
;
if
(
strcmp
(
stdname
,
"projection_x_coordinate"
)
==
0
)
status
=
true
;
return
status
;
return
(
strcmp
(
stdname
,
"projection_x_coordinate"
)
==
0
);
}
bool
is_y_axis
(
const
char
*
units
,
const
char
*
stdname
)
{
bool
status
=
false
;
if
(
strcmp
(
stdname
,
"projection_y_coordinate"
)
==
0
)
status
=
true
;
return
status
;
return
(
strcmp
(
stdname
,
"projection_y_coordinate"
)
==
0
);
}
...
...
src/cdf_write.c
View file @
3696d059
...
...
@@ -614,7 +614,7 @@ int cdfDefVar(stream_t *streamptr, int varID)
}
}
if
(
gridtype
!=
GRID_GENERIC
&&
gridtype
!=
GRID_LONLAT
&&
if
(
gridtype
!=
GRID_GENERIC
&&
gridtype
!=
GRID_LONLAT
&&
gridtype
!=
GRID_GAUSSIAN
&&
gridtype
!=
GRID_PROJECTION
&&
gridtype
!=
GRID_CURVILINEAR
)
{
size_t
len
=
strlen
(
gridNamePtr
(
gridtype
));
...
...
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