-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from digitalearthafrica/geomedian-overhaul
Added information to the geomedian explanation.
- Loading branch information
Showing
7 changed files
with
391 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Geomedian widget" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Geomedian composites are introduced in [Session 3](./session_3/01_intro_composites.ipynb). Geomedians are a method of combining multiple timesteps of data into one image. \n", | ||
"\n", | ||
"Geomedians were defined as follows:\n", | ||
"\n", | ||
"> A geomedian composite finds the median values of the bands for each pixel when considered **together**. This means they represent the data **better** than median composites. \n", | ||
"\n", | ||
"This gives rise to a few common questions. \n", | ||
"\n", | ||
"* What does it mean to **consider the bands together**? \n", | ||
"* What might that look like? \n", | ||
"* How does it affect the colour of each pixel in my final composite image?\n", | ||
"\n", | ||
"To explore the answers to these questions, we can use an interactive module known as a **widget**. Instead of looking at one whole image, the widget focuses on a single pixel.\n", | ||
"\n", | ||
"The geomedian widget gives three timesteps of data. You can click on the sliders to change the data for each timestep, which affects the pixel colour. In turn, this will impact the computation of the median and geomedian. As you will see, they are not always the same!" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"<img align=\"middle\" src=\"./_static/other_information/widget2.PNG\" alt=\"Example of the widget.\" width=650>" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"*An example of what the geomedian widget looks like. To interact with the widget, download and run the geomedian widget notebook.*" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Follow the instructions below to download the widget notebook. It can help with understanding the following concepts:\n", | ||
"\n", | ||
"* In which cases are the median and geomedian very similar or the same?\n", | ||
"* In which cases are the median and geomedian very different?\n", | ||
"* Why are geomedians more representative of the whole dataset, compared to medians?" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Download geomedian widget notebook" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"[Download the geomedian widget notebook](./_static/other_information/Geomedian_interactive_extend1.ipynb)\n", | ||
"\n", | ||
"To view this notebook on the Sandbox, you will need to first download it to your computer, then upload it to the Sandbox. Follow these instructions:\n", | ||
"\n", | ||
"1. Download the notebook by clicking the link above.\n", | ||
"2. On the Sandbox, open the **Training** folder.\n", | ||
"3. Click the **Upload Files** button as shown below.\n", | ||
"\n", | ||
"<img align=\"middle\" src=\"./_static/session_2/05_solution_uploadbutton.png\" alt=\"Upload button.\" width=400>\n", | ||
"\n", | ||
"4. Select the downloaded notebook using the file browser. Click **OK**.\n", | ||
"5. The solution notebook will appear in the **Training** folder. Double-click to open it." | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.6.9" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 4 | ||
} |
248 changes: 248 additions & 0 deletions
248
docs/_static/other_information/Geomedian_interactive_extend1.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,4 +56,5 @@ Latest Updates | |
Frequently_asked_questions | ||
help_documentation | ||
Maps_help | ||
Geomedian_widget | ||
License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters