From fff207283fc7ec52637d2ed2e3ea89834ae2f7f6 Mon Sep 17 00:00:00 2001 From: Dhavide Aruliah Date: Thu, 31 Oct 2024 19:23:04 +0000 Subject: [PATCH] Updates Using_PySTAC notebook --- .../01_Data_Manipulation_Tools.ipynb | 2 +- .../02_Data_Visualization_Tools.ipynb | 2 +- 03_Using_NASA_EarthData/03_Using_PySTAC.ipynb | 27 ++++++++++--------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/02_Software_Tools/01_Data_Manipulation_Tools.ipynb b/02_Software_Tools/01_Data_Manipulation_Tools.ipynb index 0531ff8..e70ced4 100644 --- a/02_Software_Tools/01_Data_Manipulation_Tools.ipynb +++ b/02_Software_Tools/01_Data_Manipulation_Tools.ipynb @@ -1120,7 +1120,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.3" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/02_Software_Tools/02_Data_Visualization_Tools.ipynb b/02_Software_Tools/02_Data_Visualization_Tools.ipynb index 318ebd9..caa2f7d 100644 --- a/02_Software_Tools/02_Data_Visualization_Tools.ipynb +++ b/02_Software_Tools/02_Data_Visualization_Tools.ipynb @@ -1061,7 +1061,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.3" + "version": "3.12.4" } }, "nbformat": 4, diff --git a/03_Using_NASA_EarthData/03_Using_PySTAC.ipynb b/03_Using_NASA_EarthData/03_Using_PySTAC.ipynb index db000bc..3e0f6e7 100644 --- a/03_Using_NASA_EarthData/03_Using_PySTAC.ipynb +++ b/03_Using_NASA_EarthData/03_Using_PySTAC.ipynb @@ -9,28 +9,25 @@ ] }, { + "attachments": {}, "cell_type": "markdown", - "id": "bea8016e-e6c2-4cc8-a53f-191c00dc33d3", + "id": "0097891e-d381-4ce9-9258-feb7bff46992", "metadata": { "jupyter": { "source_hidden": true } }, "source": [ - "There is an abundance of data searchable through NASA's [Earthdata Search](https://search.earthdata.nasa.gov). The preceding link connects to a GUI for searching [SpatioTemporal Asset Catalogs (STAC)](https://stacspec.org/) by specifying an *Area of Interest (AOI)* and a *time-window* or *range of dates*." + "There is an abundance of data searchable through NASA's [Earthdata Search](https://search.earthdata.nasa.gov). The preceding link connects to a GUI for searching [SpatioTemporal Asset Catalogs (STAC)](https://stacspec.org/) by specifying an *Area of Interest (AOI)* and a *time-window* or *range of dates*.\n", + "\n", + "For the sake of reproducibility, we want to be able to search asset catalogs programmatically. This is where the [PySTAC](https://pystac.readthedocs.io/en/stable/) library comes in." ] }, { "cell_type": "markdown", - "id": "b6d78912-a7d8-4e7c-8ead-ef1e593f8706", - "metadata": { - "jupyter": { - "source_hidden": true - } - }, + "id": "4a332d11-9b60-49af-94f2-671f725414ed", + "metadata": {}, "source": [ - "For the sake of reproducibility, we want to be able to search asset catalogs programmatically. This is where the [PySTAC](https://pystac.readthedocs.io/en/stable/) library comes in.\n", - "\n", "---" ] }, @@ -163,7 +160,7 @@ "outputs": [], "source": [ "basemap = gv.tile_sources.OSM\n", - "rect = gv.Rectangles([aoi]).opts(opts.Rectangles(alpha=0.25, color='cyan'))\n", + "rect = gv.Rectangles([aoi]).opts(opts.Rectangles(alpha=0.15, color='cyan'))\n", "\n", "rect*basemap" ] @@ -408,7 +405,11 @@ "cell_type": "code", "execution_count": null, "id": "3b863c36", - "metadata": {}, + "metadata": { + "jupyter": { + "source_hidden": true + } + }, "outputs": [], "source": [ "len(granules.index.unique()) / len(granules) # Notice the timestamps are not all unique, i.e., some are repeated" @@ -584,7 +585,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.3" + "version": "3.12.4" } }, "nbformat": 4,