diff --git a/python_app/planet_download.ipynb b/python_app/planet_download.ipynb index 9256cdf..7457816 100644 --- a/python_app/planet_download.ipynb +++ b/python_app/planet_download.ipynb @@ -12,7 +12,7 @@ }, { "cell_type": "code", - "execution_count": 93, + "execution_count": 1, "id": "b7ca7102-5fd9-481f-90cd-3ba60e288649", "metadata": {}, "outputs": [], @@ -29,9 +29,10 @@ "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\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", @@ -42,7 +43,7 @@ }, { "cell_type": "code", - "execution_count": 94, + "execution_count": 2, "id": "330c967c-2742-4a7a-9a61-28bfdaf8eeca", "metadata": {}, "outputs": [], @@ -52,7 +53,7 @@ }, { "cell_type": "code", - "execution_count": 95, + "execution_count": 3, "id": "49f8496a-a267-4b74-9500-a168e031ed68", "metadata": {}, "outputs": [], @@ -63,7 +64,7 @@ }, { "cell_type": "code", - "execution_count": 96, + "execution_count": 4, "id": "5491a840-779c-4f0c-8164-c3de738b3298", "metadata": {}, "outputs": [], @@ -74,7 +75,7 @@ }, { "cell_type": "code", - "execution_count": 97, + "execution_count": 5, "id": "eb1fb662-0e25-4ca9-8317-c6953290842b", "metadata": {}, "outputs": [], @@ -99,7 +100,7 @@ }, { "cell_type": "code", - "execution_count": 98, + "execution_count": 6, "id": "060396e0-e5ee-4b54-b211-5d8bfcba167f", "metadata": {}, "outputs": [], @@ -111,18 +112,18 @@ }, { "cell_type": "code", - "execution_count": 100, + "execution_count": 7, "id": "c9f79e81-dff8-4109-8d26-6c423142dcf2", "metadata": {}, "outputs": [], "source": [ "# Adjust the number of days needed\n", - "days = 20 #change back to 28 which is the default. 3 years is 1095 days." + "days = 2 #change back to 28 which is the default. 3 years is 1095 days." ] }, { "cell_type": "code", - "execution_count": 101, + "execution_count": 8, "id": "e18bdf8f-be4b-44ab-baaa-de5de60d92cb", "metadata": {}, "outputs": [], @@ -144,7 +145,7 @@ }, { "cell_type": "code", - "execution_count": 102, + "execution_count": 9, "id": "3f7c8e04-4569-457b-b39d-283582c4ba36", "metadata": {}, "outputs": [], @@ -168,7 +169,7 @@ }, { "cell_type": "code", - "execution_count": 103, + "execution_count": 10, "id": "244b5752-4f02-4347-9278-f6a0a46b88f4", "metadata": {}, "outputs": [], @@ -264,7 +265,7 @@ }, { "cell_type": "code", - "execution_count": 104, + "execution_count": 11, "id": "848dc773-70d6-4ae6-b05c-d6ebfb41624d", "metadata": {}, "outputs": [ @@ -275,18 +276,14 @@ "Monthly time windows:\n", "\n", "2024-10-13\n", - "2024-10-14\n", - "2024-10-15\n", - "...\n", - "2024-10-30\n", - "2024-10-31\n", - "2024-11-01\n" + "2024-10-14\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", @@ -321,7 +318,7 @@ }, { "cell_type": "code", - "execution_count": 105, + "execution_count": 12, "id": "c803e373-2567-4233-af7d-0d2d6f7d4f8e", "metadata": {}, "outputs": [], @@ -331,7 +328,7 @@ }, { "cell_type": "code", - "execution_count": 106, + "execution_count": 13, "id": "dc24d54e-2272-4f30-bcf5-4d8fc381915c", "metadata": {}, "outputs": [], @@ -341,7 +338,7 @@ }, { "cell_type": "code", - "execution_count": 107, + "execution_count": 14, "id": "cd071b42-d0cd-4e54-8f88-ad1a339748e3", "metadata": {}, "outputs": [], @@ -351,7 +348,7 @@ }, { "cell_type": "code", - "execution_count": 108, + "execution_count": 15, "id": "301d12e4-e47a-4034-aec0-aa5673e64935", "metadata": {}, "outputs": [ @@ -379,20 +376,20 @@ }, { "cell_type": "code", - "execution_count": 109, + "execution_count": 16, "id": "431f6856-8d7e-4868-b627-20deeb47d77e", "metadata": {}, "outputs": [ { "data": { "image/svg+xml": [ - "" + "" ], "text/plain": [ - "" + "" ] }, - "execution_count": 109, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -405,7 +402,7 @@ }, { "cell_type": "code", - "execution_count": 110, + "execution_count": 17, "id": "18655785", "metadata": {}, "outputs": [], @@ -426,7 +423,7 @@ }, { "cell_type": "code", - "execution_count": 111, + "execution_count": 18, "id": "a6fc418f", "metadata": {}, "outputs": [], @@ -438,7 +435,7 @@ }, { "cell_type": "code", - "execution_count": 112, + "execution_count": 19, "id": "ebc416be", "metadata": {}, "outputs": [ @@ -446,10 +443,10 @@ "name": "stdout", "output_type": "stream", "text": [ - "['2024-10-13', '2024-10-15', '2024-10-17', '2024-10-18', '2024-10-19', '2024-10-20', '2024-10-21', '2024-10-22', '2024-10-23', '2024-10-24', '2024-10-25', '2024-10-26', '2024-10-27', '2024-10-28', '2024-10-29']\n", - "Total slots: 20\n", - "Available slots: 15\n", - "Excluded slots due to clouds: 5\n" + "['2024-10-13']\n", + "Total slots: 2\n", + "Available slots: 1\n", + "Excluded slots due to clouds: 1\n" ] } ], @@ -462,7 +459,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 20, "id": "b0cabe8f-e1f2-4b18-8ac0-c2565d0ff16b", "metadata": {}, "outputs": [], @@ -543,7 +540,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 21, "id": "8f2c3e20-894c-4fe5-95d3-482ee3bac117", "metadata": {}, "outputs": [], @@ -556,17 +553,72 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 22, "id": "41b7369c-f768-44ba-983e-eb8eae4f3afd", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Image downloaded for 2024-10-13 and bbox 34.893901568473275,-17.347991154602312,34.902244620706924,-17.34035402194366\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/usr/local/anaconda3/lib/python3.11/site-packages/sentinelhub/geometry.py:136: SHDeprecationWarning: Initializing `BBox` objects from `BBox` objects will no longer be possible in future versions.\n", + " return BBox._tuple_from_bbox(bbox)\n", + "/var/folders/qt/jcd_lqsd6nq6_5902w6403_h0000gn/T/ipykernel_37871/170088608.py:67: 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 2024-10-13 and bbox 34.88396660293689,-17.329532375657408,34.90142638883001,-17.32760743759949\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/usr/local/anaconda3/lib/python3.11/site-packages/sentinelhub/geometry.py:136: SHDeprecationWarning: Initializing `BBox` objects from `BBox` objects will no longer be possible in future versions.\n", + " return BBox._tuple_from_bbox(bbox)\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + " Image downloaded for 2024-10-13 and bbox 34.88382012875465,-17.32760743759949,34.90326541097948,-17.315648863263682\n", + " Image downloaded for 2024-10-13 and bbox 34.883117060422094,-17.315648863263682,34.9023997776829,-17.30369028892787\n", + " Image downloaded for 2024-10-13 and bbox 34.883228421674296,-17.30369028892787,34.90087977072043,-17.29173171459206\n", + " Image downloaded for 2024-10-13 and bbox 34.905630133532,-17.344205996328164,34.92341376153686,-17.3395660119353\n", + " Image downloaded for 2024-10-13 and bbox 34.905710855573936,-17.3395660119353,34.92341376153686,-17.32760743759949\n", + " Image downloaded for 2024-10-13 and bbox 34.90326541097948,-17.32760743759949,34.9146041448172,-17.316916692391352\n", + " Image downloaded for 2024-10-13 and bbox 34.92341376153686,-17.35152458627111,34.93795515789262,-17.3395660119353\n", + " Image downloaded for 2024-10-13 and bbox 34.92341376153686,-17.3395660119353,34.930609068174576,-17.334652123669677\n", + " Image downloaded for 2024-10-13 and bbox 34.95572747068288,-17.346631434137443,34.96371046265162,-17.3395660119353\n", + " Image downloaded for 2024-10-13 and bbox 34.95078266733916,-17.3395660119353,34.96371046265162,-17.32760743759949\n", + " Image downloaded for 2024-10-13 and bbox 34.947001852567226,-17.32760743759949,34.96371046265162,-17.315648863263682\n", + " Image downloaded for 2024-10-13 and bbox 34.95178751078458,-17.315648863263682,34.96371046265162,-17.311133447223234\n", + " Image downloaded for 2024-10-13 and bbox 34.96371046265162,-17.34987611658989,34.983858813209004,-17.3395660119353\n", + " Image downloaded for 2024-10-13 and bbox 34.96371046265162,-17.3395660119353,34.982903717937305,-17.32760743759949\n", + " Image downloaded for 2024-10-13 and bbox 34.96371046265162,-17.32760743759949,34.977469765322226,-17.322351372243453\n", + " Image downloaded for 2024-10-13 and bbox 34.96371046265162,-17.315106596091614,34.96405511470557,-17.312526972941786\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 slots:\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", @@ -575,7 +627,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 23, "id": "7c0f8f0e-b1bc-4b5a-939d-e4358a485c06", "metadata": {}, "outputs": [], @@ -593,7 +645,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 24, "id": "16c449ab-eb40-4ed9-9a26-6a64dae114e1", "metadata": {}, "outputs": [], @@ -606,7 +658,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 25, "id": "6c02d7de-cddf-4fc3-8d23-8431415d07b8", "metadata": {}, "outputs": [], @@ -625,7 +677,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 26, "id": "f62d8af8-1c5c-4a83-b888-7205bbe191af", "metadata": {}, "outputs": [], @@ -635,14 +687,121 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 27, "id": "68db3c15-6f94-432e-b315-c329e4251b21", "metadata": { "tags": [] }, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/82e0bec78647a7e631bf46c7826a095a/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/f3a481c8a831f1096ad4a2924f7744ae/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/0f2fabfb5a98064d90a0efbab3c88137/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/b0517c30996ba1b4084987a606399db0/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/881f7ee0060d76182bd363cc0241c6b4/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/e2e16ebfcf17c0e954d5251fb42c3551/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/e651ed7a8ba7ce8ab6af12a272dc3fae/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/a5171cb8730a5d1eb6575afe3106d133/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/a9d5d3d8699ef77dc450496a196e7242/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/27e0e42c71a971cf4454256bc4978d91/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/4c86b96edcea1fb8aa4b3bc3f8d496da/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/eda0b30e16fdea0302acb62086f71169/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/7b17b7ffe207fded6a7f217d1b3a9a27/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/dc258ae8b2bae1a4c8cff9afd2a5f0a1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/61b7ddaaa809eae197a1b595532146d2/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/cc7adecb78b95df872685b587dd0efc2/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/d73a9e0204c5149a819798778dfc9392/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/4babd2b91a1516c7c99da04d99ad4a19/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/82e0bec78647a7e631bf46c7826a095a/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/f3a481c8a831f1096ad4a2924f7744ae/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/0f2fabfb5a98064d90a0efbab3c88137/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/b0517c30996ba1b4084987a606399db0/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/881f7ee0060d76182bd363cc0241c6b4/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/e2e16ebfcf17c0e954d5251fb42c3551/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/e651ed7a8ba7ce8ab6af12a272dc3fae/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/a5171cb8730a5d1eb6575afe3106d133/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/a9d5d3d8699ef77dc450496a196e7242/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/27e0e42c71a971cf4454256bc4978d91/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/4c86b96edcea1fb8aa4b3bc3f8d496da/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/eda0b30e16fdea0302acb62086f71169/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/7b17b7ffe207fded6a7f217d1b3a9a27/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/dc258ae8b2bae1a4c8cff9afd2a5f0a1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/61b7ddaaa809eae197a1b595532146d2/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/cc7adecb78b95df872685b587dd0efc2/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/d73a9e0204c5149a819798778dfc9392/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/4babd2b91a1516c7c99da04d99ad4a19/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/82e0bec78647a7e631bf46c7826a095a/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/f3a481c8a831f1096ad4a2924f7744ae/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/0f2fabfb5a98064d90a0efbab3c88137/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/b0517c30996ba1b4084987a606399db0/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/881f7ee0060d76182bd363cc0241c6b4/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/e2e16ebfcf17c0e954d5251fb42c3551/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/e651ed7a8ba7ce8ab6af12a272dc3fae/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/a5171cb8730a5d1eb6575afe3106d133/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/a9d5d3d8699ef77dc450496a196e7242/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/27e0e42c71a971cf4454256bc4978d91/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/d73a9e0204c5149a819798778dfc9392/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/61b7ddaaa809eae197a1b595532146d2/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/4c86b96edcea1fb8aa4b3bc3f8d496da/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/7b17b7ffe207fded6a7f217d1b3a9a27/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/4babd2b91a1516c7c99da04d99ad4a19/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/eda0b30e16fdea0302acb62086f71169/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/dc258ae8b2bae1a4c8cff9afd2a5f0a1/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: ../laravel_app/storage/app/chemba/single_images/2024-10-13/cc7adecb78b95df872685b587dd0efc2/response.tiff: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n", + "Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.\n" + ] + } + ], "source": [ - "for slot in slots:\n", + "for slot in available_slots:\n", " merge_files(slot)" ] }, @@ -658,12 +817,20 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 28, "id": "cb3fa856-a550-4899-844a-e69209bba3ad", "metadata": { "tags": [] }, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Skipping empty_folders function.\n" + ] + } + ], "source": [ "# List of folder names\n", "\n", @@ -699,7 +866,7 @@ ], "metadata": { "kernelspec": { - "display_name": "base", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -713,9 +880,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.3" + "version": "3.11.4" } }, "nbformat": 4, "nbformat_minor": 5 -} \ No newline at end of file +} diff --git a/r_app/Rplots.pdf b/r_app/Rplots.pdf index a70ea84..f098abe 100644 Binary files a/r_app/Rplots.pdf and b/r_app/Rplots.pdf differ diff --git a/runpython.sh b/runpython.sh index c03d2ab..0183740 100755 --- a/runpython.sh +++ b/runpython.sh @@ -2,7 +2,7 @@ date=$(date +%Y-%m-%d) # Standaardwaarde voor days days=1 -project_dir="chemba_1" +project_dir="chemba" # Loop door alle argumenten for arg in "$@"; do