From c5a9fac26d33e9ffb9723a30a7b020531cce6b2a Mon Sep 17 00:00:00 2001 From: Alexey Pechnikov Date: Sat, 21 Sep 2024 15:17:13 +0700 Subject: [PATCH] Fix for the previous commit --- pygmtsar/pygmtsar/Stack_topo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmtsar/pygmtsar/Stack_topo.py b/pygmtsar/pygmtsar/Stack_topo.py index 23324d0..7323087 100644 --- a/pygmtsar/pygmtsar/Stack_topo.py +++ b/pygmtsar/pygmtsar/Stack_topo.py @@ -218,7 +218,7 @@ def block_phase_dask(block_topo, y_chunk, x_chunk, prm1, prm2): # clock_stop=prm.get('clock_start') + maxy / prm.get('PRF') / 86400)\ # .to_file(prm_filename) - def prepare_prms(pair, maxy, maxx, dt1, dt2): + def prepare_prms(pair, dt1, dt2): date1, date2 = pair prm1 = self.PRM(date1) prm2 = self.PRM(date2) @@ -236,7 +236,7 @@ def prepare_prms(pair, maxy, maxx, dt1, dt2): .set(prm1.SAT_baseline(prm1).sel('SC_height','SC_height_start','SC_height_end')).fix_aligned() return (prm1, prm2) - prms = joblib.Parallel(n_jobs=-1)(joblib.delayed(prepare_prms)(pair, maxy, maxx, dt1, dt2) for pair in pairs) + prms = joblib.Parallel(n_jobs=-1)(joblib.delayed(prepare_prms)(pair, dt1, dt2) for pair in pairs) # fill NaNs by 0 and expand to 3d topo2d = da.where(da.isnan(topo.data), 0, topo.data)