Commit 1c74c37d authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

sinusoidal_to_geo: use gen_param()

parent 11b8f931
......@@ -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++ )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment