Skip to content
Snippets Groups Projects
Commit fe766560 authored by TGermain's avatar TGermain
Browse files
parents c4699a09 bc049a59
No related branches found
No related tags found
No related merge requests found
......@@ -964,6 +964,7 @@ class Tile:
cover_max: int = 100,
nb_proc: int = 4,
copy_l2a_sideproducts: bool = False,
compute = True,
):
"""
Compute all missing l2a for l1c products between date_min and date_max
......@@ -995,8 +996,7 @@ class Tile:
if l2a_remove_list:
self.remove_l2a(l2a_remove_list)
l1c_process_list = []
l1c_process_list.extend(
list(
temp_list = list(
[
p.identifier,
copy_l2a_sideproducts,
......@@ -1009,8 +1009,8 @@ class Tile:
cover_max = cover_max
)
)
)
l1c_process_list = list(chain.from_iterable(l1c_process_list))
l1c_process_list.extend(temp_list)
# l1c_process_list = list(chain.from_iterable(l1c_process_list))
if l1c_process_list:
logger.info(
"{} l1c products to process:".format(len(l1c_process_list))
......@@ -1019,7 +1019,7 @@ class Tile:
else:
logger.info("All l2a products already computed")
l2a_res = False
if l1c_process_list:
if l1c_process_list and compute:
l2a_res = l2a_multiprocessing(l1c_process_list, nb_proc=nb_proc)
def compute_cloudmasks(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment