{ "cells": [ { "cell_type": "markdown", "id": "0c18e312-8421-47d7-84f9-ed7d5e47e7ee", "metadata": { "tags": [] }, "source": [ "#### Load packages and connect to SentinelHub" ] }, { "cell_type": "code", "execution_count": 1, "id": "b7ca7102-5fd9-481f-90cd-3ba60e288649", "metadata": {}, "outputs": [], "source": [ "# $ pip install sentinelhub\n", "# pip install gdal\n", "\n", "import os\n", "import json\n", "import datetime\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "from pathlib import Path\n", "from osgeo import gdal\n", "\n", "from sentinelhub import MimeType, CRS, BBox, SentinelHubRequest, SentinelHubDownloadClient, \\\n", " DataCollection, bbox_to_dimensions, DownloadRequest, SHConfig, BBoxSplitter, read_data, Geometry, SentinelHubCatalog\n", "\n", "config = SHConfig()\n", "catalog = SentinelHubCatalog(config=config)\n", "\n", "import time\n", "import shutil\n", "\n", "import geopandas as gpd\n", "from shapely.geometry import MultiLineString, MultiPolygon, Polygon, box, shape\n" ] }, { "cell_type": "code", "execution_count": 2, "id": "5491a840-779c-4f0c-8164-c3de738b3298", "metadata": {}, "outputs": [], "source": [ "config.sh_client_id = '1a72d811-4f0e-4447-8282-df09608cff44'\n", "config.sh_client_secret = 'FcBlRL29i9ZmTzhmKTv1etSMFs5PxSos'" ] }, { "cell_type": "code", "execution_count": 4, "id": "eb1fb662-0e25-4ca9-8317-c6953290842b", "metadata": {}, "outputs": [], "source": [ "collection_id = 'c691479f-358c-46b1-b0f0-e12b70a9856c'\n", "byoc = DataCollection.define_byoc(\n", " collection_id,\n", " name='planet_data2',\n", " is_timeless=True)" ] }, { "cell_type": "markdown", "id": "6adb603d-8182-48c6-a051-869e16ee7bba", "metadata": { "tags": [] }, "source": [ "#### Set some variables\n", "The only place anything might need to be changed." ] }, { "cell_type": "code", "execution_count": 5, "id": "060396e0-e5ee-4b54-b211-5d8bfcba167f", "metadata": {}, "outputs": [], "source": [ "#project = 'Mkulazi_trail' #or xinavane or chemba_test_8b\n", "#project = 'xinavane' #or xinavane or chemba_test_8b\n", "project = 'angata' #or xinavane or chemba_test_8b\n" ] }, { "cell_type": "code", "execution_count": 35, "id": "c9f79e81-dff8-4109-8d26-6c423142dcf2", "metadata": {}, "outputs": [], "source": [ "# Adjust the number of days needed\n", "days = 5" ] }, { "cell_type": "code", "execution_count": 36, "id": "e18bdf8f-be4b-44ab-baaa-de5de60d92cb", "metadata": {}, "outputs": [], "source": [ "#delete all the satellite outputs -> then True\n", "empty_folder_question = True" ] }, { "cell_type": "markdown", "id": "81bbb513-0bd2-4277-83e8-6f94051ce70b", "metadata": { "tags": [] }, "source": [ "#### Define functions\n", "After this block, no manual changes to parameters are required. \n" ] }, { "cell_type": "code", "execution_count": 37, "id": "3f7c8e04-4569-457b-b39d-283582c4ba36", "metadata": {}, "outputs": [], "source": [ "BASE_PATH = Path('../laravel_app/storage/app') / os.getenv('PROJECT_DIR',project) \n", "BASE_PATH_SINGLE_IMAGES = Path(BASE_PATH / 'single_images')\n", "folder_for_merged_tifs = str(BASE_PATH / 'merged_tif')\n", "folder_for_virtual_raster = str(BASE_PATH / 'merged_virtual')\n", "#geojson_file = Path(BASE_PATH /'Data'/ 'pivot.geojson') #the geojsons should have the same name\n", "geojson_file = Path(BASE_PATH /'Data'/ ('pivot_2.geojson' if project == \"esa\" else 'pivot.geojson')) #the geojsons should have the same name\n", " \n", "# Check if the folders exist, and if not, create them\n", "if not os.path.exists(BASE_PATH_SINGLE_IMAGES):\n", " os.makedirs(BASE_PATH_SINGLE_IMAGES)\n", " \n", "if not os.path.exists(folder_for_merged_tifs):\n", " os.makedirs(folder_for_merged_tifs)\n", "\n", "if not os.path.exists(folder_for_virtual_raster):\n", " os.makedirs(folder_for_virtual_raster)" ] }, { "cell_type": "code", "execution_count": 38, "id": "244b5752-4f02-4347-9278-f6a0a46b88f4", "metadata": {}, "outputs": [], "source": [ "evalscript_original = \"\"\"\n", " //VERSION=3\n", "\n", " function setup() {\n", " return {\n", " input: [{\n", " bands: [\"red\", \"green\", \"blue\", \"nir\", \"udm1\"]\n", " }],\n", " output: {\n", " bands: 4\n", " //sampleType: \"FLOAT32\"\n", " }\n", " };\n", " }\n", "\n", " function evaluatePixel(sample) {\n", " // Scale the bands and return as arrays\n", " var scaledBlue = [2.5 * sample.blue / 10000];\n", " var scaledGreen = [2.5 * sample.green / 10000];\n", " var scaledRed = [2.5 * sample.red / 10000];\n", " var scaledNIR = [2.5 * sample.nir / 10000];\n", " \n", " // Only use udm1 mask (Planet's usable data mask)\n", " if (sample.udm1 == 0) {\n", " return [scaledRed, scaledGreen, scaledBlue, scaledNIR];\n", " } else {\n", " return [NaN, NaN, NaN, NaN];\n", " }\n", " }\n", "\"\"\"\n", "\n", "def get_true_color_request_day(time_interval, bbox, size):\n", " return SentinelHubRequest(\n", " evalscript=evalscript_original,\n", " input_data=[\n", " SentinelHubRequest.input_data(\n", " data_collection=DataCollection.planet_data2,\n", " time_interval=(time_interval, time_interval)\n", " )\n", " ],\n", " responses=[\n", " SentinelHubRequest.output_response('default', MimeType.TIFF)\n", " ],\n", " bbox=bbox,\n", " size=size,\n", " config=config,\n", " data_folder=str(BASE_PATH_SINGLE_IMAGES / time_interval),\n", "\n", " )\n", "\n", "\n", "def download_function(slot, bbox, size):\n", " # create a list of requests\n", " list_of_requests = [get_true_color_request_day(slot, bbox, size)]\n", " list_of_requests = [request.download_list[0] for request in list_of_requests]\n", "\n", " # download data chemba west with multiple threads\n", " data = SentinelHubDownloadClient(config=config).download(list_of_requests, max_threads=15)\n", " print(f' Image downloaded for ' +slot + ' and bbox ' + str(bbox))\n", " \n", " time.sleep(.1)\n", " \n", "\n", "def merge_files(slot):\n", " \n", " # List the downloaded Tiffs in the different subfolders with pathlib (native library)\n", " file_list = [f\"{x}/response.tiff\" for x in Path(BASE_PATH_SINGLE_IMAGES / slot).iterdir()]\n", " \n", " #print(file_list)\n", "\n", " folder_for_merged_tifs = str(BASE_PATH / 'merged_tif' / f\"{slot}.tif\")\n", " folder_for_virtual_raster = str(BASE_PATH / 'merged_virtual' / f\"merged{slot}.vrt\")\n", "\n", " # Create a virtual raster\n", " vrt_all = gdal.BuildVRT(folder_for_virtual_raster, file_list)\n", " vrt_all = gdal.BuildVRT(folder_for_virtual_raster, file_list)\n", "\n", " # Convert to JPEG\n", " gdal.Translate(folder_for_merged_tifs,folder_for_virtual_raster)" ] }, { "cell_type": "code", "execution_count": 39, "id": "848dc773-70d6-4ae6-b05c-d6ebfb41624d", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Monthly time windows:\n", "\n", "2026-01-02\n", "2026-01-03\n", "2026-01-04\n", "2026-01-05\n", "2026-01-06\n" ] } ], "source": [ "days_needed = int(os.environ.get(\"DAYS\", days))\n", "date_str = os.environ.get(\"DATE\")\n", "\n", "if date_str:\n", " # Parse de datumstring naar een datetime.date object\n", " end = datetime.datetime.strptime(date_str, \"%Y-%m-%d\").date()\n", "else:\n", " # Gebruik de huidige datum als fallback\n", " end = datetime.date.today() \n", "\n", "start = end - datetime.timedelta(days=days_needed - 1)\n", "\n", "slots = [(start + datetime.timedelta(days=i)).strftime('%Y-%m-%d') for i in range(days_needed)]\n", "\n", "print('Monthly time windows:\\n')\n", "if len(slots) > 10:\n", " for slot in slots[:3]:\n", " print(slot)\n", " print(\"...\")\n", " for slot in slots[-3:]:\n", " print(slot)\n", "else:\n", " for slot in slots:\n", " print(slot)\n", "\n" ] }, { "cell_type": "markdown", "id": "f8ea846f-783b-4460-a951-7b522273555f", "metadata": {}, "source": [ "#### Download images\n" ] }, { "cell_type": "code", "execution_count": 40, "id": "c803e373-2567-4233-af7d-0d2d6f7d4f8e", "metadata": {}, "outputs": [], "source": [ "geo_json = gpd.read_file(str(geojson_file))" ] }, { "cell_type": "code", "execution_count": 41, "id": "dc24d54e-2272-4f30-bcf5-4d8fc381915c", "metadata": {}, "outputs": [], "source": [ "geometries = [Geometry(geometry, crs=CRS.WGS84) for geometry in geo_json.geometry]" ] }, { "cell_type": "code", "execution_count": 42, "id": "cd071b42-d0cd-4e54-8f88-ad1a339748e3", "metadata": {}, "outputs": [], "source": [ "shapely_geometries = [geometry.geometry for geometry in geometries]" ] }, { "cell_type": "code", "execution_count": 43, "id": "301d12e4-e47a-4034-aec0-aa5673e64935", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Area bounding box: BBox(((34.43227940231912, -1.412210768346171), (34.9511271057322, -0.7403944081102)), crs=CRS('4326'))\n", "\n" ] } ], "source": [ "bbox_splitter = BBoxSplitter(\n", " shapely_geometries, CRS.WGS84, (20, 20), reduce_bbox_sizes=True\n", ") # bounding box will be split into a grid of 5x4 bounding boxes\n", "\n", "# based on https://github.com/sentinel-hub/sentinelhub-py/blob/master/examples/large_area_utilities.ipynb \n", "\n", "print(\"Area bounding box: {}\\n\".format(bbox_splitter.get_area_bbox().__repr__()))\n", "\n", "bbox_list = bbox_splitter.get_bbox_list()\n", "info_list = bbox_splitter.get_info_list()\n" ] }, { "cell_type": "code", "execution_count": 44, "id": "431f6856-8d7e-4868-b627-20deeb47d77e", "metadata": {}, "outputs": [ { "data": { "image/svg+xml": [ "" ], "text/plain": [ "" ] }, "execution_count": 44, "metadata": {}, "output_type": "execute_result" } ], "source": [ "geometry_list = bbox_splitter.get_geometry_list()\n", "\n", "geometry_list[0]" ] }, { "cell_type": "code", "execution_count": 45, "id": "18655785", "metadata": {}, "outputs": [], "source": [ "# Function to check if images are available for a given date\n", "def is_image_available(date):\n", " for bbox in bbox_list:\n", " search_iterator = catalog.search(\n", " collection=byoc,\n", " bbox=bbox, # Define your bounding box\n", " time=(date, date)\n", " )\n", " if len(list(search_iterator)) > 0:\n", " return True\n", " return False\n", "\n" ] }, { "cell_type": "code", "execution_count": 46, "id": "a6fc418f", "metadata": {}, "outputs": [], "source": [ "# Filter slots to only include dates with available images\n", "available_slots = [slot for slot in slots if is_image_available(slot)]\n", "\n", "# Store the first 5 available slots for comparison later (if available)\n", "comparison_slots = available_slots[:min(5, len(available_slots))]\n", "\n" ] }, { "cell_type": "code", "execution_count": 47, "id": "ebc416be", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[]\n", "Total slots: 5\n", "Available slots: 0\n", "Excluded slots due to empty dates: 5\n" ] } ], "source": [ "print(available_slots)\n", "print(f\"Total slots: {len(slots)}\")\n", "print(f\"Available slots: {len(available_slots)}\")\n", "print(f\"Excluded slots due to empty dates: {len(slots) - len(available_slots)}\")\n" ] }, { "cell_type": "code", "execution_count": 18, "id": "b0cabe8f-e1f2-4b18-8ac0-c2565d0ff16b", "metadata": {}, "outputs": [], "source": [ "def show_splitter(splitter, alpha=0.2, area_buffer=0.2, show_legend=False):\n", " area_bbox = splitter.get_area_bbox()\n", " minx, miny, maxx, maxy = area_bbox\n", " lng, lat = area_bbox.middle\n", " w, h = maxx - minx, maxy - miny\n", " minx = minx - area_buffer * w\n", " miny = miny - area_buffer * h\n", " maxx = maxx + area_buffer * w\n", " maxy = maxy + area_buffer * h\n", "\n", " fig = plt.figure(figsize=(10, 10))\n", " ax = fig.add_subplot(111)\n", "\n", " base_map = Basemap(\n", " projection=\"mill\",\n", " lat_0=lat,\n", " lon_0=lng,\n", " llcrnrlon=minx,\n", " llcrnrlat=miny,\n", " urcrnrlon=maxx,\n", " urcrnrlat=maxy,\n", " resolution=\"l\",\n", " epsg=4326,\n", " )\n", " base_map.drawcoastlines(color=(0, 0, 0, 0))\n", "\n", " area_shape = splitter.get_area_shape()\n", "\n", " if isinstance(area_shape, Polygon):\n", " polygon_iter = [area_shape]\n", " elif isinstance(area_shape, MultiPolygon):\n", " polygon_iter = area_shape.geoms\n", " else:\n", " raise ValueError(f\"Geometry of type {type(area_shape)} is not supported\")\n", "\n", " for polygon in polygon_iter:\n", " if isinstance(polygon.boundary, MultiLineString):\n", " for linestring in polygon.boundary:\n", " ax.add_patch(PltPolygon(np.array(linestring), closed=True, facecolor=(0, 0, 0, 0), edgecolor=\"red\"))\n", " else:\n", " ax.add_patch(\n", " PltPolygon(np.array(polygon.boundary.coords), closed=True, facecolor=(0, 0, 0, 0), edgecolor=\"red\")\n", " )\n", "\n", " bbox_list = splitter.get_bbox_list()\n", " info_list = splitter.get_info_list()\n", "\n", " cm = plt.get_cmap(\"jet\", len(bbox_list))\n", " legend_shapes = []\n", " for i, bbox in enumerate(bbox_list):\n", " wgs84_bbox = bbox.transform(CRS.WGS84).get_polygon()\n", "\n", " tile_color = tuple(list(cm(i))[:3] + [alpha])\n", " ax.add_patch(PltPolygon(np.array(wgs84_bbox), closed=True, facecolor=tile_color, edgecolor=\"green\"))\n", "\n", " if show_legend:\n", " legend_shapes.append(plt.Rectangle((0, 0), 1, 1, fc=cm(i)))\n", "\n", " if show_legend:\n", " legend_names = []\n", " for info in info_list:\n", " legend_name = \"{},{}\".format(info[\"index_x\"], info[\"index_y\"])\n", "\n", " for prop in [\"grid_index\", \"tile\"]:\n", " if prop in info:\n", " legend_name = \"{},{}\".format(info[prop], legend_name)\n", "\n", " legend_names.append(legend_name)\n", "\n", " plt.legend(legend_shapes, legend_names)\n", " plt.tight_layout()\n", " plt.show()" ] }, { "cell_type": "code", "execution_count": 19, "id": "41b7369c-f768-44ba-983e-eb8eae4f3afd", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\sentinelhub\\geometry.py:137: SHDeprecationWarning: Initializing `BBox` objects from `BBox` objects will no longer be possible in future versions.\n", " return cls._tuple_from_bbox(bbox)\n", "C:\\Users\\timon\\AppData\\Local\\Temp\\ipykernel_31892\\1551185686.py:59: SHDeprecationWarning: The string representation of `BBox` will change to match its `repr` representation.\n", " print(f' Image downloaded for ' +slot + ' and bbox ' + str(bbox))\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ " Image downloaded for 2025-12-12 and bbox 35.16365354880403,-0.129244801064588,35.165383150793275,-0.128377382105297\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\sentinelhub\\geometry.py:137: SHDeprecationWarning: Initializing `BBox` objects from `BBox` objects will no longer be possible in future versions.\n", " return cls._tuple_from_bbox(bbox)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ " Image downloaded for 2025-12-12 and bbox 35.193511653982014,-0.145471600554821,35.19809832807662,-0.141987962239436\n", " Image downloaded for 2025-12-12 and bbox 35.18616215451003,-0.114589871192489,35.19121482631516,-0.102973861376453\n", " Image downloaded for 2025-12-12 and bbox 35.21682070238462,-0.1690629770542657,35.217207288500255,-0.1683311203817562\n", " Image downloaded for 2025-12-12 and bbox 35.2158044957668,-0.144677484606173,35.21684120977448,-0.143078780850215\n", " Image downloaded for 2025-12-12 and bbox 35.20865614324665,-0.087298898533121,35.21043286859989,-0.085689722918499\n", " Image downloaded for 2025-12-12 and bbox 35.217207288500255,-0.169202795759772,35.227741541988266,-0.165661125894293\n", " Image downloaded for 2025-12-12 and bbox 35.23171024362642,-0.136735670628533,35.233078699287084,-0.1357975666232628\n", " Image downloaded for 2025-12-12 and bbox 35.23170863111195,-0.1357975666232628,35.23247903835522,-0.135019812953777\n", " Image downloaded for 2025-12-12 and bbox 35.250982959636985,-0.160752005818341,35.252909781631075,-0.156696560387186\n", " Image downloaded for 2025-12-13 and bbox 35.16365354880403,-0.129244801064588,35.165383150793275,-0.128377382105297\n", " Image downloaded for 2025-12-13 and bbox 35.193511653982014,-0.145471600554821,35.19809832807662,-0.141987962239436\n", " Image downloaded for 2025-12-13 and bbox 35.18616215451003,-0.114589871192489,35.19121482631516,-0.102973861376453\n", " Image downloaded for 2025-12-13 and bbox 35.21682070238462,-0.1690629770542657,35.217207288500255,-0.1683311203817562\n", " Image downloaded for 2025-12-13 and bbox 35.2158044957668,-0.144677484606173,35.21684120977448,-0.143078780850215\n", " Image downloaded for 2025-12-13 and bbox 35.20865614324665,-0.087298898533121,35.21043286859989,-0.085689722918499\n", " Image downloaded for 2025-12-13 and bbox 35.217207288500255,-0.169202795759772,35.227741541988266,-0.165661125894293\n", " Image downloaded for 2025-12-13 and bbox 35.23171024362642,-0.136735670628533,35.233078699287084,-0.1357975666232628\n", " Image downloaded for 2025-12-13 and bbox 35.23170863111195,-0.1357975666232628,35.23247903835522,-0.135019812953777\n", " Image downloaded for 2025-12-13 and bbox 35.250982959636985,-0.160752005818341,35.252909781631075,-0.156696560387186\n", " Image downloaded for 2025-12-14 and bbox 35.16365354880403,-0.129244801064588,35.165383150793275,-0.128377382105297\n", " Image downloaded for 2025-12-14 and bbox 35.193511653982014,-0.145471600554821,35.19809832807662,-0.141987962239436\n", " Image downloaded for 2025-12-14 and bbox 35.18616215451003,-0.114589871192489,35.19121482631516,-0.102973861376453\n", " Image downloaded for 2025-12-14 and bbox 35.21682070238462,-0.1690629770542657,35.217207288500255,-0.1683311203817562\n", " Image downloaded for 2025-12-14 and bbox 35.2158044957668,-0.144677484606173,35.21684120977448,-0.143078780850215\n", " Image downloaded for 2025-12-14 and bbox 35.20865614324665,-0.087298898533121,35.21043286859989,-0.085689722918499\n", " Image downloaded for 2025-12-14 and bbox 35.217207288500255,-0.169202795759772,35.227741541988266,-0.165661125894293\n", " Image downloaded for 2025-12-14 and bbox 35.23171024362642,-0.136735670628533,35.233078699287084,-0.1357975666232628\n", " Image downloaded for 2025-12-14 and bbox 35.23170863111195,-0.1357975666232628,35.23247903835522,-0.135019812953777\n", " Image downloaded for 2025-12-14 and bbox 35.250982959636985,-0.160752005818341,35.252909781631075,-0.156696560387186\n", " Image downloaded for 2025-12-15 and bbox 35.16365354880403,-0.129244801064588,35.165383150793275,-0.128377382105297\n", " Image downloaded for 2025-12-15 and bbox 35.193511653982014,-0.145471600554821,35.19809832807662,-0.141987962239436\n", " Image downloaded for 2025-12-15 and bbox 35.18616215451003,-0.114589871192489,35.19121482631516,-0.102973861376453\n", " Image downloaded for 2025-12-15 and bbox 35.21682070238462,-0.1690629770542657,35.217207288500255,-0.1683311203817562\n", " Image downloaded for 2025-12-15 and bbox 35.2158044957668,-0.144677484606173,35.21684120977448,-0.143078780850215\n", " Image downloaded for 2025-12-15 and bbox 35.20865614324665,-0.087298898533121,35.21043286859989,-0.085689722918499\n", " Image downloaded for 2025-12-15 and bbox 35.217207288500255,-0.169202795759772,35.227741541988266,-0.165661125894293\n", " Image downloaded for 2025-12-15 and bbox 35.23171024362642,-0.136735670628533,35.233078699287084,-0.1357975666232628\n", " Image downloaded for 2025-12-15 and bbox 35.23170863111195,-0.1357975666232628,35.23247903835522,-0.135019812953777\n", " Image downloaded for 2025-12-15 and bbox 35.250982959636985,-0.160752005818341,35.252909781631075,-0.156696560387186\n", " Image downloaded for 2025-12-16 and bbox 35.16365354880403,-0.129244801064588,35.165383150793275,-0.128377382105297\n", " Image downloaded for 2025-12-16 and bbox 35.193511653982014,-0.145471600554821,35.19809832807662,-0.141987962239436\n", " Image downloaded for 2025-12-16 and bbox 35.18616215451003,-0.114589871192489,35.19121482631516,-0.102973861376453\n", " Image downloaded for 2025-12-16 and bbox 35.21682070238462,-0.1690629770542657,35.217207288500255,-0.1683311203817562\n", " Image downloaded for 2025-12-16 and bbox 35.2158044957668,-0.144677484606173,35.21684120977448,-0.143078780850215\n", " Image downloaded for 2025-12-16 and bbox 35.20865614324665,-0.087298898533121,35.21043286859989,-0.085689722918499\n", " Image downloaded for 2025-12-16 and bbox 35.217207288500255,-0.169202795759772,35.227741541988266,-0.165661125894293\n", " Image downloaded for 2025-12-16 and bbox 35.23171024362642,-0.136735670628533,35.233078699287084,-0.1357975666232628\n", " Image downloaded for 2025-12-16 and bbox 35.23170863111195,-0.1357975666232628,35.23247903835522,-0.135019812953777\n", " Image downloaded for 2025-12-16 and bbox 35.250982959636985,-0.160752005818341,35.252909781631075,-0.156696560387186\n", " Image downloaded for 2025-12-17 and bbox 35.16365354880403,-0.129244801064588,35.165383150793275,-0.128377382105297\n", " Image downloaded for 2025-12-17 and bbox 35.193511653982014,-0.145471600554821,35.19809832807662,-0.141987962239436\n", " Image downloaded for 2025-12-17 and bbox 35.18616215451003,-0.114589871192489,35.19121482631516,-0.102973861376453\n", " Image downloaded for 2025-12-17 and bbox 35.21682070238462,-0.1690629770542657,35.217207288500255,-0.1683311203817562\n", " Image downloaded for 2025-12-17 and bbox 35.2158044957668,-0.144677484606173,35.21684120977448,-0.143078780850215\n", " Image downloaded for 2025-12-17 and bbox 35.20865614324665,-0.087298898533121,35.21043286859989,-0.085689722918499\n", " Image downloaded for 2025-12-17 and bbox 35.217207288500255,-0.169202795759772,35.227741541988266,-0.165661125894293\n", " Image downloaded for 2025-12-17 and bbox 35.23171024362642,-0.136735670628533,35.233078699287084,-0.1357975666232628\n", " Image downloaded for 2025-12-17 and bbox 35.23170863111195,-0.1357975666232628,35.23247903835522,-0.135019812953777\n", " Image downloaded for 2025-12-17 and bbox 35.250982959636985,-0.160752005818341,35.252909781631075,-0.156696560387186\n" ] } ], "source": [ "# Load areas outside the loop if they remain constant\n", "#bbox_area = json.dumps(chosen_area)\n", "#areas = json.loads(os.getenv('BBOX', bbox_area))\n", "resolution = 3\n", "\n", "for slot in available_slots:\n", " for bbox in bbox_list:\n", " bbox = BBox(bbox=bbox, crs=CRS.WGS84)\n", " size = bbox_to_dimensions(bbox, resolution=resolution)\n", " download_function(slot, bbox, size)\n", " time.sleep(0.2)" ] }, { "cell_type": "code", "execution_count": 20, "id": "68db3c15-6f94-432e-b315-c329e4251b21", "metadata": { "tags": [] }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\058e2d289d4736e3c9849b701e651f39/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\188a96ea1317ac58dee123ad26ec8ab8/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\18fc3977357392aa58855adc2b72c3fa/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\5c6be69e7fd4133427236a5b1e182786/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\84127951a708f77383fbe493ecee8b64/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\99af90b6e3694e18ef0601148b39a6ce/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\a5beecba4b72ba0a72ede175029b0b7f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\e2c590cd5b4353d2d337bdaeabdc42f4/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\e9cb9c11c287ffd108108ad0e64ab5f5/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\f74c508b8b47529edddf452191006bbc/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\058e2d289d4736e3c9849b701e651f39/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\188a96ea1317ac58dee123ad26ec8ab8/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\18fc3977357392aa58855adc2b72c3fa/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\5c6be69e7fd4133427236a5b1e182786/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\84127951a708f77383fbe493ecee8b64/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\99af90b6e3694e18ef0601148b39a6ce/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\a5beecba4b72ba0a72ede175029b0b7f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\e2c590cd5b4353d2d337bdaeabdc42f4/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\e9cb9c11c287ffd108108ad0e64ab5f5/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-12\\f74c508b8b47529edddf452191006bbc/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\32b8539ea54db40c145515d0a28b2293/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\3aa404047dbde1b24b3d9a3b7e7c5f36/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\3efc90b6d35c46fa89ade286f003a26c/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\b9da00e04e13153ba58e3a0c4462107f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\bf70bf3f243e634dc28460d80e4ebfc6/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\c454a32eb0dbe9e9a6cd935142d1e5bc/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\c68d3b2e6f576c667ed107a977eda8e1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\cc448d6c1d7f11df201157a3e41729f8/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\ed19cb1044d479c9c60600cbeef62ff0/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\f33dbec9e928967d7280ba7865d64949/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\32b8539ea54db40c145515d0a28b2293/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\3aa404047dbde1b24b3d9a3b7e7c5f36/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\3efc90b6d35c46fa89ade286f003a26c/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\b9da00e04e13153ba58e3a0c4462107f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\bf70bf3f243e634dc28460d80e4ebfc6/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\c454a32eb0dbe9e9a6cd935142d1e5bc/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\c68d3b2e6f576c667ed107a977eda8e1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\cc448d6c1d7f11df201157a3e41729f8/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\ed19cb1044d479c9c60600cbeef62ff0/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-13\\f33dbec9e928967d7280ba7865d64949/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\014db2f3323287a2cd746c06a0592bcc/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\3a8e2c23e767469f2259c17383e52a08/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\6df1dc2d9a9adf022389924410aac5a5/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\7ec02358813ca86f0f51667f6292f94f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\82c07942c37f5ce0a2039a144ef303ee/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\93da449e602db11ad5b3d273feedb5b1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\994d53b66aa794bae3d0ef786b6821b2/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\a596ed36bd57bd88fabadac78da17ea7/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\d4890cfafe5fbfdb4d37c0e3f8793661/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\dc3fa7b426fe8eb4aaa05fae5602d34c/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\014db2f3323287a2cd746c06a0592bcc/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\3a8e2c23e767469f2259c17383e52a08/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\6df1dc2d9a9adf022389924410aac5a5/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\7ec02358813ca86f0f51667f6292f94f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\82c07942c37f5ce0a2039a144ef303ee/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\93da449e602db11ad5b3d273feedb5b1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\994d53b66aa794bae3d0ef786b6821b2/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\a596ed36bd57bd88fabadac78da17ea7/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\d4890cfafe5fbfdb4d37c0e3f8793661/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-14\\dc3fa7b426fe8eb4aaa05fae5602d34c/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\2fa2839e473995fca08960099be3edaf/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\30fd8a0475132d255e3635ad6a0917ab/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\53c66235048ca14fd38dca51899732b0/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\56416debe8f9b7a6e5f79c5ae20b6df6/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\83b398dbc961b92cd014d110f20ac7af/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\8ca712f53df76b7ac1f29ceaea443fd6/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\a7534045928bb3d6b561a117ff31a9eb/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\b8792251993f0f9d7f42656d424dca51/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\bac7fd7c4320e2f67d8550877a8a2df5/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\ea34d4d8b5c635fad3b50f22f58d793c/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\2fa2839e473995fca08960099be3edaf/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\30fd8a0475132d255e3635ad6a0917ab/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\53c66235048ca14fd38dca51899732b0/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\56416debe8f9b7a6e5f79c5ae20b6df6/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\83b398dbc961b92cd014d110f20ac7af/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\8ca712f53df76b7ac1f29ceaea443fd6/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\a7534045928bb3d6b561a117ff31a9eb/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\b8792251993f0f9d7f42656d424dca51/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\bac7fd7c4320e2f67d8550877a8a2df5/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-15\\ea34d4d8b5c635fad3b50f22f58d793c/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\0536ec033dcf3b4195a07907b5b3f16f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\0d95996a9e52fdd5ec892d3d7211a2dd/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\40541dfca772b16fb1a1441cde349127/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\55838a5c3b624a572bd3b36b7062a017/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\59134b4015dddc2d04de390be15f99d3/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\5b339330fb50c1b3da47f69d3e6718f5/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\726ead2044cf520a618bac90b43d443f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\a504b6ddbbeaead372deae386c7e87cc/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\ca422a5643605ec293e6e90487663cdc/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\df32e4450ddf4caa9014c3446e74ee95/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\0536ec033dcf3b4195a07907b5b3f16f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\0d95996a9e52fdd5ec892d3d7211a2dd/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\40541dfca772b16fb1a1441cde349127/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\55838a5c3b624a572bd3b36b7062a017/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\59134b4015dddc2d04de390be15f99d3/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\5b339330fb50c1b3da47f69d3e6718f5/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\726ead2044cf520a618bac90b43d443f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\a504b6ddbbeaead372deae386c7e87cc/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\ca422a5643605ec293e6e90487663cdc/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-16\\df32e4450ddf4caa9014c3446e74ee95/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\16273a4526239842ea0d92484521d49f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\2c8e7fa82551b36883f1c232af7e4f81/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\4a530b9c92986d17cc7c70cd42a30573/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\666e51980cddd7b7e41269ce3c602cc8/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\8cedcdf998e955d92c424cae4f8e61f1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\a2bd1e298810e758f5d208e6723a24c1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\a9fee0fa8627ab01fe763bb1f54912e0/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\b69f39b103b6e3f1edcd31990eb37789/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\dca29d86b386df82dc6ad944834b878b/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4939: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\ebc90cb406b1b4915abf4265c8a617b9/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.BuildVRTInternalNames(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\16273a4526239842ea0d92484521d49f/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\2c8e7fa82551b36883f1c232af7e4f81/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\4a530b9c92986d17cc7c70cd42a30573/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\666e51980cddd7b7e41269ce3c602cc8/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\8cedcdf998e955d92c424cae4f8e61f1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\a2bd1e298810e758f5d208e6723a24c1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\a9fee0fa8627ab01fe763bb1f54912e0/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\b69f39b103b6e3f1edcd31990eb37789/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\dca29d86b386df82dc6ad944834b878b/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n", "c:\\Users\\timon\\anaconda3\\Lib\\site-packages\\osgeo\\gdal.py:4793: RuntimeWarning: ..\\laravel_app\\storage\\app\\aura\\single_images\\2025-12-17\\ebc90cb406b1b4915abf4265c8a617b9/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", " return _gdal.TranslateInternal(*args)\n" ] } ], "source": [ "for slot in available_slots:\n", " merge_files(slot)" ] }, { "cell_type": "markdown", "id": "4274d8e7-1ea3-46db-9528-069ede0b2132", "metadata": { "tags": [] }, "source": [ "#### Delete intermediate files\n" ] }, { "cell_type": "code", "execution_count": 21, "id": "cb3fa856-a550-4899-844a-e69209bba3ad", "metadata": { "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Emptied folder: ..\\laravel_app\\storage\\app\\aura\\merged_virtual\n", "Error: [WinError 5] Toegang geweigerd: '..\\\\laravel_app\\\\storage\\\\app\\\\aura\\\\single_images\\\\2025-11-02\\\\1074dddfdab390144426cb997193159c'\n", "Error: [WinError 5] Toegang geweigerd: '..\\\\laravel_app\\\\storage\\\\app\\\\aura\\\\single_images\\\\2025-11-03\\\\6863feeeba0f88770dae91d6f5d7f97a'\n", "Error: [WinError 5] Toegang geweigerd: '..\\\\laravel_app\\\\storage\\\\app\\\\aura\\\\single_images\\\\2025-11-04\\\\1922464d749944ea5cc3bd2424c65ca8'\n", "Error: [WinError 5] Toegang geweigerd: '..\\\\laravel_app\\\\storage\\\\app\\\\aura\\\\single_images\\\\2025-11-05'\n", "Emptied folder: ..\\laravel_app\\storage\\app\\aura\\single_images\n" ] } ], "source": [ "# List of folder names\n", "\n", "folders_to_empty = [BASE_PATH / 'merged_virtual', BASE_PATH_SINGLE_IMAGES]\n", " \n", "# Function to empty folders\n", "\n", "# Function to empty folders\n", "def empty_folders(folders, run=True):\n", " if not run:\n", " print(\"Skipping empty_folders function.\")\n", " return\n", " \n", " for folder in folders:\n", " try:\n", " for filename in os.listdir(folder):\n", " file_path = os.path.join(folder, filename)\n", " try:\n", " if os.path.isfile(file_path):\n", " os.unlink(file_path)\n", " elif os.path.isdir(file_path):\n", " shutil.rmtree(file_path)\n", " except Exception as e:\n", " print(f\"Error: {e}\")\n", " print(f\"Emptied folder: {folder}\")\n", " except OSError as e:\n", " print(f\"Error: {e}\")\n", "\n", "# Call the function to empty folders only if the 'run' parameter is set to True\n", "empty_folders(folders_to_empty, run=empty_folder_question)\n" ] }, { "cell_type": "code", "execution_count": null, "id": "fa849800", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "base", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.3" } }, "nbformat": 4, "nbformat_minor": 5 }