Skip to content
GitLab
Menu
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
f1391134
Commit
f1391134
authored
Apr 07, 2016
by
Thomas Jahns
🤸
Browse files
Eliminate data dependency in is{Lon|Lat}Axis.
parent
a636b8f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cdf_util.c
View file @
f1391134
...
...
@@ -189,9 +189,9 @@ bool is_lon_axis(const char *units, const char *stdname)
{
status
=
true
;
}
if
(
status
==
false
&&
str_is_equal
(
lc_units
,
"degree"
)
&&
!
str_is_equal
(
stdname
,
"grid_latitude"
)
&&
!
str_is_equal
(
stdname
,
"latitude"
)
)
else
if
(
str_is_equal
(
lc_units
,
"degree"
)
&&
!
str_is_equal
(
stdname
,
"grid_latitude"
)
&&
!
str_is_equal
(
stdname
,
"latitude"
)
)
{
int
ioff
=
6
;
if
(
lc_units
[
ioff
]
==
's'
)
ioff
++
;
...
...
@@ -217,9 +217,9 @@ bool is_lat_axis(const char *units, const char *stdname)
{
status
=
true
;
}
if
(
status
==
false
&&
str_is_equal
(
lc_units
,
"degree"
)
&&
!
str_is_equal
(
stdname
,
"grid_longitude"
)
&&
!
str_is_equal
(
stdname
,
"longitude"
)
)
else
if
(
str_is_equal
(
lc_units
,
"degree"
)
&&
!
str_is_equal
(
stdname
,
"grid_longitude"
)
&&
!
str_is_equal
(
stdname
,
"longitude"
)
)
{
int
ioff
=
6
;
if
(
lc_units
[
ioff
]
==
's'
)
ioff
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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