From 0c933ad436f5641765a38534df754a994d01cf5d Mon Sep 17 00:00:00 2001 From: Felicity Chun <32269066+flicj191@users.noreply.github.com> Date: Tue, 20 Feb 2024 17:56:26 +1100 Subject: [PATCH] Fix for `recipe_seaice_drift.yml`: fix CRS transformer for "North Pole Stereographic" (#3531) --- esmvaltool/diag_scripts/seaice_drift/seaice_drift.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esmvaltool/diag_scripts/seaice_drift/seaice_drift.py b/esmvaltool/diag_scripts/seaice_drift/seaice_drift.py index fd586f6b7e..6791254109 100644 --- a/esmvaltool/diag_scripts/seaice_drift/seaice_drift.py +++ b/esmvaltool/diag_scripts/seaice_drift/seaice_drift.py @@ -540,7 +540,8 @@ def __init__(self, polygon=None, lat=None, lon=None): polygon.append(polygon[0]) self.transformer = Transformer.from_crs("WGS84", - "North_Pole_Stereographic") + "North_Pole_Stereographic", + always_xy=True) transformed = [] for lon_val, lat_val in polygon: