From 94b956779f2d03efcd49428fcd072102d182f37a Mon Sep 17 00:00:00 2001
From: k204210 <wachsmann@dkrz.de>
Date: Tue, 21 Jun 2022 15:49:52 +0200
Subject: [PATCH] Use correct link

---
 ...use-case_advanced_summer_days_intake_xarray_cmip6.ipynb | 6 ++++--
 ...use-case_calculate-frost-days_intake-xarray_cmip6.ipynb | 6 ++++--
 notebooks/demo/use-case_climate-extremes-indices_cdo.ipynb | 6 ++++--
 .../use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb | 6 +++++-
 .../use-case_ensemble-analysis_intake-xarray_cmip6.ipynb   | 7 +++++--
 ...se_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb | 7 +++++--
 .../demo/use-case_plot-unstructured_psyplot_cmip6.ipynb    | 7 +++++--
 7 files changed, 32 insertions(+), 13 deletions(-)

diff --git a/notebooks/demo/use-case_advanced_summer_days_intake_xarray_cmip6.ipynb b/notebooks/demo/use-case_advanced_summer_days_intake_xarray_cmip6.ipynb
index c0afbad..7b2301e 100644
--- a/notebooks/demo/use-case_advanced_summer_days_intake_xarray_cmip6.ipynb
+++ b/notebooks/demo/use-case_advanced_summer_days_intake_xarray_cmip6.ipynb
@@ -170,8 +170,10 @@
    "outputs": [],
    "source": [
     "# Path to master catalog on the DKRZ server\n",
-    "col_url = \"https://dkrz.de/s/intake\"\n",
-    "parent_col=intake.open_catalog([col_url])\n",
+    "#dkrz_catalog=intake.open_catalog([\"https://dkrz.de/s/intake\"])\n",
+    "#\n",
+    "#only for the web page we need to take the original link:\n",
+    "parent_col=intake.open_catalog([\"https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml\"])\n",
     "list(parent_col)\n",
     "\n",
     "# Open the catalog with the intake package and name it \"col\" as short for \"collection\"\n",
diff --git a/notebooks/demo/use-case_calculate-frost-days_intake-xarray_cmip6.ipynb b/notebooks/demo/use-case_calculate-frost-days_intake-xarray_cmip6.ipynb
index a8c961d..57f3022 100644
--- a/notebooks/demo/use-case_calculate-frost-days_intake-xarray_cmip6.ipynb
+++ b/notebooks/demo/use-case_calculate-frost-days_intake-xarray_cmip6.ipynb
@@ -93,8 +93,10 @@
    "outputs": [],
    "source": [
     "# Path to master catalog on the DKRZ server\n",
-    "col_url = \"https://dkrz.de/s/intake\"\n",
-    "parent_col=intake.open_catalog([col_url])\n",
+    "#dkrz_catalog=intake.open_catalog([\"https://dkrz.de/s/intake\"])\n",
+    "#\n",
+    "#only for the web page we need to take the original link:\n",
+    "parent_col=intake.open_catalog([\"https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml\"])\n",
     "list(parent_col)\n",
     "\n",
     "# Open the catalog with the intake package and name it \"col\" as short for \"collection\"\n",
diff --git a/notebooks/demo/use-case_climate-extremes-indices_cdo.ipynb b/notebooks/demo/use-case_climate-extremes-indices_cdo.ipynb
index fe45e23..3a53955 100755
--- a/notebooks/demo/use-case_climate-extremes-indices_cdo.ipynb
+++ b/notebooks/demo/use-case_climate-extremes-indices_cdo.ipynb
@@ -91,8 +91,10 @@
    "source": [
     "import intake\n",
     "# Path to master catalog on the DKRZ server\n",
-    "col_url = \"https://dkrz.de/s/intake\"\n",
-    "dkrz_catalog=intake.open_catalog([col_url])\n",
+    "#dkrz_catalog=intake.open_catalog([\"https://dkrz.de/s/intake\"])\n",
+    "#\n",
+    "#only for the web page we need to take the original link:\n",
+    "dkrz_catalog=intake.open_catalog([\"https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml\"])\n",
     "list(dkrz_catalog)\n",
     "\n",
     "# Open the catalog with the intake package and name it \"col\" as short for \"collection\"\n",
diff --git a/notebooks/demo/use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb b/notebooks/demo/use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb
index 191c789..956cf98 100644
--- a/notebooks/demo/use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb
+++ b/notebooks/demo/use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb
@@ -54,7 +54,11 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "dkrz_catalog = intake.open_catalog([\"https://dkrz.de/s/intake\"])\n",
+    "# Path to master catalog on the DKRZ server\n",
+    "#dkrz_catalog=intake.open_catalog([\"https://dkrz.de/s/intake\"])\n",
+    "#\n",
+    "#only for the web page we need to take the original link:\n",
+    "dkrz_catalog=intake.open_catalog([\"https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml\"])\n",
     "# Print DKRZ open catalogues\n",
     "list(dkrz_catalog)"
    ]
diff --git a/notebooks/demo/use-case_ensemble-analysis_intake-xarray_cmip6.ipynb b/notebooks/demo/use-case_ensemble-analysis_intake-xarray_cmip6.ipynb
index 259793f..c0d5abd 100644
--- a/notebooks/demo/use-case_ensemble-analysis_intake-xarray_cmip6.ipynb
+++ b/notebooks/demo/use-case_ensemble-analysis_intake-xarray_cmip6.ipynb
@@ -119,8 +119,11 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "col_url = \"https://dkrz.de/s/intake\"\n",
-    "parent_col=intake.open_catalog([col_url])\n",
+    "# Path to master catalog on the DKRZ server\n",
+    "#dkrz_catalog=intake.open_catalog([\"https://dkrz.de/s/intake\"])\n",
+    "#\n",
+    "#only for the web page we need to take the original link:\n",
+    "parent_col=intake.open_catalog([\"https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml\"])\n",
     "list(parent_col)"
    ]
   },
