Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change endpoints #334

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
" <meta name="viewport" content="width=device-width,\n",
" initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />\n",
" <style>\n",
" #map_2b934d161e5bf434ebf818ac861e1035 {\n",
" #map_df089e917e35701450d78f623dcad07b {\n",
" position: relative;\n",
" width: 100.0%;\n",
" height: 100.0%;\n",
Expand All @@ -187,14 +187,14 @@
"<body>\n",
" \n",
" \n",
" <div class="folium-map" id="map_2b934d161e5bf434ebf818ac861e1035" ></div>\n",
" <div class="folium-map" id="map_df089e917e35701450d78f623dcad07b" ></div>\n",
" \n",
"</body>\n",
"<script>\n",
" \n",
" \n",
" var map_2b934d161e5bf434ebf818ac861e1035 = L.map(\n",
" "map_2b934d161e5bf434ebf818ac861e1035",\n",
" var map_df089e917e35701450d78f623dcad07b = L.map(\n",
" "map_df089e917e35701450d78f623dcad07b",\n",
" {\n",
" center: [-6.73450947645923, -52.32675867212383],\n",
" crs: L.CRS.EPSG3857,\n",
Expand All @@ -208,47 +208,47 @@
"\n",
" \n",
" \n",
" var tile_layer_833d2a1c4e89012c09e3b286fc850507 = L.tileLayer(\n",
" var tile_layer_e28f54ac032566bf3e293d8f9ab9f808 = L.tileLayer(\n",
" "https://tile.openstreetmap.org/{z}/{x}/{y}.png",\n",
" {"attribution": "\\u0026copy; \\u003ca href=\\"https://www.openstreetmap.org/copyright\\"\\u003eOpenStreetMap\\u003c/a\\u003e contributors", "detectRetina": false, "maxNativeZoom": 19, "maxZoom": 19, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n",
" );\n",
" \n",
" \n",
" tile_layer_833d2a1c4e89012c09e3b286fc850507.addTo(map_2b934d161e5bf434ebf818ac861e1035);\n",
" tile_layer_e28f54ac032566bf3e293d8f9ab9f808.addTo(map_df089e917e35701450d78f623dcad07b);\n",
" \n",
" \n",
" function geo_json_91fa72e5e9f9c01524e312f8850a3fa2_styler(feature) {\n",
" function geo_json_7fdd4990e0b8e3519b1862784c9cf66d_styler(feature) {\n",
" switch(feature.id) {\n",
" default:\n",
" return {"fillColor": "blue"};\n",
" }\n",
" }\n",
"\n",
" function geo_json_91fa72e5e9f9c01524e312f8850a3fa2_onEachFeature(feature, layer) {\n",
" function geo_json_7fdd4990e0b8e3519b1862784c9cf66d_onEachFeature(feature, layer) {\n",
" layer.on({\n",
" });\n",
" };\n",
" var geo_json_91fa72e5e9f9c01524e312f8850a3fa2 = L.geoJson(null, {\n",
" onEachFeature: geo_json_91fa72e5e9f9c01524e312f8850a3fa2_onEachFeature,\n",
" var geo_json_7fdd4990e0b8e3519b1862784c9cf66d = L.geoJson(null, {\n",
" onEachFeature: geo_json_7fdd4990e0b8e3519b1862784c9cf66d_onEachFeature,\n",
" \n",
" style: geo_json_91fa72e5e9f9c01524e312f8850a3fa2_styler,\n",
" style: geo_json_7fdd4990e0b8e3519b1862784c9cf66d_styler,\n",
" });\n",
"\n",
" function geo_json_91fa72e5e9f9c01524e312f8850a3fa2_add (data) {\n",
" geo_json_91fa72e5e9f9c01524e312f8850a3fa2\n",
" function geo_json_7fdd4990e0b8e3519b1862784c9cf66d_add (data) {\n",
" geo_json_7fdd4990e0b8e3519b1862784c9cf66d\n",
" .addData(data);\n",
" }\n",
" geo_json_91fa72e5e9f9c01524e312f8850a3fa2_add({"features": [{"geometry": {"coordinates": [[[-52.327365999997696, -6.70518499999564], [-52.34195699999621, -6.709276999997054], [-52.340411999998686, -6.716608000001646], [-52.35603300000155, -6.724108999996197], [-52.34830900000054, -6.745759000002462], [-52.33594900000237, -6.7406449999983185], [-52.332858999998344, -6.755988000002078], [-52.32238799999921, -6.762976999996534], [-52.31535000000104, -6.765363000001587], [-52.3143199999967, -6.758715000004025], [-52.31775299999766, -6.751725999998545], [-52.31535000000104, -6.745759000002462], [-52.29389199999602, -6.747804999999408], [-52.296810000003795, -6.739452000002298], [-52.29749700000222, -6.729564000000073], [-52.31809600000357, -6.727859000002256], [-52.327365999997696, -6.70518499999564]]], "type": "Polygon"}, "id": "0", "type": "Feature"}], "type": "FeatureCollection"});\n",
" geo_json_7fdd4990e0b8e3519b1862784c9cf66d_add({"features": [{"geometry": {"coordinates": [[[-52.327365999997696, -6.70518499999564], [-52.34195699999621, -6.709276999997054], [-52.340411999998686, -6.716608000001646], [-52.35603300000155, -6.724108999996197], [-52.34830900000054, -6.745759000002462], [-52.33594900000237, -6.7406449999983185], [-52.332858999998344, -6.755988000002078], [-52.32238799999921, -6.762976999996534], [-52.31535000000104, -6.765363000001587], [-52.3143199999967, -6.758715000004025], [-52.31775299999766, -6.751725999998545], [-52.31535000000104, -6.745759000002462], [-52.29389199999602, -6.747804999999408], [-52.296810000003795, -6.739452000002298], [-52.29749700000222, -6.729564000000073], [-52.31809600000357, -6.727859000002256], [-52.327365999997696, -6.70518499999564]]], "type": "Polygon"}, "id": "0", "type": "Feature"}], "type": "FeatureCollection"});\n",
"\n",
" \n",
" \n",
" geo_json_91fa72e5e9f9c01524e312f8850a3fa2.addTo(map_2b934d161e5bf434ebf818ac861e1035);\n",
" geo_json_7fdd4990e0b8e3519b1862784c9cf66d.addTo(map_df089e917e35701450d78f623dcad07b);\n",
" \n",
"</script>\n",
"&lt;/html&gt;\" 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 0x157ae0520>"
"<folium.folium.Map at 0x1475f9430>"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -471,13 +471,12 @@
" evalscript=evalscript_forest_change,\n",
" input_data=[\n",
" SentinelHubStatistical.input_data(\n",
" # Note that we set the service_url to the US-West-2 (Oregon) region since the data are stored there\n",
" DataCollection.define_byoc(height_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" DataCollection.define_byoc(height_collection_id),\n",
" identifier=\"canopyHeight\",\n",
" time_interval=(f\"{year1}-01-01\", f\"{year2}-01-01\"),\n",
" ),\n",
" SentinelHubStatistical.input_data(\n",
" DataCollection.define_byoc(cover_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" DataCollection.define_byoc(cover_collection_id),\n",
" identifier=\"canopyCover\",\n",
" time_interval=(f\"{year1}-01-01\", f\"{year2}-01-01\"),\n",
" ),\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
" &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,\n",
" initial-scale=1.0, maximum-scale=1.0, user-scalable=no&quot; /&gt;\n",
" &lt;style&gt;\n",
" #map_67ed2ca0afb4f274ec5381f614d31a34 {\n",
" #map_8f1fc6857b8befa1cec7fad989a9113e {\n",
" position: relative;\n",
" width: 100.0%;\n",
" height: 100.0%;\n",
Expand All @@ -189,14 +189,14 @@
"&lt;body&gt;\n",
" \n",
" \n",
" &lt;div class=&quot;folium-map&quot; id=&quot;map_67ed2ca0afb4f274ec5381f614d31a34&quot; &gt;&lt;/div&gt;\n",
" &lt;div class=&quot;folium-map&quot; id=&quot;map_8f1fc6857b8befa1cec7fad989a9113e&quot; &gt;&lt;/div&gt;\n",
" \n",
"&lt;/body&gt;\n",
"&lt;script&gt;\n",
" \n",
" \n",
" var map_67ed2ca0afb4f274ec5381f614d31a34 = L.map(\n",
" &quot;map_67ed2ca0afb4f274ec5381f614d31a34&quot;,\n",
" var map_8f1fc6857b8befa1cec7fad989a9113e = L.map(\n",
" &quot;map_8f1fc6857b8befa1cec7fad989a9113e&quot;,\n",
" {\n",
" center: [-6.73450947645923, -52.32675867212383],\n",
" crs: L.CRS.EPSG3857,\n",
Expand All @@ -210,47 +210,47 @@
"\n",
" \n",
" \n",
" var tile_layer_efc418477024909aa824c66b51f9f443 = L.tileLayer(\n",
" var tile_layer_881671c67e7b133163aebcff034cef56 = L.tileLayer(\n",
" &quot;https://tile.openstreetmap.org/{z}/{x}/{y}.png&quot;,\n",
" {&quot;attribution&quot;: &quot;\\u0026copy; \\u003ca href=\\&quot;https://www.openstreetmap.org/copyright\\&quot;\\u003eOpenStreetMap\\u003c/a\\u003e contributors&quot;, &quot;detectRetina&quot;: false, &quot;maxNativeZoom&quot;: 19, &quot;maxZoom&quot;: 19, &quot;minZoom&quot;: 0, &quot;noWrap&quot;: false, &quot;opacity&quot;: 1, &quot;subdomains&quot;: &quot;abc&quot;, &quot;tms&quot;: false}\n",
" );\n",
" \n",
" \n",
" tile_layer_efc418477024909aa824c66b51f9f443.addTo(map_67ed2ca0afb4f274ec5381f614d31a34);\n",
" tile_layer_881671c67e7b133163aebcff034cef56.addTo(map_8f1fc6857b8befa1cec7fad989a9113e);\n",
" \n",
" \n",
" function geo_json_a3f6b7eb54b13c6c9817ebd0032ab373_styler(feature) {\n",
" function geo_json_8f5f5028b13ffdc112672a8629c650b0_styler(feature) {\n",
" switch(feature.id) {\n",
" default:\n",
" return {&quot;fillColor&quot;: &quot;blue&quot;};\n",
" }\n",
" }\n",
"\n",
" function geo_json_a3f6b7eb54b13c6c9817ebd0032ab373_onEachFeature(feature, layer) {\n",
" function geo_json_8f5f5028b13ffdc112672a8629c650b0_onEachFeature(feature, layer) {\n",
" layer.on({\n",
" });\n",
" };\n",
" var geo_json_a3f6b7eb54b13c6c9817ebd0032ab373 = L.geoJson(null, {\n",
" onEachFeature: geo_json_a3f6b7eb54b13c6c9817ebd0032ab373_onEachFeature,\n",
" var geo_json_8f5f5028b13ffdc112672a8629c650b0 = L.geoJson(null, {\n",
" onEachFeature: geo_json_8f5f5028b13ffdc112672a8629c650b0_onEachFeature,\n",
" \n",
" style: geo_json_a3f6b7eb54b13c6c9817ebd0032ab373_styler,\n",
" style: geo_json_8f5f5028b13ffdc112672a8629c650b0_styler,\n",
" });\n",
"\n",
" function geo_json_a3f6b7eb54b13c6c9817ebd0032ab373_add (data) {\n",
" geo_json_a3f6b7eb54b13c6c9817ebd0032ab373\n",
" function geo_json_8f5f5028b13ffdc112672a8629c650b0_add (data) {\n",
" geo_json_8f5f5028b13ffdc112672a8629c650b0\n",
" .addData(data);\n",
" }\n",
" geo_json_a3f6b7eb54b13c6c9817ebd0032ab373_add({&quot;features&quot;: [{&quot;geometry&quot;: {&quot;coordinates&quot;: [[[-52.327365999997696, -6.70518499999564], [-52.34195699999621, -6.709276999997054], [-52.340411999998686, -6.716608000001646], [-52.35603300000155, -6.724108999996197], [-52.34830900000054, -6.745759000002462], [-52.33594900000237, -6.7406449999983185], [-52.332858999998344, -6.755988000002078], [-52.32238799999921, -6.762976999996534], [-52.31535000000104, -6.765363000001587], [-52.3143199999967, -6.758715000004025], [-52.31775299999766, -6.751725999998545], [-52.31535000000104, -6.745759000002462], [-52.29389199999602, -6.747804999999408], [-52.296810000003795, -6.739452000002298], [-52.29749700000222, -6.729564000000073], [-52.31809600000357, -6.727859000002256], [-52.327365999997696, -6.70518499999564]]], &quot;type&quot;: &quot;Polygon&quot;}, &quot;id&quot;: &quot;0&quot;, &quot;type&quot;: &quot;Feature&quot;}], &quot;type&quot;: &quot;FeatureCollection&quot;});\n",
" geo_json_8f5f5028b13ffdc112672a8629c650b0_add({&quot;features&quot;: [{&quot;geometry&quot;: {&quot;coordinates&quot;: [[[-52.327365999997696, -6.70518499999564], [-52.34195699999621, -6.709276999997054], [-52.340411999998686, -6.716608000001646], [-52.35603300000155, -6.724108999996197], [-52.34830900000054, -6.745759000002462], [-52.33594900000237, -6.7406449999983185], [-52.332858999998344, -6.755988000002078], [-52.32238799999921, -6.762976999996534], [-52.31535000000104, -6.765363000001587], [-52.3143199999967, -6.758715000004025], [-52.31775299999766, -6.751725999998545], [-52.31535000000104, -6.745759000002462], [-52.29389199999602, -6.747804999999408], [-52.296810000003795, -6.739452000002298], [-52.29749700000222, -6.729564000000073], [-52.31809600000357, -6.727859000002256], [-52.327365999997696, -6.70518499999564]]], &quot;type&quot;: &quot;Polygon&quot;}, &quot;id&quot;: &quot;0&quot;, &quot;type&quot;: &quot;Feature&quot;}], &quot;type&quot;: &quot;FeatureCollection&quot;});\n",
"\n",
" \n",
" \n",
" geo_json_a3f6b7eb54b13c6c9817ebd0032ab373.addTo(map_67ed2ca0afb4f274ec5381f614d31a34);\n",
" geo_json_8f5f5028b13ffdc112672a8629c650b0.addTo(map_8f1fc6857b8befa1cec7fad989a9113e);\n",
" \n",
"&lt;/script&gt;\n",
"&lt;/html&gt;\" 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 0x105d51b50>"
"<folium.folium.Map at 0x107e70fa0>"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -381,16 +381,15 @@
" ),\n",
" input_data=[\n",
" SentinelHubStatistical.input_data(\n",
" # Note that we set the service_url to the US-West-2 (Oregon) region since the data are stored there\n",
" DataCollection.define_byoc(height_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" DataCollection.define_byoc(height_collection_id),\n",
" identifier=\"canopyHeight\",\n",
" ),\n",
" SentinelHubStatistical.input_data(\n",
" DataCollection.define_byoc(cover_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" DataCollection.define_byoc(cover_collection_id),\n",
" identifier=\"canopyCover\",\n",
" ),\n",
" SentinelHubStatistical.input_data(\n",
" DataCollection.define_byoc(carbon_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" DataCollection.define_byoc(carbon_collection_id),\n",
" identifier=\"carbon\",\n",
" ),\n",
" ],\n",
Expand Down Expand Up @@ -997,7 +996,7 @@
" # Set the collection containing Aboveground Carbon Density, Forest Carbon Diligence \n",
" # Here we fetch data from 2013 to 2017\n",
" SentinelHubRequest.input_data(\n",
" data_collection=DataCollection.define_byoc(carbon_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" data_collection=DataCollection.define_byoc(carbon_collection_id),\n",
" time_interval=(f\"{start_year}-01-01\", f\"{end_year}-01-01\"),\n",
" )\n",
" ],\n",
Expand Down Expand Up @@ -1635,15 +1634,15 @@
" ),\n",
" input_data=[\n",
" SentinelHubStatistical.input_data(\n",
" DataCollection.define_byoc(height_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" DataCollection.define_byoc(height_collection_id),\n",
" identifier=\"canopyHeight\",\n",
" ),\n",
" SentinelHubStatistical.input_data(\n",
" DataCollection.define_byoc(cover_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" DataCollection.define_byoc(cover_collection_id),\n",
" identifier=\"canopyCover\",\n",
" ),\n",
" SentinelHubStatistical.input_data(\n",
" DataCollection.define_byoc(carbon_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" DataCollection.define_byoc(carbon_collection_id),\n",
" identifier=\"carbon\",\n",
" ),\n",
" ],\n",
Expand Down Expand Up @@ -2245,13 +2244,13 @@
" evalscript=evalscript_maps,\n",
" input_data=[\n",
" SentinelHubStatistical.input_data(\n",
" DataCollection.define_byoc(height_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" DataCollection.define_byoc(height_collection_id),\n",
" identifier=\"canopyHeight\",\n",
" time_interval=(\"2013-01-01\", \"2017-12-31\"),\n",
" mosaicking_order=\"leastRecent\",\n",
" ),\n",
" SentinelHubStatistical.input_data(\n",
" DataCollection.define_byoc(cover_collection_id, service_url=\"https://services-uswest2.sentinel-hub.com\"),\n",
" DataCollection.define_byoc(cover_collection_id),\n",
" identifier=\"canopyCover\",\n",
" time_interval=(\"2013-01-01\", \"2017-12-31\"),\n",
" mosaicking_order=\"leastRecent\",\n",
Expand Down