Skip to content

Commit

Permalink
was returning flipped y1/y2 even if user specified directions
Browse files Browse the repository at this point in the history
fix #1020
  • Loading branch information
doutriaux1 committed Feb 9, 2015
1 parent 60b5589 commit e637e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/vcs/Lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit e637e9c

Please sign in to comment.