Skip to content

Commit

Permalink
Updated ocean notebooks with images
Browse files Browse the repository at this point in the history
  • Loading branch information
cassienickles committed Jun 12, 2024
1 parent 0720d97 commit b24ba3b
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 6 deletions.
38 changes: 33 additions & 5 deletions notebooks/datasets/DirectCloud_Access_SWOT_Oceanography.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"1. **SWOT Level 2 KaRIn Low Rate Sea Surface Height Data Product** - shortname `SWOT_L2_LR_SSH_2.0`\n",
"2. **SWOT Level 2 Nadir Altimeter Interim Geophysical Data Record with Waveforms - SSHA Version 2.0** - shortname `SWOT_L2_NALT_IGDR_SSHA_2.0` \n",
" - This is a subcollection of the parent collection: `SWOT_L2_NALT_IGDR_2.0`\n",
"3. **SWOT Level 2 Radiometer Data Products** - overview of all\n",
"\n",
"\n",
"We will access the data from inside the AWS cloud (us-west-2 region, specifically) and load a time series made of multiple netCDF files into a single xarray dataset.\n",
"\n",
Expand Down Expand Up @@ -84,14 +86,21 @@
},
"source": [
"## 1. **SWOT Level 2 KaRIn Low Rate Sea Surface Height Data Product**\n",
"\n",
"Outlined below is a map of the different KaRIn Data Products we host at PO.DAAC and their sub collections, and why you may choose one over the other. For more information, see the [SWOT Data User Handbook](https://archive.podaac.earthdata.nasa.gov/podaac-ops-cumulus-docs/web-misc/swot_mission_docs/D-109532_SWOT_UserHandbook_20240502.pdf).\n",
"\n",
"![](https://github.com/podaac/tutorials/tree/master/images/SWOT_LR_explanations/SWOT_LR_KaRIn.png)\n",
"\n",
"Once you've picked the dataset you want to look at, you can enter its shortname or subcollection below in the search query.\n",
"\n",
"### Access Files without any Downloads to your running instance\n",
"\n",
"Here, we use the `earthaccess` Python library to search for and then load the data directly into xarray without downloading any files. This dataset is currently restricted to a select few people, and can only be accessed using the version of `earthaccess` reinstalled above. If zero granules are returned, make sure the correct version '0.5.4' is installed."
]
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 3,
"metadata": {
"tags": []
},
Expand All @@ -106,9 +115,8 @@
],
"source": [
"#retrieves granule from the day we want\n",
"karin_results = earthaccess.search_data(short_name = 'SWOT_L2_LR_SSH_2.0', \n",
" temporal = (\"2024-02-01 12:00:00\", \"2024-02-01 19:43:00\"), \n",
" granule_name = '*Expert*') # filter by files with \"Expert\" in file name. This collection has subcollections of 'Basic', 'Windwave', 'Unsmoothed' and 'Expert' granules."
"karin_results = earthaccess.search_data(short_name = 'SWOT_L2_LR_SSH_EXPERT_2.0', \n",
" temporal = (\"2024-02-01 12:00:00\", \"2024-02-01 19:43:00\"))"
]
},
{
Expand Down Expand Up @@ -7969,7 +7977,14 @@
"tags": []
},
"source": [
"## 2. **SWOT Level 2 Nadir Altimeter Interim Geophysical Data Record with Waveforms - SSHA Version 1.0**\n",
"## 2. **SWOT Level 2 Nadir Altimeter Interim Geophysical Data Record with Waveforms - SSHA Version 2.0**\n",
"\n",
"Outlined below is a map of the different Nadir Data Products we host at PO.DAAC and their sub collections, and why you may choose one over the other. For more information, see the [SWOT Data User Handbook](https://archive.podaac.earthdata.nasa.gov/podaac-ops-cumulus-docs/web-misc/swot_mission_docs/D-109532_SWOT_UserHandbook_20240502.pdf).\n",
"\n",
"![](https://github.com/podaac/tutorials/tree/master/images/SWOT_LR_explanations/SWOT_LR_Nadir.png)\n",
"\n",
"Once you've picked the dataset you want to look at, you can enter its shortname or subcollection below in the search query.\n",
"\n",
"### Access Files without any Downloads to your running instance\n",
"\n",
"Here, we use the `earthaccess` Python library to search for and then load the data directly into xarray without downloading any files."
Expand Down Expand Up @@ -10658,6 +10673,19 @@
"plt.colorbar().set_label('Depth or Elevation (m)')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 3. **SWOT Level 2 Radiometer Datasets**\n",
"\n",
"Outlined below is a map of the different Radiometer Data Products we host at PO.DAAC, and why you may choose one over the other. For more information, see the [SWOT Data User Handbook](https://archive.podaac.earthdata.nasa.gov/podaac-ops-cumulus-docs/web-misc/swot_mission_docs/D-109532_SWOT_UserHandbook_20240502.pdf).\n",
"\n",
"![](https://github.com/podaac/tutorials/tree/master/images/SWOT_LR_explanations/SWOT_LR_Radiometer.png)\n",
"\n",
"Once you've picked the dataset you want to look at, you can search and visualize this dataset similar to the above datasets."
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
30 changes: 29 additions & 1 deletion notebooks/datasets/Localmachine_SWOT_Oceanography.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"1. **SWOT Level 2 KaRIn Low Rate Sea Surface Height Data Product** - shortname `SWOT_L2_LR_SSH_2.0`\n",
"2. **SWOT Level 2 Nadir Altimeter Interim Geophysical Data Record with Waveforms - SSHA Version 2.0** - shortname `SWOT_L2_NALT_IGDR_SSHA_2.0` \n",
" - This is a subcollection of the parent collection: `SWOT_L2_NALT_IGDR_2.0`\n",
"3. **SWOT Level 2 Radiometer Data Products** - overview of all\n",
"\n",
"We will download the data and load a time series made of multiple netCDF files into a single xarray dataset.\n",
"\n",
Expand Down Expand Up @@ -78,6 +79,13 @@
"metadata": {},
"source": [
"## 1. **SWOT Level 2 KaRIn Low Rate Sea Surface Height Data Product**\n",
"\n",
"Outlined below is a map of the different KaRIn Data Products we host at PO.DAAC and their sub collections, and why you may choose one over the other. For more information, see the [SWOT Data User Handbook](https://archive.podaac.earthdata.nasa.gov/podaac-ops-cumulus-docs/web-misc/swot_mission_docs/D-109532_SWOT_UserHandbook_20240502.pdf).\n",
"\n",
"![](https://github.com/podaac/tutorials/tree/master/images/SWOT_LR_explanations/SWOT_LR_KaRIn.png)\n",
"\n",
"Once you've picked the dataset you want to look at, you can enter its shortname or subcollection below in the search query.\n",
"\n",
"### Search and Download Data!\n",
"\n",
"It's time to find our data! Below we are searching using `earthaccess` Python library."
Expand Down Expand Up @@ -5860,7 +5868,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## 2. **SWOT Level 2 Nadir Altimeter Interim Geophysical Data Record with Waveforms - SSHA Version 1.0**\n",
"## 2. **SWOT Level 2 Nadir Altimeter Interim Geophysical Data Record with Waveforms - SSHA Version 2.0**\n",
"\n",
"Outlined below is a map of the different Nadir Data Products we host at PO.DAAC and their sub collections, and why you may choose one over the other. For more information, see the [SWOT Data User Handbook](https://archive.podaac.earthdata.nasa.gov/podaac-ops-cumulus-docs/web-misc/swot_mission_docs/D-109532_SWOT_UserHandbook_20240502.pdf).\n",
"\n",
"![](https://github.com/podaac/tutorials/tree/master/images/SWOT_LR_explanations/SWOT_LR_Nadir.png)\n",
"\n",
"Once you've picked the dataset you want to look at, you can enter its shortname or subcollection below in the search query.\n",
"\n",
"### Search and Download Data!\n",
"\n",
"Below we are searching using `earthaccess` Python library."
Expand Down Expand Up @@ -7871,6 +7886,19 @@
"plt.colorbar().set_label('Depth or Elevation (m)')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 3. **SWOT Level 2 Radiometer Datasets**\n",
"\n",
"Outlined below is a map of the different Radiometer Data Products we host at PO.DAAC, and why you may choose one over the other. For more information, see the [SWOT Data User Handbook](https://archive.podaac.earthdata.nasa.gov/podaac-ops-cumulus-docs/web-misc/swot_mission_docs/D-109532_SWOT_UserHandbook_20240502.pdf).\n",
"\n",
"![](https://github.com/podaac/tutorials/tree/master/images/SWOT_LR_explanations/SWOT_LR_Radiometer.png)\n",
"\n",
"Once you've picked the dataset you want to look at, you can search and visualize this dataset in a workflow similar to the above datasets."
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit b24ba3b

Please sign in to comment.