diff --git a/decloud/production/monthly_synthesis_processor_s2s1.py b/decloud/production/monthly_synthesis_processor_s2s1.py index 4243e9ff494302643631ee756a6328c1425b78b8..10adc0aea0faeaa99f090f9b81d2ca1c243da2d2 100644 --- a/decloud/production/monthly_synthesis_processor_s2s1.py +++ b/decloud/production/monthly_synthesis_processor_s2s1.py @@ -272,7 +272,7 @@ if __name__ == "__main__": input_s1_products.sort(key=_closest_date, reverse=True) input_s1_images_10m = [product.get_raster_10m() for product in input_s1_products] # creating a mosaic with the N closest S1 images - s1t = pyotb.App('Mosaic', input_s1_images_10m[:s1_Nimages], nodata=0) + s1t = pyotb.App('Mosaic', input_s1_images_10m[-s1_Nimages:], nodata=0) candidates.append({'s2': s2_product, 's1': s1t})