From e637e9c34506638431ef8eea0f0c3ef7ea01d971 Mon Sep 17 00:00:00 2001 From: Charles Doutriaux Date: Mon, 9 Feb 2015 13:50:40 -0800 Subject: [PATCH] was returning flipped y1/y2 even if user specified directions fix #1020 --- Packages/vcs/Lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/vcs/Lib/utils.py b/Packages/vcs/Lib/utils.py index 4908ee3956..cf0f670451 100644 --- a/Packages/vcs/Lib/utils.py +++ b/Packages/vcs/Lib/utils.py @@ -1578,7 +1578,7 @@ def getworldcoordinates(gm,X,Y): else: wc[3] = gm.datawc_y2 if (((not isinstance(Y,cdms2.axis.TransientAxis) and isinstance(X,cdms2.axis.TransientAxis)) or not vcs.utils.monotonic(Y[:])) and numpy.allclose([gm.datawc_y1,gm.datawc_y2],1.e20)) \ - or (hasattr(gm,"projection") and vcs.elements["projection"][gm.projection].type!="linear") : + or (hasattr(gm,"projection") and vcs.elements["projection"][gm.projection].type.lower().split()[0] not in ["linear","polar"] and numpy.allclose([gm.datawc_y1,gm.datawc_y2],1.e20) and numpy.allclose([gm.datawc_x1,gm.datawc_x2],1.e20)) : wc[2]=Y[:].min() wc[3]=Y[:].max() if wc[3]==wc[2]: