diff --git a/docs/src/examples/Timeseries_Example.ipynb b/docs/src/examples/Timeseries_Example.ipynb index 33307dc..295a8f5 100644 --- a/docs/src/examples/Timeseries_Example.ipynb +++ b/docs/src/examples/Timeseries_Example.ipynb @@ -30,7 +30,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "id": "9e13048e-765e-4e8c-838a-d81ada066893", "metadata": {}, "outputs": [ @@ -49,10 +49,10 @@ " " ], "text/plain": [ - "" + "" ] }, - "execution_count": 1, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -69,7 +69,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 3, "id": "f2442bc5-ba52-4be9-a609-e93052cd9d99", "metadata": {}, "outputs": [], @@ -126,7 +126,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 4, "id": "100849a8-283f-4dd8-ae26-75aab82faa1f", "metadata": {}, "outputs": [], @@ -154,7 +154,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 5, "id": "28b1a023-f755-4c9e-b9c7-45a429a4071d", "metadata": {}, "outputs": [ @@ -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." ] }, { @@ -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." ] }, { @@ -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." ] }, { @@ -771,7 +771,7 @@ " <meta name="viewport" content="width=device-width,\n", " initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />\n", " <style>\n", - " #map_a79d64c81ac532f36d11d9fdc2fb53de {\n", + " #map_9a4c707dca17cc81e91fb0d0320402ba {\n", " position: relative;\n", " width: 100.0%;\n", " height: 100.0%;\n", @@ -785,14 +785,14 @@ "<body>\n", " \n", " \n", - " <div class="folium-map" id="map_a79d64c81ac532f36d11d9fdc2fb53de" ></div>\n", + " <div class="folium-map" id="map_9a4c707dca17cc81e91fb0d0320402ba" ></div>\n", " \n", "</body>\n", "<script>\n", " \n", " \n", - " var map_a79d64c81ac532f36d11d9fdc2fb53de = L.map(\n", - " "map_a79d64c81ac532f36d11d9fdc2fb53de",\n", + " var map_9a4c707dca17cc81e91fb0d0320402ba = L.map(\n", + " "map_9a4c707dca17cc81e91fb0d0320402ba",\n", " {\n", " center: [0.0, 0.0],\n", " crs: L.CRS.EPSG3857,\n", @@ -806,118 +806,118 @@ "\n", " \n", " \n", - " var tile_layer_cb3c530397b3a7831432c5b3576f1d3b = L.tileLayer(\n", + " var tile_layer_691865243331e052c8866a076403cd14 = 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": 3, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": 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", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_f1f2be5eb5b0326eb4700c2ee834edad = L.tileLayer(\n", + " var tile_layer_7165d3c1960cde8f55f4cc4334f65c3a = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_218831cf32e4689e2aa1e3573a284d6a = L.tileLayer(\n", + " var tile_layer_66dcb3b318972d6e19ac0abc627489cc = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_d002ea8407c2cbb210d7c36e86e456b5 = L.tileLayer(\n", + " var tile_layer_a18ed71333dfc9ad5aa4e614eab09149 = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_c10e43e479840a7a8d72ab5d3f8b96fa = L.tileLayer(\n", + " var tile_layer_3dad08dc056ac29858aac0e14c21e7ed = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_b4fe6d0a8ae9bf86eed446821811d782 = L.tileLayer(\n", + " var tile_layer_8192316e03111b5fb1df1c45a5dd057a = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_34263115a52393483ee3d12cae874f49 = L.tileLayer(\n", + " var tile_layer_5cfca20d61cc781592f4cb32f0dc966f = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_7f4ff8edd6741020aa12d7e0be6bae76 = L.tileLayer(\n", + " var tile_layer_8e07d38abd7251ef173850581adb9115 = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_93ca39a81996b44361cc6380cde87dc0 = L.tileLayer(\n", + " var tile_layer_3274a398d0bf568fd8d31bbfaed157c4 = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_ed174e685faa3c372121c458b53b9756 = L.tileLayer(\n", + " var tile_layer_d606238052671c108369914e60d211e3 = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_bd69aa86e18e3c0e4417ce9dba6240cd = L.tileLayer(\n", + " var tile_layer_8a1f8658928c95b3bddce36233e6fa7e = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var tile_layer_6ca8b95a2ae3e1f8ac0d3ec73f66cfd4 = L.tileLayer(\n", + " var tile_layer_76a01e04abef42a64278755761c2e382 = L.tileLayer(\n", " "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",\n", " {"attribution": "GAMSSA SST", "detectRetina": false, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}\n", " );\n", " \n", " \n", - " var layer_control_b328ef68dbd2aae0b808b612f2304c46_layers = {\n", + " var layer_control_f0a2b8170c271da44ac66cf2f9032b04_layers = {\n", " base_layers : {\n", - " "openstreetmap" : tile_layer_cb3c530397b3a7831432c5b3576f1d3b,\n", + " "openstreetmap" : tile_layer_691865243331e052c8866a076403cd14,\n", " },\n", " overlays : {\n", - " "2023-11" : tile_layer_03e3c4672c7f2f2924a9ca00fc982ede,\n", - " "2023-12" : tile_layer_f1f2be5eb5b0326eb4700c2ee834edad,\n", - " "2024-01" : tile_layer_218831cf32e4689e2aa1e3573a284d6a,\n", - " "2024-02" : tile_layer_d002ea8407c2cbb210d7c36e86e456b5,\n", - " "2024-03" : tile_layer_c10e43e479840a7a8d72ab5d3f8b96fa,\n", - " "2024-04" : tile_layer_b4fe6d0a8ae9bf86eed446821811d782,\n", - " "2024-05" : tile_layer_34263115a52393483ee3d12cae874f49,\n", - " "2024-06" : tile_layer_7f4ff8edd6741020aa12d7e0be6bae76,\n", - " "2024-07" : tile_layer_93ca39a81996b44361cc6380cde87dc0,\n", - " "2024-08" : tile_layer_ed174e685faa3c372121c458b53b9756,\n", - " "2024-09" : tile_layer_bd69aa86e18e3c0e4417ce9dba6240cd,\n", - " "2024-10" : tile_layer_6ca8b95a2ae3e1f8ac0d3ec73f66cfd4,\n", + " "2023-11" : tile_layer_ca29782c1a899216171bc16863e61d25,\n", + " "2023-12" : tile_layer_7165d3c1960cde8f55f4cc4334f65c3a,\n", + " "2024-01" : tile_layer_66dcb3b318972d6e19ac0abc627489cc,\n", + " "2024-02" : tile_layer_a18ed71333dfc9ad5aa4e614eab09149,\n", + " "2024-03" : tile_layer_3dad08dc056ac29858aac0e14c21e7ed,\n", + " "2024-04" : tile_layer_8192316e03111b5fb1df1c45a5dd057a,\n", + " "2024-05" : tile_layer_5cfca20d61cc781592f4cb32f0dc966f,\n", + " "2024-06" : tile_layer_8e07d38abd7251ef173850581adb9115,\n", + " "2024-07" : tile_layer_3274a398d0bf568fd8d31bbfaed157c4,\n", + " "2024-08" : tile_layer_d606238052671c108369914e60d211e3,\n", + " "2024-09" : tile_layer_8a1f8658928c95b3bddce36233e6fa7e,\n", + " "2024-10" : 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", " {"autoZIndex": true, "collapsed": false, "position": "topright"}\n", - " ).addTo(map_a79d64c81ac532f36d11d9fdc2fb53de);\n", + " ).addTo(map_9a4c707dca17cc81e91fb0d0320402ba);\n", "\n", " \n", "</script>\n", "</html>\" style=\"position:absolute;width:100%;height:100%;left:0;top:0;border:none !important;\" allowfullscreen webkitallowfullscreen mozallowfullscreen>" ], "text/plain": [ - "" + "" ] }, "execution_count": 15,