diff --git a/notebooks/demo/use-case_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb b/notebooks/demo/use-case_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb
index 833c913..08b55ca 100644
--- a/notebooks/demo/use-case_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb
+++ b/notebooks/demo/use-case_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb
@@ -96,8 +96,11 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "col_url = \"https://dkrz.de/s/intake\"\n",
-    "parent_col=intake.open_catalog([col_url])\n",
+    "# Path to master catalog on the DKRZ server\n",
+    "#dkrz_catalog=intake.open_catalog([\"https://dkrz.de/s/intake\"])\n",
+    "#\n",
+    "#only for the web page we need to take the original link:\n",
+    "parent_col=intake.open_catalog([\"https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml\"])\n",
     "list(parent_col)"
    ]
   },
diff --git a/notebooks/demo/use-case_plot-unstructured_psyplot_cmip6.ipynb b/notebooks/demo/use-case_plot-unstructured_psyplot_cmip6.ipynb
index e508cd7..b83a0cc 100644
--- a/notebooks/demo/use-case_plot-unstructured_psyplot_cmip6.ipynb
+++ b/notebooks/demo/use-case_plot-unstructured_psyplot_cmip6.ipynb
@@ -56,8 +56,11 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "col_url = \"https://dkrz.de/s/intake\"\n",
-    "parent_col=intake.open_catalog([col_url])\n",
+    "# Path to master catalog on the DKRZ server\n",
+    "#dkrz_catalog=intake.open_catalog([\"https://dkrz.de/s/intake\"])\n",
+    "#\n",
+    "#only for the web page we need to take the original link:\n",
+    "parent_col=intake.open_catalog([\"https://gitlab.dkrz.de/data-infrastructure-services/intake-esm/-/raw/master/esm-collections/cloud-access/dkrz_catalog.yaml\"])\n",
     "list(parent_col)"
    ]
   },
-- 
GitLab