From 8ce27d9411902845b318713db261659a07974a2e Mon Sep 17 00:00:00 2001 From: George Halal Date: Mon, 18 Jul 2022 14:57:36 -0700 Subject: [PATCH] Updated cdelt in get_lmax_limit to take into account negative values of cdelt causing the lmax to be negative. --- pspy/so_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pspy/so_map.py b/pspy/so_map.py index 15c7302..3248d94 100644 --- a/pspy/so_map.py +++ b/pspy/so_map.py @@ -152,7 +152,7 @@ def get_lmax_limit(self): if self.pixel == "HEALPIX": l_max_limit = 3 * self.nside - 1 elif self.pixel == "CAR": - cdelt = self.data.wcs.wcs.cdelt[1] + cdelt = abs(self.data.wcs.wcs.cdelt[1]) l_max_limit = 360 / cdelt / 4 return l_max_limit