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
cdo
Commits
1c74c37d
Commit
1c74c37d
authored
Oct 12, 2015
by
Uwe Schulzweida
Browse files
sinusoidal_to_geo: use gen_param()
parent
11b8f931
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grid.c
View file @
1c74c37d
...
...
@@ -506,8 +506,8 @@ void sinusoidal_to_geo(int gridsize, double *xvals, double *yvals)
long
i
;
int
nbpar
=
0
;
params
[
nbpar
++
]
=
(
char
*
)
"proj=sinu"
;
params
[
nbpar
++
]
=
(
char
*
)
"ellps=WGS84"
;
params
[
nbpar
++
]
=
gen_param
(
"proj=sinu"
)
;
params
[
nbpar
++
]
=
gen_param
(
"ellps=WGS84"
)
;
if
(
cdoVerbose
)
for
(
i
=
0
;
i
<
nbpar
;
++
i
)
...
...
@@ -517,6 +517,8 @@ void sinusoidal_to_geo(int gridsize, double *xvals, double *yvals)
if
(
!
proj
)
cdoAbort
(
"proj error: %s"
,
pj_strerrno
(
pj_errno
));
for
(
i
=
0
;
i
<
nbpar
;
++
i
)
Free
(
params
[
i
]);
/* proj->over = 1; */
/* allow longitude > 180 */
for
(
i
=
0
;
i
<
gridsize
;
i
++
)
...
...
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