Skip to content

Commit

Permalink
fix notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Nov 7, 2024
1 parent c649a23 commit 6bcc0d2
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions docs/src/examples/Timeseries_Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"id": "9e13048e-765e-4e8c-838a-d81ada066893",
"metadata": {},
"outputs": [
Expand All @@ -49,10 +49,10 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x751aac021950>"
"<IPython.lib.display.IFrame at 0x7eecb6742150>"
]
},
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -69,7 +69,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"id": "f2442bc5-ba52-4be9-a609-e93052cd9d99",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -126,7 +126,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"id": "100849a8-283f-4dd8-ae26-75aab82faa1f",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -154,7 +154,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"id": "28b1a023-f755-4c9e-b9c7-45a429a4071d",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -207,7 +207,7 @@
"source": [
"### Weekly timeseries\n",
"\n",
"Sometimes you might be interested in a report with lower temporal resolution than the full dataset timeseries. By setting `step=\"P1W\"` and `exact=True`, you can get a weekly series."
"Sometimes you might be interested in a report with lower temporal resolution than the full dataset timeseries. By setting `step=\"P1W\"` and `temporal_mode=\"point\"`, you can get a weekly series."
]
},
{
Expand Down Expand Up @@ -268,7 +268,7 @@
"\n",
"Some datasets (like satellite imagery) may consist of granules that do not fully cover an arbitrary area of interest. In this case it is useful to construct a timeseries from a set of datetime ranges so that granules can be mosaiced to ensure each step has full coverage.\n",
"\n",
"To create a set of non-overlapping week-long datetime ranges, you can modify the query to use `exact=False` which will create ranges that start on the weekly values returned in the previous query and extend up to the second before the next value in the series."
"To create a set of non-overlapping week-long datetime ranges, you can modify the query to use `temporal_mode=\"interval\"` which will create ranges that start on the weekly values returned in the previous query and extend up to the second before the next value in the series."
]
},
{
Expand Down Expand Up @@ -326,7 +326,7 @@
"metadata": {},
"source": [
"### Custom timeseries\n",
"If you want to specify the exact datetime values for a timeseries and you either cannot do not want to use the timeseries parameters, you can supply a set of comma-separated datetimes and/or datetime ranges to the `datetimes` parameter."
"If you want to specify the exact datetime values for a timeseries and you either cannot do not want to use the timeseries parameters, you can supply a set of comma-separated datetimes and/or datetime ranges to the `datetime` parameter."
]
},
{
Expand Down Expand Up @@ -771,7 +771,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_a79d64c81ac532f36d11d9fdc2fb53de {\n",
" #map_9a4c707dca17cc81e91fb0d0320402ba {\n",
" position: relative;\n",
" width: 100.0%;\n",
" height: 100.0%;\n",
Expand All @@ -785,14 +785,14 @@
"&lt;body&gt;\n",
" \n",
" \n",
" &lt;div class=&quot;folium-map&quot; id=&quot;map_a79d64c81ac532f36d11d9fdc2fb53de&quot; &gt;&lt;/div&gt;\n",
" &lt;div class=&quot;folium-map&quot; id=&quot;map_9a4c707dca17cc81e91fb0d0320402ba&quot; &gt;&lt;/div&gt;\n",
" \n",
"&lt;/body&gt;\n",
"&lt;script&gt;\n",
" \n",
" \n",
" var map_a79d64c81ac532f36d11d9fdc2fb53de = L.map(\n",
" &quot;map_a79d64c81ac532f36d11d9fdc2fb53de&quot;,\n",
" var map_9a4c707dca17cc81e91fb0d0320402ba = L.map(\n",
" &quot;map_9a4c707dca17cc81e91fb0d0320402ba&quot;,\n",
" {\n",
" center: [0.0, 0.0],\n",
" crs: L.CRS.EPSG3857,\n",
Expand All @@ -806,118 +806,118 @@
"\n",
" \n",
" \n",
" var tile_layer_cb3c530397b3a7831432c5b3576f1d3b = L.tileLayer(\n",
" var tile_layer_691865243331e052c8866a076403cd14 = 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;: 3, &quot;noWrap&quot;: false, &quot;opacity&quot;: 1, &quot;subdomains&quot;: &quot;abc&quot;, &quot;tms&quot;: false}\n",
" );\n",
" \n",
" \n",
" tile_layer_cb3c530397b3a7831432c5b3576f1d3b.addTo(map_a79d64c81ac532f36d11d9fdc2fb53de);\n",
" tile_layer_691865243331e052c8866a076403cd14.addTo(map_9a4c707dca17cc81e91fb0d0320402ba);\n",
" \n",
" \n",
" var tile_layer_03e3c4672c7f2f2924a9ca00fc982ede = L.tileLayer(\n",
" var tile_layer_ca29782c1a899216171bc16863e61d25 = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2023-11-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_f1f2be5eb5b0326eb4700c2ee834edad = L.tileLayer(\n",
" var tile_layer_7165d3c1960cde8f55f4cc4334f65c3a = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2023-12-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_218831cf32e4689e2aa1e3573a284d6a = L.tileLayer(\n",
" var tile_layer_66dcb3b318972d6e19ac0abc627489cc = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2024-01-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_d002ea8407c2cbb210d7c36e86e456b5 = L.tileLayer(\n",
" var tile_layer_a18ed71333dfc9ad5aa4e614eab09149 = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2024-02-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_c10e43e479840a7a8d72ab5d3f8b96fa = L.tileLayer(\n",
" var tile_layer_3dad08dc056ac29858aac0e14c21e7ed = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2024-03-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_b4fe6d0a8ae9bf86eed446821811d782 = L.tileLayer(\n",
" var tile_layer_8192316e03111b5fb1df1c45a5dd057a = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2024-04-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_34263115a52393483ee3d12cae874f49 = L.tileLayer(\n",
" var tile_layer_5cfca20d61cc781592f4cb32f0dc966f = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2024-05-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_7f4ff8edd6741020aa12d7e0be6bae76 = L.tileLayer(\n",
" var tile_layer_8e07d38abd7251ef173850581adb9115 = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2024-06-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_93ca39a81996b44361cc6380cde87dc0 = L.tileLayer(\n",
" var tile_layer_3274a398d0bf568fd8d31bbfaed157c4 = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2024-07-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_ed174e685faa3c372121c458b53b9756 = L.tileLayer(\n",
" var tile_layer_d606238052671c108369914e60d211e3 = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2024-08-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_bd69aa86e18e3c0e4417ce9dba6240cd = L.tileLayer(\n",
" var tile_layer_8a1f8658928c95b3bddce36233e6fa7e = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2024-09-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var tile_layer_6ca8b95a2ae3e1f8ac0d3ec73f66cfd4 = L.tileLayer(\n",
" var tile_layer_76a01e04abef42a64278755761c2e382 = L.tileLayer(\n",
" &quot;http://localhost:8081/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?concept_id=C2036881735-POCLOUD\\u0026variable=sea_ice_fraction\\u0026backend=xarray\\u0026colormap_name=blues_r\\u0026rescale=%5B0%2C+1%5D\\u0026datetime=2024-10-01T00%3A00%3A01%2B00%3A00&quot;,\n",
" {&quot;attribution&quot;: &quot;GAMSSA SST&quot;, &quot;detectRetina&quot;: false, &quot;maxZoom&quot;: 18, &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",
" var layer_control_b328ef68dbd2aae0b808b612f2304c46_layers = {\n",
" var layer_control_f0a2b8170c271da44ac66cf2f9032b04_layers = {\n",
" base_layers : {\n",
" &quot;openstreetmap&quot; : tile_layer_cb3c530397b3a7831432c5b3576f1d3b,\n",
" &quot;openstreetmap&quot; : tile_layer_691865243331e052c8866a076403cd14,\n",
" },\n",
" overlays : {\n",
" &quot;2023-11&quot; : tile_layer_03e3c4672c7f2f2924a9ca00fc982ede,\n",
" &quot;2023-12&quot; : tile_layer_f1f2be5eb5b0326eb4700c2ee834edad,\n",
" &quot;2024-01&quot; : tile_layer_218831cf32e4689e2aa1e3573a284d6a,\n",
" &quot;2024-02&quot; : tile_layer_d002ea8407c2cbb210d7c36e86e456b5,\n",
" &quot;2024-03&quot; : tile_layer_c10e43e479840a7a8d72ab5d3f8b96fa,\n",
" &quot;2024-04&quot; : tile_layer_b4fe6d0a8ae9bf86eed446821811d782,\n",
" &quot;2024-05&quot; : tile_layer_34263115a52393483ee3d12cae874f49,\n",
" &quot;2024-06&quot; : tile_layer_7f4ff8edd6741020aa12d7e0be6bae76,\n",
" &quot;2024-07&quot; : tile_layer_93ca39a81996b44361cc6380cde87dc0,\n",
" &quot;2024-08&quot; : tile_layer_ed174e685faa3c372121c458b53b9756,\n",
" &quot;2024-09&quot; : tile_layer_bd69aa86e18e3c0e4417ce9dba6240cd,\n",
" &quot;2024-10&quot; : tile_layer_6ca8b95a2ae3e1f8ac0d3ec73f66cfd4,\n",
" &quot;2023-11&quot; : tile_layer_ca29782c1a899216171bc16863e61d25,\n",
" &quot;2023-12&quot; : tile_layer_7165d3c1960cde8f55f4cc4334f65c3a,\n",
" &quot;2024-01&quot; : tile_layer_66dcb3b318972d6e19ac0abc627489cc,\n",
" &quot;2024-02&quot; : tile_layer_a18ed71333dfc9ad5aa4e614eab09149,\n",
" &quot;2024-03&quot; : tile_layer_3dad08dc056ac29858aac0e14c21e7ed,\n",
" &quot;2024-04&quot; : tile_layer_8192316e03111b5fb1df1c45a5dd057a,\n",
" &quot;2024-05&quot; : tile_layer_5cfca20d61cc781592f4cb32f0dc966f,\n",
" &quot;2024-06&quot; : tile_layer_8e07d38abd7251ef173850581adb9115,\n",
" &quot;2024-07&quot; : tile_layer_3274a398d0bf568fd8d31bbfaed157c4,\n",
" &quot;2024-08&quot; : tile_layer_d606238052671c108369914e60d211e3,\n",
" &quot;2024-09&quot; : tile_layer_8a1f8658928c95b3bddce36233e6fa7e,\n",
" &quot;2024-10&quot; : tile_layer_76a01e04abef42a64278755761c2e382,\n",
" },\n",
" };\n",
" let layer_control_b328ef68dbd2aae0b808b612f2304c46 = L.control.layers(\n",
" layer_control_b328ef68dbd2aae0b808b612f2304c46_layers.base_layers,\n",
" layer_control_b328ef68dbd2aae0b808b612f2304c46_layers.overlays,\n",
" let layer_control_f0a2b8170c271da44ac66cf2f9032b04 = L.control.layers(\n",
" layer_control_f0a2b8170c271da44ac66cf2f9032b04_layers.base_layers,\n",
" layer_control_f0a2b8170c271da44ac66cf2f9032b04_layers.overlays,\n",
" {&quot;autoZIndex&quot;: true, &quot;collapsed&quot;: false, &quot;position&quot;: &quot;topright&quot;}\n",
" ).addTo(map_a79d64c81ac532f36d11d9fdc2fb53de);\n",
" ).addTo(map_9a4c707dca17cc81e91fb0d0320402ba);\n",
"\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 0x751a53785950>"
"<folium.folium.Map at 0x7eec6216cbd0>"
]
},
"execution_count": 15,
Expand Down

0 comments on commit 6bcc0d2

Please sign in to comment.