-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolves #451
- Loading branch information
Showing
5 changed files
with
467 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -436,7 +436,7 @@ | |
" <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/[email protected]/dist/leaflet.js"></script>\n", | ||
" <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>\n", | ||
" <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>\n", | ||
" <script src="https://cdn.jsdelivr.net/npm/[email protected]/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/[email protected]/dist/leaflet.css"/>\n", | ||
|
@@ -449,7 +449,7 @@ | |
" <meta name="viewport" content="width=device-width,\n", | ||
" initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />\n", | ||
" <style>\n", | ||
" #map_d5567ce222129676b5770c988d43ce49 {\n", | ||
" #map_edc6e30d08f58e515a72246324e98610 {\n", | ||
" position: relative;\n", | ||
" width: 100.0%;\n", | ||
" height: 100.0%;\n", | ||
|
@@ -463,14 +463,14 @@ | |
"<body>\n", | ||
" \n", | ||
" \n", | ||
" <div class="folium-map" id="map_d5567ce222129676b5770c988d43ce49" ></div>\n", | ||
" <div class="folium-map" id="map_edc6e30d08f58e515a72246324e98610" ></div>\n", | ||
" \n", | ||
"</body>\n", | ||
"<script>\n", | ||
" \n", | ||
" \n", | ||
" var map_d5567ce222129676b5770c988d43ce49 = L.map(\n", | ||
" "map_d5567ce222129676b5770c988d43ce49",\n", | ||
" var map_edc6e30d08f58e515a72246324e98610 = L.map(\n", | ||
" "map_edc6e30d08f58e515a72246324e98610",\n", | ||
" {\n", | ||
" center: [50.97592437439627, -116.80843390127599],\n", | ||
" crs: L.CRS.EPSG3857,\n", | ||
|
@@ -484,22 +484,28 @@ | |
"\n", | ||
" \n", | ||
" \n", | ||
" var tile_layer_b35fbf1975c1f00814f2e5fa60fb3704 = L.tileLayer(\n", | ||
" "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",\n", | ||
" {"attribution": "Data by \\u0026copy; \\u003ca target=\\"_blank\\" href=\\"http://openstreetmap.org\\"\\u003eOpenStreetMap\\u003c/a\\u003e, under \\u003ca target=\\"_blank\\" href=\\"http://www.openstreetmap.org/copyright\\"\\u003eODbL\\u003c/a\\u003e.", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", | ||
" ).addTo(map_d5567ce222129676b5770c988d43ce49);\n", | ||
" var tile_layer_de0a5a53aa6ce71cb89d67f4d8ef9ea9 = 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_de0a5a53aa6ce71cb89d67f4d8ef9ea9.addTo(map_edc6e30d08f58e515a72246324e98610);\n", | ||
" \n", | ||
" \n", | ||
" var tile_layer_3956044f1720037622c967f08575676e = L.tileLayer(\n", | ||
" var tile_layer_8f271f9dadf8fe09aa8e2f134b7f0d1f = L.tileLayer(\n", | ||
" "https://titiler.maap-project.org/cog/tiles/WebMercatorQuad/{z}/{x}/{y}@1x.png?url=s3%3A%2F%2Fmaap-ops-workspace%2Fshared%2Falexdevseed%2Flandsat8%2Fviz%2FLandsat8_30542_comp_cog_2015-2020_dps.tif\\u0026bidx=1\\u0026resampling=nearest\\u0026rescale=0.0%2C48145.0\\u0026return_mask=true\\u0026colormap_name=gist_earth_r",\n", | ||
" {"attribution": "USGS", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", | ||
" ).addTo(map_d5567ce222129676b5770c988d43ce49);\n", | ||
" );\n", | ||
" \n", | ||
" \n", | ||
" tile_layer_8f271f9dadf8fe09aa8e2f134b7f0d1f.addTo(map_edc6e30d08f58e515a72246324e98610);\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 0x7f78ef4be440>" | ||
"<folium.folium.Map at 0x7fdba211e230>" | ||
] | ||
}, | ||
"execution_count": 10, | ||
|
@@ -546,7 +552,7 @@ | |
{ | ||
"data": { | ||
"text/plain": [ | ||
"MosaicJSON(mosaicjson='0.0.3', name=None, description=None, version='1.0.0', attribution=None, minzoom=1, maxzoom=16, quadkey_zoom=1, bounds=(-117.19773367251135, 50.19386902261471, -116.26013039328576, 51.16389512140189), center=(-116.72893203289856, 50.67888207200831, 1), tiles={'0': ['s3://maap-ops-workspace/shared/alexdevseed/landsat8/viz/Landsat8_30542_comp_cog_2015-2020_dps.tif', 's3://maap-ops-workspace/shared/alexdevseed/landsat8/viz/Landsat8_30543_comp_cog_2015-2020_dps.tif', 's3://maap-ops-workspace/shared/alexdevseed/landsat8/viz/Landsat8_30822_comp_cog_2015-2020_dps.tif', 's3://maap-ops-workspace/shared/alexdevseed/landsat8/viz/Landsat8_30823_comp_cog_2015-2020_dps.tif']}, tilematrixset=None, asset_type=None, asset_prefix=None, data_type=None, colormap=None, layers=None)" | ||
"MosaicJSON(mosaicjson='0.0.3', name=None, description=None, version='1.0.0', attribution=None, minzoom=1, maxzoom=16, quadkey_zoom=1, bounds=(-117.19773658985991, 50.19386970651916, -116.26013280274384, 51.163893026903324), center=(-116.72893469630188, 50.67888136671124, 1), tiles={'0': ['s3://maap-ops-workspace/shared/alexdevseed/landsat8/viz/Landsat8_30542_comp_cog_2015-2020_dps.tif', 's3://maap-ops-workspace/shared/alexdevseed/landsat8/viz/Landsat8_30543_comp_cog_2015-2020_dps.tif', 's3://maap-ops-workspace/shared/alexdevseed/landsat8/viz/Landsat8_30822_comp_cog_2015-2020_dps.tif', 's3://maap-ops-workspace/shared/alexdevseed/landsat8/viz/Landsat8_30823_comp_cog_2015-2020_dps.tif']}, tilematrixset=None, asset_type=None, asset_prefix=None, data_type=None, colormap=None, layers=None)" | ||
] | ||
}, | ||
"execution_count": 12, | ||
|
@@ -587,24 +593,24 @@ | |
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"{'id': '1cecf064-1f2c-4adf-b7b3-7121fdc8f97d',\n", | ||
" 'links': [{'href': 'https://titiler.maap-project.org/mosaics/1cecf064-1f2c-4adf-b7b3-7121fdc8f97d',\n", | ||
"{'id': 'f0f4b2bd-f4b0-4878-a8e7-c295ba9d3672',\n", | ||
" 'links': [{'href': 'https://titiler.maap-project.org/mosaics/f0f4b2bd-f4b0-4878-a8e7-c295ba9d3672',\n", | ||
" 'rel': 'self',\n", | ||
" 'title': 'Self',\n", | ||
" 'type': 'application/json'},\n", | ||
" {'href': 'https://titiler.maap-project.org/mosaics/1cecf064-1f2c-4adf-b7b3-7121fdc8f97d/mosaicjson',\n", | ||
" {'href': 'https://titiler.maap-project.org/mosaics/f0f4b2bd-f4b0-4878-a8e7-c295ba9d3672/mosaicjson',\n", | ||
" 'rel': 'mosaicjson',\n", | ||
" 'title': 'MosaicJSON',\n", | ||
" 'type': 'application/json'},\n", | ||
" {'href': 'https://titiler.maap-project.org/mosaics/1cecf064-1f2c-4adf-b7b3-7121fdc8f97d/tilejson.json',\n", | ||
" {'href': 'https://titiler.maap-project.org/mosaics/f0f4b2bd-f4b0-4878-a8e7-c295ba9d3672/tilejson.json',\n", | ||
" 'rel': 'tilejson',\n", | ||
" 'title': 'TileJSON',\n", | ||
" 'type': 'application/json'},\n", | ||
" {'href': 'https://titiler.maap-project.org/mosaics/1cecf064-1f2c-4adf-b7b3-7121fdc8f97d/tiles/{z}/{x}/{y}',\n", | ||
" {'href': 'https://titiler.maap-project.org/mosaics/f0f4b2bd-f4b0-4878-a8e7-c295ba9d3672/tiles/{z}/{x}/{y}',\n", | ||
" 'rel': 'tiles',\n", | ||
" 'title': 'Tiles',\n", | ||
" 'type': 'application/json'},\n", | ||
" {'href': 'https://titiler.maap-project.org/mosaics/1cecf064-1f2c-4adf-b7b3-7121fdc8f97d/WMTSCapabilities.xml',\n", | ||
" {'href': 'https://titiler.maap-project.org/mosaics/f0f4b2bd-f4b0-4878-a8e7-c295ba9d3672/WMTSCapabilities.xml',\n", | ||
" 'rel': 'wmts',\n", | ||
" 'title': 'WMTS',\n", | ||
" 'type': 'application/json'}]}\n" | ||
|
@@ -633,7 +639,7 @@ | |
{ | ||
"data": { | ||
"text/plain": [ | ||
"[{'href': 'https://titiler.maap-project.org/mosaics/1cecf064-1f2c-4adf-b7b3-7121fdc8f97d/tilejson.json',\n", | ||
"[{'href': 'https://titiler.maap-project.org/mosaics/f0f4b2bd-f4b0-4878-a8e7-c295ba9d3672/tilejson.json',\n", | ||
" 'rel': 'tilejson',\n", | ||
" 'type': 'application/json',\n", | ||
" 'title': 'TileJSON'}]" | ||
|
@@ -680,7 +686,7 @@ | |
" <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/[email protected]/dist/leaflet.js"></script>\n", | ||
" <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>\n", | ||
" <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>\n", | ||
" <script src="https://cdn.jsdelivr.net/npm/[email protected]/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/[email protected]/dist/leaflet.css"/>\n", | ||
|
@@ -693,7 +699,7 @@ | |
" <meta name="viewport" content="width=device-width,\n", | ||
" initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />\n", | ||
" <style>\n", | ||
" #map_d5567ce222129676b5770c988d43ce49 {\n", | ||
" #map_edc6e30d08f58e515a72246324e98610 {\n", | ||
" position: relative;\n", | ||
" width: 100.0%;\n", | ||
" height: 100.0%;\n", | ||
|
@@ -707,14 +713,14 @@ | |
"<body>\n", | ||
" \n", | ||
" \n", | ||
" <div class="folium-map" id="map_d5567ce222129676b5770c988d43ce49" ></div>\n", | ||
" <div class="folium-map" id="map_edc6e30d08f58e515a72246324e98610" ></div>\n", | ||
" \n", | ||
"</body>\n", | ||
"<script>\n", | ||
" \n", | ||
" \n", | ||
" var map_d5567ce222129676b5770c988d43ce49 = L.map(\n", | ||
" "map_d5567ce222129676b5770c988d43ce49",\n", | ||
" var map_edc6e30d08f58e515a72246324e98610 = L.map(\n", | ||
" "map_edc6e30d08f58e515a72246324e98610",\n", | ||
" {\n", | ||
" center: [50.97592437439627, -116.80843390127599],\n", | ||
" crs: L.CRS.EPSG3857,\n", | ||
|
@@ -728,28 +734,43 @@ | |
"\n", | ||
" \n", | ||
" \n", | ||
" var tile_layer_b35fbf1975c1f00814f2e5fa60fb3704 = L.tileLayer(\n", | ||
" "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",\n", | ||
" {"attribution": "Data by \\u0026copy; \\u003ca target=\\"_blank\\" href=\\"http://openstreetmap.org\\"\\u003eOpenStreetMap\\u003c/a\\u003e, under \\u003ca target=\\"_blank\\" href=\\"http://www.openstreetmap.org/copyright\\"\\u003eODbL\\u003c/a\\u003e.", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", | ||
" ).addTo(map_d5567ce222129676b5770c988d43ce49);\n", | ||
" var tile_layer_de0a5a53aa6ce71cb89d67f4d8ef9ea9 = 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_de0a5a53aa6ce71cb89d67f4d8ef9ea9.addTo(map_edc6e30d08f58e515a72246324e98610);\n", | ||
" \n", | ||
" \n", | ||
" var tile_layer_3956044f1720037622c967f08575676e = L.tileLayer(\n", | ||
" var tile_layer_8f271f9dadf8fe09aa8e2f134b7f0d1f = L.tileLayer(\n", | ||
" "https://titiler.maap-project.org/cog/tiles/WebMercatorQuad/{z}/{x}/{y}@1x.png?url=s3%3A%2F%2Fmaap-ops-workspace%2Fshared%2Falexdevseed%2Flandsat8%2Fviz%2FLandsat8_30542_comp_cog_2015-2020_dps.tif\\u0026bidx=1\\u0026resampling=nearest\\u0026rescale=0.0%2C48145.0\\u0026return_mask=true\\u0026colormap_name=gist_earth_r",\n", | ||
" {"attribution": "USGS", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", | ||
" ).addTo(map_d5567ce222129676b5770c988d43ce49);\n", | ||
" );\n", | ||
" \n", | ||
" \n", | ||
" tile_layer_8f271f9dadf8fe09aa8e2f134b7f0d1f.addTo(map_edc6e30d08f58e515a72246324e98610);\n", | ||
" \n", | ||
" \n", | ||
" tile_layer_de0a5a53aa6ce71cb89d67f4d8ef9ea9.addTo(map_edc6e30d08f58e515a72246324e98610);\n", | ||
" \n", | ||
" \n", | ||
" var tile_layer_785edbfc1a8409a2e7b75283b290631b = L.tileLayer(\n", | ||
" "https://titiler.maap-project.org/mosaics/1cecf064-1f2c-4adf-b7b3-7121fdc8f97d/tiles/{z}/{x}/{y}@1x.png?bidx=1\\u0026resampling=nearest\\u0026rescale=0.0%2C48145.0\\u0026return_mask=true\\u0026colormap_name=viridis\\u0026pixel_selection=first",\n", | ||
" tile_layer_8f271f9dadf8fe09aa8e2f134b7f0d1f.addTo(map_edc6e30d08f58e515a72246324e98610);\n", | ||
" \n", | ||
" \n", | ||
" var tile_layer_79681b54099cd58a89408770915ed149 = L.tileLayer(\n", | ||
" "https://titiler.maap-project.org/mosaics/f0f4b2bd-f4b0-4878-a8e7-c295ba9d3672/tiles/{z}/{x}/{y}@1x.png?bidx=1\\u0026resampling=nearest\\u0026rescale=0.0%2C48145.0\\u0026return_mask=true\\u0026colormap_name=viridis\\u0026pixel_selection=first",\n", | ||
" {"attribution": "USGS", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", | ||
" ).addTo(map_d5567ce222129676b5770c988d43ce49);\n", | ||
" );\n", | ||
" \n", | ||
" \n", | ||
" tile_layer_79681b54099cd58a89408770915ed149.addTo(map_edc6e30d08f58e515a72246324e98610);\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 0x7f78ef4be440>" | ||
"<folium.folium.Map at 0x7fdba211e230>" | ||
] | ||
}, | ||
"execution_count": 15, | ||
|
@@ -982,6 +1003,14 @@ | |
"text": [ | ||
"['#fdfbfb', '#e3c3b5', '#c9a87a', '#bab060', '#9db059', '#76a652', '#45994a', '#3a8c66', '#2e7c7f', '#1f567b', '#0f2577', '#000000']\n" | ||
] | ||
}, | ||
{ | ||
"name": "stderr", | ||
"output_type": "stream", | ||
"text": [ | ||
"/tmp/ipykernel_1558/290206215.py:2: MatplotlibDeprecationWarning: The get_cmap function was deprecated in Matplotlib 3.7 and will be removed two minor releases later. Use ``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap(obj)`` instead.\n", | ||
" cmap = matplotlib.cm.get_cmap(cmap_name, 12)\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
|
@@ -1176,16 +1205,23 @@ | |
"\n", | ||
"Once you have added the dataset json file and summary content, submit a PR to https://github.com/MAAP-Project/biomass-dashboard-datasets. A member of the data team will review the PR and when it is merged your content will appear in biomass.dit.maap-project.org." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"interpreter": { | ||
"hash": "06a5d0145d2c0de679875a5546b4cbbf4cf8aec2ac17ee1072f90657257481e7" | ||
}, | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"display_name": "Python [conda env:pangeo] *", | ||
"language": "python", | ||
"name": "python3" | ||
"name": "conda-env-pangeo-py" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
|
Oops, something went wrong.