From 1e21e85e50e2dfab74e426bdda4958c2b328e84f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dries=20De=20Bi=C3=A8vre?= <dries.debievre@uclouvain.be>
Date: Mon, 24 Feb 2025 15:38:15 +0100
Subject: [PATCH] correction in clip images

---
 docs/source/sentinel_2/s2_prepro_2025.ipynb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/source/sentinel_2/s2_prepro_2025.ipynb b/docs/source/sentinel_2/s2_prepro_2025.ipynb
index 4ed9203..a2c5790 100644
--- a/docs/source/sentinel_2/s2_prepro_2025.ipynb
+++ b/docs/source/sentinel_2/s2_prepro_2025.ipynb
@@ -547,7 +547,7 @@
     "# Plot image\n",
     "\n",
     "# First image of the list\n",
-    "im_file = glob.glob(f'{clipped_path}*_B*.tif')[2]\n",
+    "im_file = glob.glob(f'{clipped_path}*_B*.tif')[0]\n",
     "print(im_file)\n",
     "src = rasterio.open(im_file, \"r\")\n",
     "im = src.read(1)\n",
@@ -785,7 +785,7 @@
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.11.10"
+   "version": "3.11.4"
   },
   "metadata": {
    "interpreter": {
-- 
GitLab