Skip to content

Commit

Permalink
Fix the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Feb 10, 2024
1 parent 7653c5f commit db90a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sarsen/datamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit db90a6f

Please sign in to comment.