Skip to content

Notebooks-Update-574398bf #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"metadata": {},
"source": [
"**References:**\n",
"- [Earthdaily package](https://github.com/earthdaily/earthdaily-python-client)\n",
"- [Earthdata Store documentation](https://earthdaily.github.io/EDA-Documentation/)\n",
"- [EarthDaily package](https://github.com/earthdaily/earthdaily-python-client)\n",
"- [Earth Data Store documentation](https://earthdaily.github.io/EDA-Documentation/)\n",
"- [Xarray as multi-dimensional object](https://docs.xarray.dev/en/stable/)\n",
"- [Spyndex spectral indices library](https://github.com/awesome-spectral-indices/spyndex)"
]
Expand Down Expand Up @@ -128,7 +128,7 @@
"id": "f159c8da-763f-4c93-b80d-4533343a8d64",
"metadata": {},
"source": [
"## 1️⃣ Environment Setup\n",
"## Environment Setup\n",
"\n",
"We start by setting up the environment and loading the necessary libraries, including [Dask](https://www.dask.org/) for parallel computing and geospatial libraries like [GeoPandas](https://geopandas.org/en/stable/docs/reference.html) and [Rasterio](https://rasterio.readthedocs.io/en/stable/).\n",
"\n",
Expand Down Expand Up @@ -221,6 +221,14 @@
"load_dotenv(\"template.env\")"
]
},
{
"cell_type": "markdown",
"id": "db8b9a56-7afc-43f9-9104-554e64ed81f7",
"metadata": {},
"source": [
"> _**Note:**_ To gain access to the Earth Data Store data used in this example, please [create an EarthDaily account](https://console.earthdaily.com/mosaics/signup)"
]
},
{
"cell_type": "markdown",
"id": "3ad7a8fd-3b16-45bb-9c0a-d92c3bf40e55",
Expand Down Expand Up @@ -375,7 +383,7 @@
"id": "80e47780-8864-4880-9c50-b15388d2b1c8",
"metadata": {},
"source": [
"## 2️⃣ Loading Satellite Data and Calculating Burn Indices\n",
"## Loading Satellite Data and Calculating Burn Indices\n",
"\n",
"Below we will iterate over each Item ID corresponding to a **PRE** and **POST** fire Mosaic. For each item we:\n",
"\n",
Expand Down Expand Up @@ -539,7 +547,7 @@
"id": "b6675a04-46ec-466e-b951-c57c05b2cb91",
"metadata": {},
"source": [
"## 3️⃣ Calculate the Burned Area\n",
"## Calculate the Burned Area\n",
"\n",
"Analyzing the difference in BAI and NBR values enables:\n",
"\n",
Expand Down Expand Up @@ -1809,9 +1817,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "temp-test",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "temp-test"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -1823,7 +1831,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.8"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"metadata": {},
"source": [
"**References:**\n",
"- [Earthdaily package](https://github.com/earthdaily/earthdaily-python-client)\n",
"- [Earthdata Store documentation](https://earthdaily.github.io/EDA-Documentation/)\n",
"- [EarthDaily package](https://github.com/earthdaily/earthdaily-python-client)\n",
"- [Earth Data Store documentation](https://earthdaily.github.io/EDA-Documentation/)\n",
"- [Xarray as multi-dimensional object](https://docs.xarray.dev/en/stable/)"
]
},
Expand Down Expand Up @@ -120,7 +120,7 @@
"id": "5fc53f95-e239-43ae-8b06-4d5b4274ba1c",
"metadata": {},
"source": [
"## 1️⃣ Environment Setup\n",
"## Environment Setup\n",
"\n",
"We start by setting up the environment and loading the necessary libraries, including geospatial libraries like [GeoPandas](https://geopandas.org/en/stable/docs/reference.html) and [Rasterio](https://rasterio.readthedocs.io/en/stable/).\n",
"\n",
Expand Down Expand Up @@ -225,6 +225,14 @@
"load_dotenv(\"template.env\") # take environment variables from .env."
]
},
{
"cell_type": "markdown",
"id": "8f2d4a37-e91a-46e2-b4fa-4b49e64c6326",
"metadata": {},
"source": [
"> _**Note:**_ To gain access to the Earth Data Store data used in this example, please [create an EarthDaily account](https://console.earthdaily.com/mosaics/signup)"
]
},
{
"cell_type": "code",
"execution_count": 4,
Expand Down Expand Up @@ -8901,7 +8909,7 @@
"id": "8529d9e7-bb49-4a43-8891-1fe3953838ab",
"metadata": {},
"source": [
"## 2️⃣ Loading Satellite Data\n",
"## Loading Satellite Data\n",
"Below we will:\n",
"* [Search Sentinel-2 Collection](https://pystac-client.readthedocs.io/en/stable/api.html#pystac_client.Client.search) for imagery over our AOI and TOI, including a max_cloud percentage\n",
"* Use [`stac_load`](https://odc-stac.readthedocs.io/en/latest/_api/odc.stac.load.html) to retrieve an [`xarray Dataset`](https://docs.xarray.dev/en/stable/), which includes: \n",
Expand Down Expand Up @@ -11660,7 +11668,7 @@
"id": "d9f50284-d763-489c-aff3-de1725140b4e",
"metadata": {},
"source": [
"## 3️⃣ Calculate NDVI"
"## Calculate NDVI"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"metadata": {},
"source": [
"**References:**\n",
"- [Earthdaily package](https://github.com/earthdaily/earthdaily-python-client)\n",
"- [Earthdata Store documentation](https://earthdaily.github.io/EDA-Documentation/)\n",
"- [EarthDaily package](https://github.com/earthdaily/earthdaily-python-client)\n",
"- [Earth Data Store documentation](https://earthdaily.github.io/EDA-Documentation/)\n",
"- [Xarray as multi-dimensional object](https://docs.xarray.dev/en/stable/)\n",
"- [Spyndex spectral indices library](https://github.com/awesome-spectral-indices/spyndex)"
]
Expand Down Expand Up @@ -129,7 +129,7 @@
"id": "f159c8da-763f-4c93-b80d-4533343a8d64",
"metadata": {},
"source": [
"## 1️⃣ Environment Setup\n",
"## Environment Setup\n",
"\n",
"We start by setting up the environment and loading the necessary libraries, including [Dask](https://www.dask.org/) for parallel computing and geospatial libraries like [GeoPandas](https://geopandas.org/en/stable/docs/reference.html) and [Rasterio](https://rasterio.readthedocs.io/en/stable/).\n",
"\n",
Expand Down Expand Up @@ -224,12 +224,20 @@
"load_dotenv(\"template.env\")"
]
},
{
"cell_type": "markdown",
"id": "322624a8-583a-44af-b945-17018897661a",
"metadata": {},
"source": [
"> _**Note:**_ To gain access to the Earth Data Store data used in this example, please [create an EarthDaily account](https://console.earthdaily.com/mosaics/signup)"
]
},
{
"cell_type": "markdown",
"id": "3608446a-0194-44c5-86d8-53b1614dd28b",
"metadata": {},
"source": [
"Establishing a connection to the EarthDataStore:"
"Establishing a connection to the Earth Data Store:"
]
},
{
Expand Down Expand Up @@ -664,7 +672,7 @@
"id": "80e47780-8864-4880-9c50-b15388d2b1c8",
"metadata": {},
"source": [
"## 2️⃣ Loading Satellite Data and Calculating Flooded Areas\n",
"## Loading Satellite Data and Calculating Flooded Areas\n",
"Below we will iterate over each Item ID corresponding to a **PRE** and **POST** flood Mosaic. For each item we:\n",
"\n",
"* Retrieve the corresponding EarthMosaic items, by passing a Collection and Item ID to an EarthDataStore search\n",
Expand Down Expand Up @@ -832,7 +840,7 @@
"id": "b6675a04-46ec-466e-b951-c57c05b2cb91",
"metadata": {},
"source": [
"## 3️⃣ Calculate the Flooded Area\n",
"## Calculate the Flooded Area\n",
"\n",
"Analyzing the difference in NDVI-MNDWI values enables:\n",
"\n",
Expand Down Expand Up @@ -2023,9 +2031,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "temp-test",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "temp-test"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -2037,7 +2045,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.8"
"version": "3.12.7"
}
},
"nbformat": 4,
Expand Down
Loading