From 606216b916ab60029b8c648d3224db36abdc39fe Mon Sep 17 00:00:00 2001 From: Alex Zvoleff Date: Sat, 18 Sep 2021 10:23:42 -0400 Subject: [PATCH] Fix to save proper band name --- LDMP/localexecution/ldn.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LDMP/localexecution/ldn.py b/LDMP/localexecution/ldn.py index 7771ef127..40aefdd76 100644 --- a/LDMP/localexecution/ldn.py +++ b/LDMP/localexecution/ldn.py @@ -511,7 +511,7 @@ def compute_ldn( activated=True ) ldn_job.results.bands.append(sdg_prod_band) - sdg_df.bands.append(sdg_band) + sdg_df.bands.append(DataFile(sdg_path, [sdg_prod_band])) reproj_df = _combine_data_files(reproj_path, in_dfs) @@ -1341,9 +1341,6 @@ def work(self): # Width of cells in latitude pixel_height = src_gt[5] - xt = None - # Minus 1 as first band is degradation, not an annual layer - # pr = cProfile.Profile() # pr.enable() with ThreadPoolExecutor(max_workers=4) as executor: