From db90a6f0d018fb3aa2bfaa12f79edfc05893774c Mon Sep 17 00:00:00 2001 From: Alessandro Amici Date: Sat, 10 Feb 2024 17:14:05 +0100 Subject: [PATCH] Fix the condition --- sarsen/datamodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sarsen/datamodel.py b/sarsen/datamodel.py index 2ec4222..3c3108b 100644 --- a/sarsen/datamodel.py +++ b/sarsen/datamodel.py @@ -56,7 +56,7 @@ def interp_sar( method: xr.core.types.InterpOptions = "nearest", ground_range: Optional[xr.DataArray] = None, ) -> xr.DataArray: - if ground_range is not None: + if ground_range is None: ground_range = self.slant_range_time_to_ground_range( azimuth_time, slant_range_time )