diff --git a/add-jupyterhub-button.mjs b/add-jupyterhub-button.mjs index b636722..e4f7da2 100644 --- a/add-jupyterhub-button.mjs +++ b/add-jupyterhub-button.mjs @@ -59,11 +59,24 @@ const plugin = { } // Create JupyterHub URL - const gitpull_next = "/hub/user-redirect/git-pull?repo=https://github.com/EOPF-Sample-Service/eopf-sample-notebooks&branch=main&urlpath=lab/tree/eopf-sample-notebooks/notebooks/" + notebookPath + const gitpull_next = + "/hub/user-redirect/git-pull?repo=https://github.com/EOPF-Sample-Service/eopf-sample-notebooks&branch=main&urlpath=lab/tree/eopf-sample-notebooks/notebooks/" + + notebookPath; const encoded = encodeURIComponent(gitpull_next); - const spawn_next = "/hub/spawn?next=" + encoded - const auto_start_extra = "%23fancy-forms-config%3D%7B%22default_url%22%3A%22lab%22%2C%22default_url%3Aunlisted_choice%22%3A%22%22%2C%22image%22%3A%22base%22%2C%22image%3Aunlisted_choice%22%3A%22%22%2C%20%22autoStart%22%3A%22true%22%7D" - const jupyterHubUrl = "https://jupyterhub.user.eopf.eodc.eu/hub/login?next=" + encodeURIComponent(spawn_next) + auto_start_extra + const spawn_next = "/hub/spawn?next=" + encoded; + var jupyterHubUrl = ""; + // All the notebooks including GDAL in their name will use a different image containing the GDAL EOPF ZARR DRIVER + if (notebookPath.includes("GDAL")) { + jupyterHubUrl = + "https://jupyterhub.user.eopf.eodc.eu/hub/login?next=" + + encodeURIComponent(spawn_next) + + "%23fancy-forms-config=%7B%22profile%22%3A%22choose-your-environment%22%2C%22image%22%3A%22unlisted_choice%22%2C%22image%3Aunlisted_choice%22%3A%22clausmichele%2Feopf-zarr-driver%3Alatest%22%2C%20%22autoStart%22%3A%22true%22%7D"; + } else { + jupyterHubUrl = + "https://jupyterhub.user.eopf.eodc.eu/hub/login?next=" + + encodeURIComponent(spawn_next) + + "%23fancy-forms-config%3D%7B%22default_url%22%3A%22lab%22%2C%22default_url%3Aunlisted_choice%22%3A%22%22%2C%22image%22%3A%22base%22%2C%22image%3Aunlisted_choice%22%3A%22%22%2C%20%22autoStart%22%3A%22true%22%7D"; + } // Get style options const isLarge = data.options?.style === "large"; diff --git a/myst.yml b/myst.yml index 35842ed..a749a98 100644 --- a/myst.yml +++ b/myst.yml @@ -38,7 +38,8 @@ project: - file: notebooks/Sentinel-3/Sentinel-3_Heatwave_Mapping.ipynb - file: notebooks/xarray_eopf_plugin/xarray_eopf_sen2.ipynb - file: notebooks/xarray_eopf_plugin/xarray_eopf_sen3.ipynb - - file: notebooks/xcube_eopf_plugin/introduction_xcube_eopf_plugin.ipynb + - file: notebooks/xcube_eopf_plugin/xcube_eopf_sen2.ipynb + - file: notebooks/xcube_eopf_plugin/xcube_eopf_sen3.ipynb - file: notebooks/Sentinel-1/Sentinel-1_L1_GRD_Zarr_product_exploration.ipynb - file: notebooks/Sentinel-1/Sentinel-1_L1_SLC_Zarr_product_exploration.ipynb - file: notebooks/Sentinel-1/Sentinel-1_L2_OCN_Zarr_product_exploration.ipynb diff --git a/notebooks/Sentinel-1/Sentinel-1_L1_GRD_Zarr_product_exploration.ipynb b/notebooks/Sentinel-1/Sentinel-1_L1_GRD_Zarr_product_exploration.ipynb index 23ac73a..fd71b5e 100644 --- a/notebooks/Sentinel-1/Sentinel-1_L1_GRD_Zarr_product_exploration.ipynb +++ b/notebooks/Sentinel-1/Sentinel-1_L1_GRD_Zarr_product_exploration.ipynb @@ -150,7 +150,7 @@ "metadata": {}, "outputs": [], "source": [ - "remote_product_path = f\"https://objects.eodc.eu/e05ab01a9d56408d82ac32d69a5aae2a:notebook-data/tutorial_data/cpm_v260/S1A_IW_GRDH_1SDV_20250408T164909_20250408T164934_058668_0743A7_D5AC.zarr\"" + "remote_product_path = \"https://objects.eodc.eu/e05ab01a9d56408d82ac32d69a5aae2a:notebook-data/tutorial_data/cpm_v260/S1A_IW_GRDH_1SDV_20250408T164909_20250408T164934_058668_0743A7_D5AC.zarr\"" ] }, { diff --git a/notebooks/Sentinel-1/Sentinel-1_L1_SLC_Zarr_product_exploration.ipynb b/notebooks/Sentinel-1/Sentinel-1_L1_SLC_Zarr_product_exploration.ipynb index 85d9f6e..8bb8330 100644 --- a/notebooks/Sentinel-1/Sentinel-1_L1_SLC_Zarr_product_exploration.ipynb +++ b/notebooks/Sentinel-1/Sentinel-1_L1_SLC_Zarr_product_exploration.ipynb @@ -7,7 +7,7 @@ "source": [ "---\n", "title: Sentinel-1 SLC Zarr Product Exploration\n", - "subtitle: Explore how to open, inspect the metadata and process Sentinel-1 SLC Zarr format\n", + "subtitle: Explore how to open, inspect the metadata and process Sentinel-1 Single Look Complex (SLC) Zarr format\n", "authors:\n", " - name: Michele Claus\n", " orcid: 0000-0003-3680-381X\n", @@ -30,7 +30,7 @@ "tags: [\"sentinel-1\", \"xarray\", \"land\"]\n", "releaseDate: 2025-09-02\n", "datePublished: 2025-09-02\n", - "dateModified: 2025-09-02\n", + "dateModified: 2025-10-21\n", "github: https://github.com/EOPF-Sample-Service/eopf-sample-notebooks\n", "license: Apache-2.0\n", "---" @@ -118,17 +118,17 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": 1, "id": "b6aca074-c8ca-4a42-a784-eb1ea61406c6", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 36, + "execution_count": 1, "metadata": {}, "output_type": "execute_result" } @@ -164,7 +164,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 2, "id": "44b9af59-0d61-4c8a-8828-2e51e381a664", "metadata": {}, "outputs": [], @@ -186,7 +186,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 3, "id": "f8c23ac8-7a85-426a-be98-df1cd2bbb385", "metadata": {}, "outputs": [ @@ -567,7 +567,7 @@ "Dimensions: ()\n", "Data variables:\n", " *empty*\n", - "Attributes: (2)