Skip to content

Commit

Permalink
Updates Using_PySTAC notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
dhavide committed Oct 31, 2024
1 parent 6ca0875 commit fff2072
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion 02_Software_Tools/01_Data_Manipulation_Tools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion 02_Software_Tools/02_Data_Visualization_Tools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
27 changes: 14 additions & 13 deletions 03_Using_NASA_EarthData/03_Using_PySTAC.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"---"
]
},
Expand Down Expand Up @@ -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"
]
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -584,7 +585,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit fff2072

Please sign in to comment.