From 9c7323224e29c5c5c134e17b367a55457052bc84 Mon Sep 17 00:00:00 2001 From: David Hoese Date: Wed, 18 Oct 2023 09:32:15 -0500 Subject: [PATCH] Fix shortcut for prime meridian checks --- pyresample/utils/proj4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyresample/utils/proj4.py b/pyresample/utils/proj4.py index 76de48505..d40cff628 100644 --- a/pyresample/utils/proj4.py +++ b/pyresample/utils/proj4.py @@ -179,7 +179,7 @@ def ignore_pyproj_proj_warnings(): def get_geodetic_crs_with_no_datum_shift(crs: CRS) -> CRS: """Get the geodetic CRS for the provided CRS but with no prime meridian shift.""" gcrs = crs.geodetic_crs - if gcrs.prime_meridian == 0: + if gcrs.prime_meridian.longitude == 0: return gcrs with ignore_pyproj_proj_warnings(): gcrs_dict = gcrs.to_dict()