Browse Source

Fixed and issue with the x limits being the same value when using MercatorWithLatTS. Fixes #24

main
Bill Ladwig 8 years ago
parent
commit
8fd75f893a
  1. 7
      doc/source/new.rst
  2. 2
      src/wrf/projection.py
  3. 2
      src/wrf/version.py

7
doc/source/new.rst

@ -4,6 +4,13 @@ What's New
Releases Releases
------------- -------------
v1.0.3
^^^^^^^^^^^^^^
- Relase 1.0.3
- Fixed an issue with the cartopy Mercator subclass where the xlimits were
being calculated to the same value (or very close), causing blank plots.
v1.0.2 v1.0.2
^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^

2
src/wrf/projection.py

@ -69,7 +69,7 @@ if cartopy_enabled():
# to the same value, so make sure the left one is negative # to the same value, so make sure the left one is negative
xlimits = limits[..., 0] xlimits = limits[..., 0]
if xlimits[0] == xlimits[1]: if math.fabs(xlimits[0] - xlimits[1]) < 1e-6:
if xlimits[0] < 0: if xlimits[0] < 0:
xlimits[1] = -xlimits[1] xlimits[1] = -xlimits[1]
else: else:

2
src/wrf/version.py

@ -1,2 +1,2 @@
__version__ = "1.0.2" __version__ = "1.0.3"

Loading…
Cancel
Save