diff --git a/examples/dinamis_sdk_ndvi.ipynb b/examples/dinamis_sdk_ndvi.ipynb index de25a0eb71b8bd3948d68be566dee9fa0a030a11..35c609ea00127f4e77b829da01fd81cc49ad1d30 100644 --- a/examples/dinamis_sdk_ndvi.ipynb +++ b/examples/dinamis_sdk_ndvi.ipynb @@ -40,32 +40,10 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "dc80443b-9586-4e2b-bc33-c5f62bc72e31", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Requirement already satisfied: dinamis-sdk in /srv/conda/envs/notebook/lib/python3.10/site-packages (0.0.9)\n", - "Requirement already satisfied: requests in /srv/conda/envs/notebook/lib/python3.10/site-packages (from dinamis-sdk) (2.29.0)\n", - "Requirement already satisfied: qrcode in /srv/conda/envs/notebook/lib/python3.10/site-packages (from dinamis-sdk) (7.4.2)\n", - "Requirement already satisfied: appdirs in /srv/conda/envs/notebook/lib/python3.10/site-packages (from dinamis-sdk) (1.4.4)\n", - "Requirement already satisfied: pydantic in /srv/conda/envs/notebook/lib/python3.10/site-packages (from dinamis-sdk) (1.10.7)\n", - "Requirement already satisfied: pystac in /srv/conda/envs/notebook/lib/python3.10/site-packages (from dinamis-sdk) (1.7.3)\n", - "Requirement already satisfied: pystac-client in /srv/conda/envs/notebook/lib/python3.10/site-packages (from dinamis-sdk) (0.6.1)\n", - "Requirement already satisfied: typing-extensions>=4.2.0 in /srv/conda/envs/notebook/lib/python3.10/site-packages (from pydantic->dinamis-sdk) (4.5.0)\n", - "Requirement already satisfied: python-dateutil>=2.7.0 in /srv/conda/envs/notebook/lib/python3.10/site-packages (from pystac->dinamis-sdk) (2.8.2)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /srv/conda/envs/notebook/lib/python3.10/site-packages (from requests->dinamis-sdk) (2.1.1)\n", - "Requirement already satisfied: idna<4,>=2.5 in /srv/conda/envs/notebook/lib/python3.10/site-packages (from requests->dinamis-sdk) (3.4)\n", - "Requirement already satisfied: urllib3<1.27,>=1.21.1 in /srv/conda/envs/notebook/lib/python3.10/site-packages (from requests->dinamis-sdk) (1.26.15)\n", - "Requirement already satisfied: certifi>=2017.4.17 in /srv/conda/envs/notebook/lib/python3.10/site-packages (from requests->dinamis-sdk) (2022.12.7)\n", - "Requirement already satisfied: pypng in /srv/conda/envs/notebook/lib/python3.10/site-packages (from qrcode->dinamis-sdk) (0.20220715.0)\n", - "Requirement already satisfied: six>=1.5 in /srv/conda/envs/notebook/lib/python3.10/site-packages (from python-dateutil>=2.7.0->pystac->dinamis-sdk) (1.16.0)\n" - ] - } - ], + "outputs": [], "source": [ "#!pip install git+https://gitlab.irstea.fr/dinamis/dinamis-sdk.git\n", "!pip install dinamis-sdk\n" @@ -95,18 +73,10 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "803a8738-d1f2-43d3-a426-f8ef156761c6", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "nom de l'api : stac-fastapi\n" - ] - } - ], + "outputs": [], "source": [ "import dinamis_sdk\n", "import pystac_client\n", @@ -130,23 +100,12 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "65afe82a-1601-41fe-8698-d70a898be394", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Nombre de collections: 2\n", - "Collections IDs:\n", - "- spot-6-7-drs\n", - "- super-sentinel-2-l2a\n" - ] - } - ], + "outputs": [], "source": [ "collections = list(api.get_collections())\n", "\n", @@ -174,31 +133,10 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "7820c73a-a0ec-4537-9893-c43060e3fed9", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "12 images répondent à la requête\n", - "---\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2B_20220525-105844-883_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2B_20220522-104854-517_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2A_20220520-105851-016_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2B_20220519-103858-324_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2A_20220517-104859-725_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2A_20220514-103902-815_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2B_20220512-104852-490_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2B_20220509-103855-665_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2A_20220507-104858-836_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2A_20220504-103903-473_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : super-sentinel-2-l2a ; item ID : SUPER_SENTINEL2B_20220502-104848-819_L2A_T31TEJ_D_15d8e3\n", - "Collection ID : spot-6-7-drs ; item ID : SPOT6_MS_202205011018084_SPOT6_P_202205011018084\n" - ] - } - ], + "outputs": [], "source": [ "year = '2022'\n", "month = '05'\n", @@ -227,195 +165,10 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "id": "bd88857e-fb48-49ac-a20d-aaa3ac8cd9bb", "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "INFO:numexpr.utils:NumExpr defaulting to 8 threads.\n" - ] - }, - { - "data": { - "text/html": [ - "<div>\n", - "<style scoped>\n", - " .dataframe tbody tr th:only-of-type {\n", - " vertical-align: middle;\n", - " }\n", - "\n", - " .dataframe tbody tr th {\n", - " vertical-align: top;\n", - " }\n", - "\n", - " .dataframe thead th {\n", - " text-align: right;\n", - " }\n", - "</style>\n", - "<table border=\"1\" class=\"dataframe\">\n", - " <thead>\n", - " <tr style=\"text-align: right;\">\n", - " <th></th>\n", - " <th>geometry</th>\n", - " <th>datetime</th>\n", - " <th>platform</th>\n", - " <th>instruments</th>\n", - " <th>Processor_version</th>\n", - " </tr>\n", - " </thead>\n", - " <tbody>\n", - " <tr>\n", - " <th>0</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-25T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>1</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-22T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>2</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-20T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>3</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-19T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>4</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-17T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>5</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-14T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>6</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-12T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>7</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-09T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>8</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-07T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>9</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-04T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>10</th>\n", - " <td>POLYGON ((4.03273 43.54745, 4.03641 43.75163, ...</td>\n", - " <td>2022-05-02T00:00:00Z</td>\n", - " <td>super-sentinel-2-l2a</td>\n", - " <td>[super-sentinel-2-l2a-RGBN]</td>\n", - " <td>c8545bc08509415b8b505b8ae33453c889e547b8</td>\n", - " </tr>\n", - " <tr>\n", - " <th>11</th>\n", - " <td>POLYGON ((3.60568 44.23888, 4.33658 44.23241, ...</td>\n", - " <td>2022-05-01T00:00:00Z</td>\n", - " <td>Spot-6</td>\n", - " <td>[Spot-6]</td>\n", - " <td>NaN</td>\n", - " </tr>\n", - " </tbody>\n", - "</table>\n", - "</div>" - ], - "text/plain": [ - " geometry datetime \n", - "0 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-25T00:00:00Z \\\n", - "1 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-22T00:00:00Z \n", - "2 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-20T00:00:00Z \n", - "3 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-19T00:00:00Z \n", - "4 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-17T00:00:00Z \n", - "5 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-14T00:00:00Z \n", - "6 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-12T00:00:00Z \n", - "7 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-09T00:00:00Z \n", - "8 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-07T00:00:00Z \n", - "9 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-04T00:00:00Z \n", - "10 POLYGON ((4.03273 43.54745, 4.03641 43.75163, ... 2022-05-02T00:00:00Z \n", - "11 POLYGON ((3.60568 44.23888, 4.33658 44.23241, ... 2022-05-01T00:00:00Z \n", - "\n", - " platform instruments \n", - "0 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \\\n", - "1 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \n", - "2 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \n", - "3 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \n", - "4 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \n", - "5 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \n", - "6 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \n", - "7 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \n", - "8 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \n", - "9 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \n", - "10 super-sentinel-2-l2a [super-sentinel-2-l2a-RGBN] \n", - "11 Spot-6 [Spot-6] \n", - "\n", - " Processor_version \n", - "0 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "1 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "2 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "3 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "4 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "5 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "6 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "7 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "8 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "9 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "10 c8545bc08509415b8b505b8ae33453c889e547b8 \n", - "11 NaN " - ] - }, - "execution_count": 5, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "import geopandas as gpd\n", "\n", @@ -425,308 +178,12 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "id": "e2e27816-63ec-4cd3-9a13-d17f0a6b356b", "metadata": { "tags": [] }, - "outputs": [ - { - "data": { - "text/html": [ - "<div style=\"width:100%;\"><div style=\"position:relative;width:100%;height:0;padding-bottom:60%;\"><span style=\"color:#565656\">Make this Notebook Trusted to load map: File -> Trust Notebook</span><iframe srcdoc=\"<!DOCTYPE html>\n", - "<html>\n", - "<head>\n", - " \n", - " <meta http-equiv="content-type" content="text/html; charset=UTF-8" />\n", - " \n", - " <script>\n", - " L_NO_TOUCH = false;\n", - " L_DISABLE_3D = false;\n", - " </script>\n", - " \n", - " <style>html, body {width: 100%;height: 100%;margin: 0;padding: 0;}</style>\n", - " <style>#map {position:absolute;top:0;bottom:0;right:0;left:0;}</style>\n", - " <script src="https://cdn.jsdelivr.net/npm/leaflet@1.9.3/dist/leaflet.js"></script>\n", - " <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>\n", - " <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"></script>\n", - " <script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.js"></script>\n", - " <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1.9.3/dist/leaflet.css"/>\n", - " <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css"/>\n", - " <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"/>\n", - " <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.2.0/css/all.min.css"/>\n", - " <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css"/>\n", - " <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/python-visualization/folium/folium/templates/leaflet.awesome.rotate.min.css"/>\n", - " \n", - " <meta name="viewport" content="width=device-width,\n", - " initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />\n", - " <style>\n", - " #map_5ce25b8570eda82c305d48e7e027e655 {\n", - " position: relative;\n", - " width: 100.0%;\n", - " height: 100.0%;\n", - " left: 0.0%;\n", - " top: 0.0%;\n", - " }\n", - " .leaflet-container { font-size: 1rem; }\n", - " </style>\n", - " \n", - " \n", - " <style>\n", - " .foliumtooltip {\n", - " \n", - " }\n", - " .foliumtooltip table{\n", - " margin: auto;\n", - " }\n", - " .foliumtooltip tr{\n", - " text-align: left;\n", - " }\n", - " .foliumtooltip th{\n", - " padding: 2px; padding-right: 8px;\n", - " }\n", - " </style>\n", - " \n", - " \n", - " <style>\n", - " .foliumpopup {\n", - " margin: auto;\n", - " }\n", - " .foliumpopup table{\n", - " margin: auto;\n", - " }\n", - " .foliumpopup tr{\n", - " text-align: left;\n", - " }\n", - " .foliumpopup th{\n", - " padding: 2px; padding-right: 8px;\n", - " }\n", - " </style>\n", - " \n", - " \n", - " <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>\n", - " <script>$( function() {\n", - " $( ".maplegend" ).draggable({\n", - " start: function (event, ui) {\n", - " $(this).css({\n", - " right: "auto",\n", - " top: "auto",\n", - " bottom: "auto"\n", - " });\n", - " }\n", - " });\n", - " });\n", - " </script>\n", - " <style type='text/css'>\n", - " .maplegend {\n", - " position: absolute;\n", - " z-index:9999;\n", - " background-color: rgba(255, 255, 255, .8);\n", - " border-radius: 5px;\n", - " box-shadow: 0 0 15px rgba(0,0,0,0.2);\n", - " padding: 10px;\n", - " font: 12px/14px Arial, Helvetica, sans-serif;\n", - " right: 10px;\n", - " bottom: 20px;\n", - " }\n", - " .maplegend .legend-title {\n", - " text-align: left;\n", - " margin-bottom: 5px;\n", - " font-weight: bold;\n", - " }\n", - " .maplegend .legend-scale ul {\n", - " margin: 0;\n", - " margin-bottom: 0px;\n", - " padding: 0;\n", - " float: left;\n", - " list-style: none;\n", - " }\n", - " .maplegend .legend-scale ul li {\n", - " list-style: none;\n", - " margin-left: 0;\n", - " line-height: 16px;\n", - " margin-bottom: 2px;\n", - " }\n", - " .maplegend ul.legend-labels li span {\n", - " display: block;\n", - " float: left;\n", - " height: 14px;\n", - " width: 14px;\n", - " margin-right: 5px;\n", - " margin-left: 0;\n", - " border: 0px solid #ccc;\n", - " }\n", - " .maplegend .legend-source {\n", - " color: #777;\n", - " clear: both;\n", - " }\n", - " .maplegend a {\n", - " color: #777;\n", - " }\n", - " </style>\n", - " \n", - "</head>\n", - "<body>\n", - " \n", - " \n", - " <div id='maplegend platform' class='maplegend'>\n", - " <div class='legend-title'>platform</div>\n", - " <div class='legend-scale'>\n", - " <ul class='legend-labels'>\n", - " <li><span style='background:#440154'></span>Spot-6</li>\n", - " <li><span style='background:#fde725'></span>super-sentinel-2-l2a</li>\n", - " </ul>\n", - " </div>\n", - " </div>\n", - " \n", - " \n", - " <div class="folium-map" id="map_5ce25b8570eda82c305d48e7e027e655" ></div>\n", - " \n", - "</body>\n", - "<script>\n", - " \n", - " \n", - " var map_5ce25b8570eda82c305d48e7e027e655 = L.map(\n", - " "map_5ce25b8570eda82c305d48e7e027e655",\n", - " {\n", - " center: [43.89316314247988, 3.968260682403808],\n", - " crs: L.CRS.EPSG3857,\n", - " zoom: 10,\n", - " zoomControl: true,\n", - " preferCanvas: false,\n", - " }\n", - " );\n", - " L.control.scale().addTo(map_5ce25b8570eda82c305d48e7e027e655);\n", - "\n", - " \n", - "\n", - " \n", - " \n", - " var tile_layer_c56d959ebf5601762b9f968f38922df8 = L.tileLayer(\n", - " "https://a.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png",\n", - " {"attribution": "\\u0026copy; \\u003ca href=\\"https://www.openstreetmap.org/copyright\\"\\u003eOpenStreetMap\\u003c/a\\u003e contributors \\u0026copy; \\u003ca href=\\"https://carto.com/attributions\\"\\u003eCARTO\\u003c/a\\u003e", "detectRetina": false, "maxNativeZoom": 20, "maxZoom": 20, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", - " ).addTo(map_5ce25b8570eda82c305d48e7e027e655);\n", - " \n", - " \n", - " map_5ce25b8570eda82c305d48e7e027e655.fitBounds(\n", - " [[43.547450099338604, 3.5999389520064913], [44.23887618562115, 4.336582412801125]],\n", - " {}\n", - " );\n", - " \n", - " \n", - " function geo_json_423eee4cb2bfd87183444c135a2eea61_styler(feature) {\n", - " switch(feature.id) {\n", - " case "11": \n", - " return {"color": "#440154", "fillColor": "#440154", "fillOpacity": 0.5, "weight": 2};\n", - " default:\n", - " return {"color": "#fde725", "fillColor": "#fde725", "fillOpacity": 0.5, "weight": 2};\n", - " }\n", - " }\n", - " function geo_json_423eee4cb2bfd87183444c135a2eea61_highlighter(feature) {\n", - " switch(feature.id) {\n", - " default:\n", - " return {"fillOpacity": 0.75};\n", - " }\n", - " }\n", - " function geo_json_423eee4cb2bfd87183444c135a2eea61_pointToLayer(feature, latlng) {\n", - " var opts = {"bubblingMouseEvents": true, "color": "#3388ff", "dashArray": null, "dashOffset": null, "fill": true, "fillColor": "#3388ff", "fillOpacity": 0.2, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 2, "stroke": true, "weight": 3};\n", - " \n", - " let style = geo_json_423eee4cb2bfd87183444c135a2eea61_styler(feature)\n", - " Object.assign(opts, style)\n", - " \n", - " return new L.CircleMarker(latlng, opts)\n", - " }\n", - "\n", - " function geo_json_423eee4cb2bfd87183444c135a2eea61_onEachFeature(feature, layer) {\n", - " layer.on({\n", - " mouseout: function(e) {\n", - " if(typeof e.target.setStyle === "function"){\n", - " geo_json_423eee4cb2bfd87183444c135a2eea61.resetStyle(e.target);\n", - " }\n", - " },\n", - " mouseover: function(e) {\n", - " if(typeof e.target.setStyle === "function"){\n", - " const highlightStyle = geo_json_423eee4cb2bfd87183444c135a2eea61_highlighter(e.target.feature)\n", - " e.target.setStyle(highlightStyle);\n", - " }\n", - " },\n", - " });\n", - " };\n", - " var geo_json_423eee4cb2bfd87183444c135a2eea61 = L.geoJson(null, {\n", - " onEachFeature: geo_json_423eee4cb2bfd87183444c135a2eea61_onEachFeature,\n", - " \n", - " style: geo_json_423eee4cb2bfd87183444c135a2eea61_styler,\n", - " pointToLayer: geo_json_423eee4cb2bfd87183444c135a2eea61_pointToLayer\n", - " });\n", - "\n", - " function geo_json_423eee4cb2bfd87183444c135a2eea61_add (data) {\n", - " geo_json_423eee4cb2bfd87183444c135a2eea61\n", - " .addData(data)\n", - " .addTo(map_5ce25b8570eda82c305d48e7e027e655);\n", - " }\n", - " geo_json_423eee4cb2bfd87183444c135a2eea61_add({"bbox": [3.5999389520064913, 43.547450099338604, 4.336582412801125, 44.23887618562115], "features": [{"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "0", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-25T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "1", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-22T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "2", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-20T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "3", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-19T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "4", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-17T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "5", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-14T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "6", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-12T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "7", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-09T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "8", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-07T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "9", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-04T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.6962018175925073, 43.547450099338604, 4.036414917971517, 43.75431706444037], "geometry": {"coordinates": [[[4.032730583418401, 43.547450099338604], [4.036414917971517, 43.75162726634343], [3.698685718905037, 43.75431706444037], [3.6962018175925073, 43.55012996681564], [4.032730583418401, 43.547450099338604]]], "type": "Polygon"}, "id": "10", "properties": {"Processor_version": "c8545bc08509415b8b505b8ae33453c889e547b8", "__folium_color": "#fde725", "datetime": "2022-05-02T00:00:00Z", "instruments": ["super-sentinel-2-l2a-RGBN"], "platform": "super-sentinel-2-l2a"}, "type": "Feature"}, {"bbox": [3.5999389520064913, 43.689027003474536, 4.336582412801125, 44.23887618562115], "geometry": {"coordinates": [[[3.605683310123278, 44.23887618562115], [4.336582412801125, 44.232413063216754], [4.323908034833647, 43.689027003474536], [3.5999389520064913, 43.69542680908912], [3.605683310123278, 44.23887618562115]]], "type": "Polygon"}, "id": "11", "properties": {"Processor_version": null, "__folium_color": "#440154", "datetime": "2022-05-01T00:00:00Z", "instruments": ["Spot-6"], "platform": "Spot-6"}, "type": "Feature"}], "type": "FeatureCollection"});\n", - "\n", - " \n", - " \n", - " geo_json_423eee4cb2bfd87183444c135a2eea61.bindTooltip(\n", - " function(layer){\n", - " let div = L.DomUtil.create('div');\n", - " \n", - " let handleObject = feature=>typeof(feature)=='object' ? JSON.stringify(feature) : feature;\n", - " let fields = ["platform"];\n", - " let aliases = ["platform"];\n", - " let table = '<table>' +\n", - " String(\n", - " fields.map(\n", - " (v,i)=>\n", - " `<tr>\n", - " <th>${aliases[i]}</th>\n", - " \n", - " <td>${handleObject(layer.feature.properties[v])}</td>\n", - " </tr>`).join(''))\n", - " +'</table>';\n", - " div.innerHTML=table;\n", - " \n", - " return div\n", - " }\n", - " ,{"className": "foliumtooltip", "sticky": true});\n", - " \n", - " \n", - " geo_json_423eee4cb2bfd87183444c135a2eea61.bindPopup(\n", - " function(layer){\n", - " let div = L.DomUtil.create('div');\n", - " \n", - " let handleObject = feature=>typeof(feature)=='object' ? JSON.stringify(feature) : feature;\n", - " let fields = ["datetime", "platform", "instruments", "Processor_version"];\n", - " let aliases = ["datetime", "platform", "instruments", "Processor_version"];\n", - " let table = '<table>' +\n", - " String(\n", - " fields.map(\n", - " (v,i)=>\n", - " `<tr>\n", - " <th>${aliases[i].toLocaleString()}</th>\n", - " \n", - " <td>${handleObject(layer.feature.properties[v]).toLocaleString()}</td>\n", - " </tr>`).join(''))\n", - " +'</table>';\n", - " div.innerHTML=table;\n", - " \n", - " return div\n", - " }\n", - " ,{"className": "foliumpopup"});\n", - " \n", - "</script>\n", - "</html>\" style=\"position:absolute;width:100%;height:100%;left:0;top:0;border:none !important;\" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe></div></div>" - ], - "text/plain": [ - "<folium.folium.Map at 0x7f38050f8d90>" - ] - }, - "execution_count": 6, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "#df.boundary.plot()\n", "df.explore(column=\"platform\",\n", @@ -749,18 +206,10 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "id": "16da2d0b-3423-4366-832f-1f052b1050aa", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "<Item id=SPOT6_MS_202205011018084_SPOT6_P_202205011018084>\n" - ] - } - ], + "outputs": [], "source": [ "selected_spot = api.get_collection(\"spot-6-7-drs\").get_item(\"SPOT6_MS_202205011018084_SPOT6_P_202205011018084\")\n", "print(selected_spot)" @@ -776,20 +225,12 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "id": "f2ce29b5-232e-4301-b13f-039563e8aa13", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "<Item id=SUPER_SENTINEL2B_20220502-104848-819_L2A_T31TEJ_D_15d8e3>\n" - ] - } - ], + "outputs": [], "source": [ "def nearest(items, pivot):\n", " items_s2 = [item for item in items if item.id != pivot.id]\n", @@ -819,51 +260,12 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "id": "0f206e1e-3569-4180-91ed-00046c075b18", "metadata": { "tags": [] }, - "outputs": [ - { - "data": { - "text/html": [ - "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┳â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┓\n", - "┃<span style=\"font-weight: bold\"> Asset Key </span>┃<span style=\"font-weight: bold\"> Description </span>┃\n", - "┡â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”╇â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┩\n", - "│ src_xs │ │\n", - "│ src_pan │ │\n", - "│ dimap_xs │ │\n", - "│ dimap_pan │ │\n", - "│ cld_msk_vec_xs │ │\n", - "│ roi_msk_vec_xs │ │\n", - "│ cld_msk_vec_pan │ │\n", - "│ roi_msk_vec_pan │ │\n", - "│ rendered_preview │ Rendered preview │\n", - "└──────────────────┴──────────────────┘\n", - "</pre>\n" - ], - "text/plain": [ - "â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┳â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┓\n", - "┃\u001b[1m \u001b[0m\u001b[1mAsset Key \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mDescription \u001b[0m\u001b[1m \u001b[0m┃\n", - "┡â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”╇â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┩\n", - "│ src_xs │ │\n", - "│ src_pan │ │\n", - "│ dimap_xs │ │\n", - "│ dimap_pan │ │\n", - "│ cld_msk_vec_xs │ │\n", - "│ roi_msk_vec_xs │ │\n", - "│ cld_msk_vec_pan │ │\n", - "│ roi_msk_vec_pan │ │\n", - "│ rendered_preview │ Rendered preview │\n", - "└──────────────────┴──────────────────┘\n" - ] - }, - "execution_count": 9, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "import rich.table\n", "\n", @@ -884,39 +286,12 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "id": "1434ba0a-dc67-4067-ade9-ad5151684198", "metadata": { "tags": [] }, - "outputs": [ - { - "data": { - "text/html": [ - "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┳â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┓\n", - "┃<span style=\"font-weight: bold\"> Asset Key </span>┃<span style=\"font-weight: bold\"> Description </span>┃\n", - "┡â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”╇â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┩\n", - "│ clm │ │\n", - "│ img │ │\n", - "│ rendered_preview │ Rendered preview │\n", - "└──────────────────┴──────────────────┘\n", - "</pre>\n" - ], - "text/plain": [ - "â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┳â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┓\n", - "┃\u001b[1m \u001b[0m\u001b[1mAsset Key \u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mDescription \u001b[0m\u001b[1m \u001b[0m┃\n", - "┡â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”╇â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”┩\n", - "│ clm │ │\n", - "│ img │ │\n", - "│ rendered_preview │ Rendered preview │\n", - "└──────────────────┴──────────────────┘\n" - ] - }, - "execution_count": 10, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "table = rich.table.Table(\"Asset Key\", \"Description\")\n", "for asset_key, asset in selected_s2.assets.items():\n", @@ -941,34 +316,12 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "id": "48d38a79-8a06-4e56-83fe-75fe8b0ae613", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Prévisualisation RGB de l'image SPOT-6\n", - "---\n" - ] - }, - { - "data": { - "text/html": [ - "<img src=\"https://minio-api-dinamis.apps.okd.crocc.meso.umontpellier.fr/catalog/spot67/SPOT6_MS_202205011018084_SPOT6_P_202205011018084/DIM_SPOT6_MS_202205011018084_ORT_SPOT6_20220505_1228561r0qk779clt90_1_preview.png?X-Amz-Security-Token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NLZXkiOiIyVjlBUjhOQUlXSVRTT0lDWTJJSSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiKiJdLCJhdWQiOlsic2VjdXJpdHktYWRtaW4tY29uc29sZSIsImFjY291bnQiXSwiYXV0aF90aW1lIjoxNjg2NjU5ODM5LCJhenAiOiJtaW5pbyIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiZXhwIjoxNjg2OTU2ODkyLCJmYW1pbHlfbmFtZSI6IktlbmppIiwiZ2l2ZW5fbmFtZSI6Ik9zZSIsImlhdCI6MTY4NjkyODA5MiwiaXNzIjoiaHR0cHM6Ly9rZXljbG9hay1kaW5hbWlzLmFwcHMub2tkLmNyb2NjLm1lc28udW1vbnRwZWxsaWVyLmZyL2F1dGgvcmVhbG1zL2RpbmFtaXMiLCJqdGkiOiJhODFlNDZiYy0xZGM4LTQ3ZGMtODNjNS00MTg5ZWI3ZGVhNGIiLCJuYW1lIjoiT3NlIEtlbmppIiwicG9saWN5IjoibXlwb2xpY3kiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJrZW5qaS5vc2UiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1kaW5hbWlzIiwib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicHJvZmlsZSBlbWFpbCIsInNlc3Npb25fc3RhdGUiOiJkMjZjNDAzMi00M2Q3LTQyMzMtYTkwNS02ZmY3MWE2OTYxYzMiLCJzaWQiOiJkMjZjNDAzMi00M2Q3LTQyMzMtYTkwNS02ZmY3MWE2OTYxYzMiLCJzdWIiOiJhODE2ZDZhZS05NGMzLTQzMjItOTNlOS02ZGVhNzVhMDk3NjciLCJ0eXAiOiJCZWFyZXIifQ.zwEGbLIBe5rQwc1NN_KlYRLtd24NMIz-ZfMywJ4TGVkQTF2jojsgroLybBUvMMJBLorDYCOUbTTUpAtLOuFw8w&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=2V9AR8NAIWITSOICY2II%2F20230616%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230616T150812Z&X-Amz-Expires=28800&X-Amz-SignedHeaders=host&X-Amz-Signature=ccd3e8653ba0fe351de743bb3a36f3f294c302d3b440b4ed9ffa5a6b28869ab6\" width=\"500\"/>" - ], - "text/plain": [ - "<IPython.core.display.Image object>" - ] - }, - "execution_count": 11, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "from IPython.display import Image\n", "\n", @@ -979,34 +332,12 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "id": "68559a52-11e4-4ac2-92d7-c1315b116b4d", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Prévisualisation RGB de l'image superrésolue Sentinel-2\n", - "---\n" - ] - }, - { - "data": { - "text/html": [ - "<img src=\"https://minio-api-dinamis.apps.okd.crocc.meso.umontpellier.fr/catalog/super-sentinel-2-l2a/SUPER_SENTINEL2B_20220502-104848-819_L2A_T31TEJ_D_15d8e3/preview.png?X-Amz-Security-Token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NLZXkiOiIyVjlBUjhOQUlXSVRTT0lDWTJJSSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiKiJdLCJhdWQiOlsic2VjdXJpdHktYWRtaW4tY29uc29sZSIsImFjY291bnQiXSwiYXV0aF90aW1lIjoxNjg2NjU5ODM5LCJhenAiOiJtaW5pbyIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiZXhwIjoxNjg2OTU2ODkyLCJmYW1pbHlfbmFtZSI6IktlbmppIiwiZ2l2ZW5fbmFtZSI6Ik9zZSIsImlhdCI6MTY4NjkyODA5MiwiaXNzIjoiaHR0cHM6Ly9rZXljbG9hay1kaW5hbWlzLmFwcHMub2tkLmNyb2NjLm1lc28udW1vbnRwZWxsaWVyLmZyL2F1dGgvcmVhbG1zL2RpbmFtaXMiLCJqdGkiOiJhODFlNDZiYy0xZGM4LTQ3ZGMtODNjNS00MTg5ZWI3ZGVhNGIiLCJuYW1lIjoiT3NlIEtlbmppIiwicG9saWN5IjoibXlwb2xpY3kiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJrZW5qaS5vc2UiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1kaW5hbWlzIiwib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicHJvZmlsZSBlbWFpbCIsInNlc3Npb25fc3RhdGUiOiJkMjZjNDAzMi00M2Q3LTQyMzMtYTkwNS02ZmY3MWE2OTYxYzMiLCJzaWQiOiJkMjZjNDAzMi00M2Q3LTQyMzMtYTkwNS02ZmY3MWE2OTYxYzMiLCJzdWIiOiJhODE2ZDZhZS05NGMzLTQzMjItOTNlOS02ZGVhNzVhMDk3NjciLCJ0eXAiOiJCZWFyZXIifQ.zwEGbLIBe5rQwc1NN_KlYRLtd24NMIz-ZfMywJ4TGVkQTF2jojsgroLybBUvMMJBLorDYCOUbTTUpAtLOuFw8w&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=2V9AR8NAIWITSOICY2II%2F20230616%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230616T150812Z&X-Amz-Expires=28800&X-Amz-SignedHeaders=host&X-Amz-Signature=72bc6f1830b116136fe26b6f04126586fb3be4e60e27c7ce50c4eb24e78189e3\" width=\"500\"/>" - ], - "text/plain": [ - "<IPython.core.display.Image object>" - ] - }, - "execution_count": 12, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "print(\"Prévisualisation RGB de l'image superrésolue Sentinel-2\")\n", "print(\"---\")\n", @@ -1033,25 +364,12 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "id": "edd89178-571d-41d2-9749-b20ae8895361", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "lien href de l'image panchromatique SPOT-6\n", - "---\n", - "https://minio-api-dinamis.apps.okd.crocc.meso.umontpellier.fr/catalog/spot67/SPOT6_MS_202205011018084_SPOT6_P_202205011018084/COG_SPOT6_P_202205011018084_ORT_SPOT6_20220505_1229021hr6dt0y9l23o_1.tif?X-Amz-Security-Token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NLZXkiOiIyVjlBUjhOQUlXSVRTT0lDWTJJSSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiKiJdLCJhdWQiOlsic2VjdXJpdHktYWRtaW4tY29uc29sZSIsImFjY291bnQiXSwiYXV0aF90aW1lIjoxNjg2NjU5ODM5LCJhenAiOiJtaW5pbyIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiZXhwIjoxNjg2OTU2ODkyLCJmYW1pbHlfbmFtZSI6IktlbmppIiwiZ2l2ZW5fbmFtZSI6Ik9zZSIsImlhdCI6MTY4NjkyODA5MiwiaXNzIjoiaHR0cHM6Ly9rZXljbG9hay1kaW5hbWlzLmFwcHMub2tkLmNyb2NjLm1lc28udW1vbnRwZWxsaWVyLmZyL2F1dGgvcmVhbG1zL2RpbmFtaXMiLCJqdGkiOiJhODFlNDZiYy0xZGM4LTQ3ZGMtODNjNS00MTg5ZWI3ZGVhNGIiLCJuYW1lIjoiT3NlIEtlbmppIiwicG9saWN5IjoibXlwb2xpY3kiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJrZW5qaS5vc2UiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1kaW5hbWlzIiwib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicHJvZmlsZSBlbWFpbCIsInNlc3Npb25fc3RhdGUiOiJkMjZjNDAzMi00M2Q3LTQyMzMtYTkwNS02ZmY3MWE2OTYxYzMiLCJzaWQiOiJkMjZjNDAzMi00M2Q3LTQyMzMtYTkwNS02ZmY3MWE2OTYxYzMiLCJzdWIiOiJhODE2ZDZhZS05NGMzLTQzMjItOTNlOS02ZGVhNzVhMDk3NjciLCJ0eXAiOiJCZWFyZXIifQ.zwEGbLIBe5rQwc1NN_KlYRLtd24NMIz-ZfMywJ4TGVkQTF2jojsgroLybBUvMMJBLorDYCOUbTTUpAtLOuFw8w&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=2V9AR8NAIWITSOICY2II%2F20230616%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230616T150812Z&X-Amz-Expires=28800&X-Amz-SignedHeaders=host&X-Amz-Signature=a283a7fcab3ef71dd3fa3a1f39b90af363c9a012f8b81ccaea1c91ffdc8bdf0b\n", - "lien href de l'image Sentinel-2\n", - "---\n", - "https://minio-api-dinamis.apps.okd.crocc.meso.umontpellier.fr/catalog/super-sentinel-2-l2a/SUPER_SENTINEL2B_20220502-104848-819_L2A_T31TEJ_D_15d8e3/SUPER_SENTINEL2B_20220502-104848-819_L2A_T31TEJ_D_15d8e3.tif?X-Amz-Security-Token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NLZXkiOiIyVjlBUjhOQUlXSVRTT0lDWTJJSSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiKiJdLCJhdWQiOlsic2VjdXJpdHktYWRtaW4tY29uc29sZSIsImFjY291bnQiXSwiYXV0aF90aW1lIjoxNjg2NjU5ODM5LCJhenAiOiJtaW5pbyIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiZXhwIjoxNjg2OTU2ODkyLCJmYW1pbHlfbmFtZSI6IktlbmppIiwiZ2l2ZW5fbmFtZSI6Ik9zZSIsImlhdCI6MTY4NjkyODA5MiwiaXNzIjoiaHR0cHM6Ly9rZXljbG9hay1kaW5hbWlzLmFwcHMub2tkLmNyb2NjLm1lc28udW1vbnRwZWxsaWVyLmZyL2F1dGgvcmVhbG1zL2RpbmFtaXMiLCJqdGkiOiJhODFlNDZiYy0xZGM4LTQ3ZGMtODNjNS00MTg5ZWI3ZGVhNGIiLCJuYW1lIjoiT3NlIEtlbmppIiwicG9saWN5IjoibXlwb2xpY3kiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJrZW5qaS5vc2UiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1kaW5hbWlzIiwib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicHJvZmlsZSBlbWFpbCIsInNlc3Npb25fc3RhdGUiOiJkMjZjNDAzMi00M2Q3LTQyMzMtYTkwNS02ZmY3MWE2OTYxYzMiLCJzaWQiOiJkMjZjNDAzMi00M2Q3LTQyMzMtYTkwNS02ZmY3MWE2OTYxYzMiLCJzdWIiOiJhODE2ZDZhZS05NGMzLTQzMjItOTNlOS02ZGVhNzVhMDk3NjciLCJ0eXAiOiJCZWFyZXIifQ.zwEGbLIBe5rQwc1NN_KlYRLtd24NMIz-ZfMywJ4TGVkQTF2jojsgroLybBUvMMJBLorDYCOUbTTUpAtLOuFw8w&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=2V9AR8NAIWITSOICY2II%2F20230616%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230616T150812Z&X-Amz-Expires=28800&X-Amz-SignedHeaders=host&X-Amz-Signature=98316a8f0267eda512ad72c34d0c6db518ff5b8eed951f62528d6a678b9da042\n" - ] - } - ], + "outputs": [], "source": [ "print(\"lien href de l'image panchromatique SPOT-6\")\n", "print(\"---\")\n", @@ -1093,28 +411,12 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "id": "9c908eac-6452-4630-8293-0849b76d0f15", "metadata": { "tags": [] }, - "outputs": [ - { - "data": { - "text/plain": [ - "[{'type': 'Polygon',\n", - " 'coordinates': [[[780000.0, 6328000.0],\n", - " [780000.0, 6333000.0],\n", - " [775000.0, 6333000.0],\n", - " [775000.0, 6328000.0],\n", - " [780000.0, 6328000.0]]]}]" - ] - }, - "execution_count": 14, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "from shapely.geometry import box\n", "from fiona.crs import from_epsg\n",