From 5dd8414efa753cbe3a937201feb339557d1cd443 Mon Sep 17 00:00:00 2001 From: Michaela Sizemore Date: Mon, 28 Feb 2022 11:51:51 -0700 Subject: [PATCH] Update Mercator projection attributes --- src/wrf/projection.py | 7 ++----- test/test_mercator.py | 0 2 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 test/test_mercator.py diff --git a/src/wrf/projection.py b/src/wrf/projection.py index b2aca20..e169341 100644 --- a/src/wrf/projection.py +++ b/src/wrf/projection.py @@ -76,12 +76,9 @@ if cartopy_enabled(): else: xlimits[0] = -xlimits[0] - self._xlimits = tuple(xlimits) - self._ylimits = tuple(limits[..., 1]) - # Compatibility with cartopy >= 0.17 - self._x_limits = self._xlimits - self._y_limits = self._ylimits + self._x_limits = tuple(xlimits) + self._y_limits = tuple(limits[..., 1]) self._threshold = np.diff(self.x_limits)[0] / 720 diff --git a/test/test_mercator.py b/test/test_mercator.py new file mode 100644 index 0000000..e69de29