@@ -271,7 +271,7 @@ def transform_non_affine(self, values):
271271
272272 x = (cos_latitude * np .sin (half_long )) / sinc_alpha
273273 y = np .sin (latitude ) / sinc_alpha
274- return np .column_stack ([ x , y ])
274+ return np .vstack (( x , y )). T
275275
276276 def inverted (self ):
277277 # docstring inherited
@@ -313,7 +313,7 @@ def transform_non_affine(self, values):
313313 alpha = np .sqrt (1.0 + cos_latitude * np .cos (half_long ))
314314 x = (2.0 * sqrt2 ) * (cos_latitude * np .sin (half_long )) / alpha
315315 y = (sqrt2 * np .sin (latitude )) / alpha
316- return np .column_stack ([ x , y ])
316+ return np .vstack (( x , y )). T
317317
318318 def inverted (self ):
319319 # docstring inherited
@@ -327,7 +327,7 @@ def transform_non_affine(self, values):
327327 z = np .sqrt (1 - (x / 4 ) ** 2 - (y / 2 ) ** 2 )
328328 longitude = 2 * np .arctan ((z * x ) / (2 * (2 * z ** 2 - 1 )))
329329 latitude = np .arcsin (y * z )
330- return np .column_stack ([ longitude , latitude ])
330+ return np .vstack (( longitude , latitude )). T
331331
332332 def inverted (self ):
333333 # docstring inherited
@@ -377,9 +377,8 @@ def d(theta):
377377 d = 0.5 * (3 * np .pi * e ** 2 ) ** (1.0 / 3 )
378378 aux [ihigh ] = (np .pi / 2 - d ) * np .sign (latitude [ihigh ])
379379
380- xy = np .empty (values .shape , dtype = float )
381- xy [:, 0 ] = (2.0 * np .sqrt (2.0 ) / np .pi ) * longitude * np .cos (aux )
382- xy [:, 1 ] = np .sqrt (2.0 ) * np .sin (aux )
380+ xy = np .vstack (((2.0 * np .sqrt (2.0 ) / np .pi ) * longitude * np .cos (aux ),
381+ np .sqrt (2.0 ) * np .sin (aux ))).T
383382
384383 return xy
385384
@@ -397,7 +396,7 @@ def transform_non_affine(self, values):
397396 theta = np .arcsin (y / np .sqrt (2 ))
398397 longitude = (np .pi / (2 * np .sqrt (2 ))) * x / np .cos (theta )
399398 latitude = np .arcsin ((2 * theta + np .sin (2 * theta )) / np .pi )
400- return np .column_stack ([ longitude , latitude ])
399+ return np .vstack (( longitude , latitude )). T
401400
402401 def inverted (self ):
403402 # docstring inherited
@@ -446,7 +445,7 @@ def transform_non_affine(self, values):
446445 x = k * cos_lat * np .sin (diff_long )
447446 y = k * (np .cos (clat )* sin_lat - np .sin (clat )* cos_lat * cos_diff_long )
448447
449- return np .column_stack ([ x , y ])
448+ return np .vstack (( x , y )). T
450449
451450 def inverted (self ):
452451 # docstring inherited
@@ -477,7 +476,7 @@ def transform_non_affine(self, values):
477476 longitude = clong + np .arctan (
478477 (x * sin_c ) / (p * np .cos (clat )* cos_c - y * np .sin (clat )* sin_c ))
479478
480- return np .column_stack ([ longitude , latitude ])
479+ return np .vstack (( longitude , latitude )). T
481480
482481 def inverted (self ):
483482 # docstring inherited
0 commit comments