From ceee5708fefd2b30b6450456f95621d341023b72 Mon Sep 17 00:00:00 2001 From: Bryan Marfito Date: Tue, 12 Nov 2024 16:31:07 +0800 Subject: [PATCH] Removes np.nan in output of spatial_filter.py --- src/mintpy/spatial_filter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mintpy/spatial_filter.py b/src/mintpy/spatial_filter.py index cce901fc7..5806b7bed 100644 --- a/src/mintpy/spatial_filter.py +++ b/src/mintpy/spatial_filter.py @@ -195,6 +195,7 @@ def filter_file(fname, ds_names=None, filter_type='lowpass_gaussian', filter_par data = filter_data(data, filter_type, filter_par) # save + data *= ~np.isnan(data) dsDict[ds_name] = data # write to file