From 98077c03038d678b93559fa4081ee313ae9c8977 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Fri, 1 Mar 2024 08:51:16 -0500 Subject: [PATCH] Fix notebook 88 error (#696) * Fix notebook 88 error * Comment out installation --- docs/notebooks/88_nasa_earth_data.ipynb | 46 +++++++++++++-------- examples/notebooks/88_nasa_earth_data.ipynb | 46 +++++++++++++-------- 2 files changed, 56 insertions(+), 36 deletions(-) diff --git a/docs/notebooks/88_nasa_earth_data.ipynb b/docs/notebooks/88_nasa_earth_data.ipynb index 2b4c818ab7..cf5f5bfd28 100644 --- a/docs/notebooks/88_nasa_earth_data.ipynb +++ b/docs/notebooks/88_nasa_earth_data.ipynb @@ -22,6 +22,16 @@ "id": "1", "metadata": {}, "outputs": [], + "source": [ + "# %pip install leafmap earthaccess mapclassify" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "2", + "metadata": {}, + "outputs": [], "source": [ "import leafmap\n", "import pandas as pd" @@ -29,7 +39,7 @@ }, { "cell_type": "markdown", - "id": "2", + "id": "3", "metadata": {}, "source": [ "To download and access the data, you will need to create an Earthdata login. You can register for an account at [urs.earthdata.nasa.gov](https://urs.earthdata.nasa.gov)." @@ -38,7 +48,7 @@ { "cell_type": "code", "execution_count": null, - "id": "3", + "id": "4", "metadata": {}, "outputs": [], "source": [ @@ -47,7 +57,7 @@ }, { "cell_type": "markdown", - "id": "4", + "id": "5", "metadata": {}, "source": [ "You can search data by short name, doi, concept id, etc. You can find the list of NASA Earth science data products from the [NASA-Earth-Data](https://github.com/opengeos/NASA-Earth-Data) repo. The example below shows how to show the metadata of the 9,000+ NASA Earth science data products." @@ -56,7 +66,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5", + "id": "6", "metadata": {}, "outputs": [], "source": [ @@ -67,7 +77,7 @@ }, { "cell_type": "markdown", - "id": "6", + "id": "7", "metadata": {}, "source": [ "To search data, specify the short name, bounding box, date range, etc. To return the footprints of the data, set `return_gdf=True`." @@ -76,7 +86,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7", + "id": "8", "metadata": {}, "outputs": [], "source": [ @@ -92,7 +102,7 @@ }, { "cell_type": "markdown", - "id": "8", + "id": "9", "metadata": {}, "source": [ "Visualize the footprints of the data on an interactive map." @@ -101,7 +111,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9", + "id": "10", "metadata": {}, "outputs": [], "source": [ @@ -110,7 +120,7 @@ }, { "cell_type": "markdown", - "id": "10", + "id": "11", "metadata": {}, "source": [ "Download the data to your local drive. Let's download the first 5 data products." @@ -119,7 +129,7 @@ { "cell_type": "code", "execution_count": null, - "id": "11", + "id": "12", "metadata": {}, "outputs": [], "source": [ @@ -128,7 +138,7 @@ }, { "cell_type": "markdown", - "id": "12", + "id": "13", "metadata": {}, "source": [ "Use the interactive GUI to search and download data." @@ -137,7 +147,7 @@ { "cell_type": "code", "execution_count": null, - "id": "13", + "id": "14", "metadata": {}, "outputs": [], "source": [ @@ -147,7 +157,7 @@ { "cell_type": "code", "execution_count": null, - "id": "14", + "id": "15", "metadata": {}, "outputs": [], "source": [ @@ -158,7 +168,7 @@ }, { "cell_type": "markdown", - "id": "15", + "id": "16", "metadata": {}, "source": [ "![](https://i.imgur.com/yGRCfsb.png)" @@ -166,7 +176,7 @@ }, { "cell_type": "markdown", - "id": "16", + "id": "17", "metadata": {}, "source": [ "To access the search results as a GeoDataFrame:" @@ -175,7 +185,7 @@ { "cell_type": "code", "execution_count": null, - "id": "17", + "id": "18", "metadata": {}, "outputs": [], "source": [ @@ -184,7 +194,7 @@ }, { "cell_type": "markdown", - "id": "18", + "id": "19", "metadata": {}, "source": [ "To download the data:" @@ -193,7 +203,7 @@ { "cell_type": "code", "execution_count": null, - "id": "19", + "id": "20", "metadata": {}, "outputs": [], "source": [ diff --git a/examples/notebooks/88_nasa_earth_data.ipynb b/examples/notebooks/88_nasa_earth_data.ipynb index 2b4c818ab7..cf5f5bfd28 100644 --- a/examples/notebooks/88_nasa_earth_data.ipynb +++ b/examples/notebooks/88_nasa_earth_data.ipynb @@ -22,6 +22,16 @@ "id": "1", "metadata": {}, "outputs": [], + "source": [ + "# %pip install leafmap earthaccess mapclassify" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "2", + "metadata": {}, + "outputs": [], "source": [ "import leafmap\n", "import pandas as pd" @@ -29,7 +39,7 @@ }, { "cell_type": "markdown", - "id": "2", + "id": "3", "metadata": {}, "source": [ "To download and access the data, you will need to create an Earthdata login. You can register for an account at [urs.earthdata.nasa.gov](https://urs.earthdata.nasa.gov)." @@ -38,7 +48,7 @@ { "cell_type": "code", "execution_count": null, - "id": "3", + "id": "4", "metadata": {}, "outputs": [], "source": [ @@ -47,7 +57,7 @@ }, { "cell_type": "markdown", - "id": "4", + "id": "5", "metadata": {}, "source": [ "You can search data by short name, doi, concept id, etc. You can find the list of NASA Earth science data products from the [NASA-Earth-Data](https://github.com/opengeos/NASA-Earth-Data) repo. The example below shows how to show the metadata of the 9,000+ NASA Earth science data products." @@ -56,7 +66,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5", + "id": "6", "metadata": {}, "outputs": [], "source": [ @@ -67,7 +77,7 @@ }, { "cell_type": "markdown", - "id": "6", + "id": "7", "metadata": {}, "source": [ "To search data, specify the short name, bounding box, date range, etc. To return the footprints of the data, set `return_gdf=True`." @@ -76,7 +86,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7", + "id": "8", "metadata": {}, "outputs": [], "source": [ @@ -92,7 +102,7 @@ }, { "cell_type": "markdown", - "id": "8", + "id": "9", "metadata": {}, "source": [ "Visualize the footprints of the data on an interactive map." @@ -101,7 +111,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9", + "id": "10", "metadata": {}, "outputs": [], "source": [ @@ -110,7 +120,7 @@ }, { "cell_type": "markdown", - "id": "10", + "id": "11", "metadata": {}, "source": [ "Download the data to your local drive. Let's download the first 5 data products." @@ -119,7 +129,7 @@ { "cell_type": "code", "execution_count": null, - "id": "11", + "id": "12", "metadata": {}, "outputs": [], "source": [ @@ -128,7 +138,7 @@ }, { "cell_type": "markdown", - "id": "12", + "id": "13", "metadata": {}, "source": [ "Use the interactive GUI to search and download data." @@ -137,7 +147,7 @@ { "cell_type": "code", "execution_count": null, - "id": "13", + "id": "14", "metadata": {}, "outputs": [], "source": [ @@ -147,7 +157,7 @@ { "cell_type": "code", "execution_count": null, - "id": "14", + "id": "15", "metadata": {}, "outputs": [], "source": [ @@ -158,7 +168,7 @@ }, { "cell_type": "markdown", - "id": "15", + "id": "16", "metadata": {}, "source": [ "![](https://i.imgur.com/yGRCfsb.png)" @@ -166,7 +176,7 @@ }, { "cell_type": "markdown", - "id": "16", + "id": "17", "metadata": {}, "source": [ "To access the search results as a GeoDataFrame:" @@ -175,7 +185,7 @@ { "cell_type": "code", "execution_count": null, - "id": "17", + "id": "18", "metadata": {}, "outputs": [], "source": [ @@ -184,7 +194,7 @@ }, { "cell_type": "markdown", - "id": "18", + "id": "19", "metadata": {}, "source": [ "To download the data:" @@ -193,7 +203,7 @@ { "cell_type": "code", "execution_count": null, - "id": "19", + "id": "20", "metadata": {}, "outputs": [], "source": [