Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
9905dbd5
Commit
9905dbd5
authored
Dec 12, 2010
by
Uwe Schulzweida
Browse files
grib cleanup
parent
51d2d020
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/stream_cgribex.c
View file @
9905dbd5
...
...
@@ -2161,15 +2161,9 @@ void cgribexDefaultSec1(int *isec1)
static
void
cgribexDefaultSec4
(
int
*
isec4
)
{
isec4
[
2
]
=
0
;
isec4
[
3
]
=
0
;
isec4
[
4
]
=
0
;
isec4
[
5
]
=
0
;
isec4
[
6
]
=
0
;
isec4
[
7
]
=
0
;
isec4
[
8
]
=
0
;
isec4
[
9
]
=
0
;
isec4
[
10
]
=
0
;
long
i
;
for
(
i
=
2
;
i
<=
10
;
++
i
)
isec4
[
i
]
=
0
;
}
#endif
...
...
src/stream_gribapi.c
View file @
9905dbd5
...
...
@@ -189,15 +189,17 @@ int gribapiGetTimeUnits(grib_handle *gh)
GRIB_CHECK
(
grib_get_string
(
gh
,
"stepUnits"
,
stepunits
,
&
len
),
0
);
if
(
memcmp
(
stepunits
,
"s"
,
len
-
1
)
==
0
)
timeunits
=
TUNIT_SECOND
;
else
if
(
memcmp
(
stepunits
,
"m"
,
len
-
1
)
==
0
)
timeunits
=
TUNIT_MINUTE
;
else
if
(
memcmp
(
stepunits
,
"h"
,
len
-
1
)
==
0
)
timeunits
=
TUNIT_HOUR
;
else
if
(
memcmp
(
stepunits
,
"3h"
,
len
-
1
)
==
0
)
timeunits
=
TUNIT_3HOURS
;
else
if
(
memcmp
(
stepunits
,
"6h"
,
len
-
1
)
==
0
)
timeunits
=
TUNIT_6HOURS
;
else
if
(
memcmp
(
stepunits
,
"12h"
,
len
-
1
)
==
0
)
timeunits
=
TUNIT_12HOURS
;
else
if
(
memcmp
(
stepunits
,
"D"
,
len
-
1
)
==
0
)
timeunits
=
TUNIT_DAY
;
else
if
(
memcmp
(
stepunits
,
"M"
,
len
-
1
)
==
0
)
timeunits
=
TUNIT_MONTH
;
else
if
(
memcmp
(
stepunits
,
"Y"
,
len
-
1
)
==
0
)
timeunits
=
TUNIT_YEAR
;
len
--
;
if
(
memcmp
(
stepunits
,
"s"
,
len
)
==
0
)
timeunits
=
TUNIT_SECOND
;
else
if
(
memcmp
(
stepunits
,
"m"
,
len
)
==
0
)
timeunits
=
TUNIT_MINUTE
;
else
if
(
memcmp
(
stepunits
,
"h"
,
len
)
==
0
)
timeunits
=
TUNIT_HOUR
;
else
if
(
memcmp
(
stepunits
,
"3h"
,
len
)
==
0
)
timeunits
=
TUNIT_3HOURS
;
else
if
(
memcmp
(
stepunits
,
"6h"
,
len
)
==
0
)
timeunits
=
TUNIT_6HOURS
;
else
if
(
memcmp
(
stepunits
,
"12h"
,
len
)
==
0
)
timeunits
=
TUNIT_12HOURS
;
else
if
(
memcmp
(
stepunits
,
"D"
,
len
)
==
0
)
timeunits
=
TUNIT_DAY
;
else
if
(
memcmp
(
stepunits
,
"M"
,
len
)
==
0
)
timeunits
=
TUNIT_MONTH
;
else
if
(
memcmp
(
stepunits
,
"Y"
,
len
)
==
0
)
timeunits
=
TUNIT_YEAR
;
else
if
(
lprint
)
{
Message
(
"Step units >%s< unsupported!"
,
stepunits
);
...
...
Write
Preview
Markdown
is supported
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