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
1f0a1638
Commit
1f0a1638
authored
Jul 16, 2019
by
Uwe Schulzweida
Browse files
gridInqParamLCC: added support for attribute semi_major_axis.
parent
adfc7a24
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grid.c
View file @
1f0a1638
...
...
@@ -3787,6 +3787,7 @@ int gridInqParamLCC(int gridID, double missval, double *lon_0, double *lat_0, do
if
(
cdiInqAttConvertedToFloat
(
gridID
,
atttype
,
attname
,
attlen
,
attflt
)
)
{
if
(
strIsEqual
(
attname
,
"earth_radius"
)
)
*
a
=
attflt
[
0
];
else
if
(
strIsEqual
(
attname
,
"semi_major_axis"
)
)
*
a
=
attflt
[
0
];
else
if
(
strIsEqual
(
attname
,
"inverse_flattening"
)
)
*
rf
=
attflt
[
0
];
else
if
(
strIsEqual
(
attname
,
"longitude_of_central_meridian"
)
)
*
lon_0
=
attflt
[
0
];
else
if
(
strIsEqual
(
attname
,
"latitude_of_projection_origin"
)
)
*
lat_0
=
attflt
[
0
];
...
...
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