From a4a1c220803dd8cfa58944846ac912cd3f079759 Mon Sep 17 00:00:00 2001 From: "betolink:w" Date: Thu, 28 Apr 2022 12:23:15 -0600 Subject: [PATCH 1/3] updated access notebook --- .../data_access/data_access_2_earthdata.ipynb | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/book/tutorials/data_access/data_access_2_earthdata.ipynb b/book/tutorials/data_access/data_access_2_earthdata.ipynb index 81b8f73..4581100 100644 --- a/book/tutorials/data_access/data_access_2_earthdata.ipynb +++ b/book/tutorials/data_access/data_access_2_earthdata.ipynb @@ -108,6 +108,25 @@ " auth = Auth().login(strategy='interactive')" ] }, + { + "cell_type": "markdown", + "id": "a210a6e6-eefb-442f-bb8d-32650f8e2910", + "metadata": {}, + "source": [ + "If we need to access a dataset under an access control list (ACL) is always a good idea to refresh\n", + "our access tokens with CMR." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "8e0a1571-e5c2-47e5-bd35-19c40c7147d8", + "metadata": {}, + "outputs": [], + "source": [ + "auth.refresh_tokens()" + ] + }, { "cell_type": "markdown", "id": "26aa3967-e4dc-4429-8929-ba04be7f6a6d", @@ -471,7 +490,7 @@ "try:\n", " files = access.get(cloud_granules[0:2], \"/tmp/demo-NSIDC_CPRD/\")\n", "except Exception as e:\n", - " print(\"If we are here maybe we are not in us-west-2 or the collection \")" + " print(\"If we are here maybe we are not in us-west-2 or the collection is restricted\")" ] }, { @@ -552,7 +571,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.10" + "version": "3.10.4" } }, "nbformat": 4, From a0d9d5fbe416e3a6591199a6086abae02a572155 Mon Sep 17 00:00:00 2001 From: "betolink:w" Date: Thu, 28 Apr 2022 12:41:18 -0600 Subject: [PATCH 2/3] manualy setting Python to the original repo version for the access notebook --- book/tutorials/data_access/data_access_2_earthdata.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/tutorials/data_access/data_access_2_earthdata.ipynb b/book/tutorials/data_access/data_access_2_earthdata.ipynb index 4581100..65d199f 100644 --- a/book/tutorials/data_access/data_access_2_earthdata.ipynb +++ b/book/tutorials/data_access/data_access_2_earthdata.ipynb @@ -571,7 +571,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.4" + "version": "3.9.10" } }, "nbformat": 4, From 17124b3ecea96651c1c15ec1199a9d950392add7 Mon Sep 17 00:00:00 2001 From: "betolink:w" Date: Tue, 3 May 2022 10:20:17 -0600 Subject: [PATCH 3/3] update earthdata to v0.3.1 --- conda/environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/environment.yml b/conda/environment.yml index 1043cf2..6ab7e7a 100644 --- a/conda/environment.yml +++ b/conda/environment.yml @@ -14,7 +14,7 @@ dependencies: - dask - dask-labextension - datashader - - earthdata + - earthdata>=0.3 - fsspec - geemap - gh