Skip to content
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

Geomedian 4.0.0 - new geomedian version WIP #149

Draft
wants to merge 110 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
8ef96a2
Installed Mermaid plugin and testing it but a plugin conflict is occu…
benji-glitsos-ga Mar 5, 2024
4b6b91f
Fixed a conflict between nbsphinx and the mermaid plugin
benji-glitsos-ga Mar 5, 2024
014ee8c
Drafting the Mermaid diagram based on Claire's diagram
benji-glitsos-ga Mar 5, 2024
9af5c36
Edited the mermaid diagram
benji-glitsos-ga Mar 5, 2024
18c09bd
Added caption
benji-glitsos-ga Mar 5, 2024
7332611
Added caption
benji-glitsos-ga Mar 5, 2024
3faff1f
Added mermaid_init_js configuration
benji-glitsos-ga Mar 5, 2024
f21f4e3
Removed Mermaid zoom setting
benji-glitsos-ga Mar 5, 2024
d835a93
Formatting the diagram
benji-glitsos-ga Mar 5, 2024
16fdab7
Attempting to fix the diagrams caption
benji-glitsos-ga Mar 5, 2024
c78d9fd
Made caption work and added Gantt sample diagram
benji-glitsos-ga Mar 6, 2024
d727b7a
Editing the Gantt chart
benji-glitsos-ga Mar 6, 2024
a0ae5b6
Added heading 'Test diagrams'
benji-glitsos-ga Mar 6, 2024
9dafcf2
adding new geomedian pages
JM-GA Mar 7, 2024
57ac0fa
adding new geomedian pages
JM-GA Mar 7, 2024
2e26f21
images for geomedian
JM-GA Mar 7, 2024
84ef80e
Added callout with link to changelog breaking change
benji-glitsos-ga Mar 7, 2024
8e7d515
Merge branch 'main' into geomedian
JM-GA Mar 8, 2024
e2137fd
move alert location and add dropdowns
JM-GA Mar 8, 2024
96ad341
change geoMAD from land and veg theme to baseline
JM-GA Mar 8, 2024
95b0775
change geoMAD from land and veg theme to baseline
JM-GA Mar 8, 2024
3b1d9f0
change geoMAD from land and veg theme to baseline
JM-GA Mar 8, 2024
8016389
minor spelling fixes
JM-GA Mar 8, 2024
f98924c
revise about and background content
JM-GA Mar 12, 2024
24ca2e7
Merge branch 'feature/mermaid-diagramming' into geomedian
benji-glitsos-ga Mar 12, 2024
2027771
Moved the mockup diagrams to the geomedian product page
benji-glitsos-ga Mar 12, 2024
81ba0b1
Edited the Lineage diagram caption text
benji-glitsos-ga Mar 12, 2024
889d8ac
Added Mermaid diagrams as pre-made SVG files
benji-glitsos-ga Mar 13, 2024
5107a22
Removed mermaid plugin
benji-glitsos-ga Mar 13, 2024
b5dd674
Updating the geomedian Mermaid SVGs
benji-glitsos-ga Mar 13, 2024
ec60913
Removed sphinx mermaid python requirement
benji-glitsos-ga Mar 13, 2024
5f39cc4
Converted the Mermaid diagram to a D2 diagram to compare
benji-glitsos-ga Mar 13, 2024
2fdebde
Minor formatting of Mermaid code
benji-glitsos-ga Mar 13, 2024
e6b0936
Minor code formatting of Mermaid and D2
benji-glitsos-ga Mar 13, 2024
f0ff41e
D2 diagram is complete but is rendered worse than Mermaid so will del…
benji-glitsos-ga Mar 13, 2024
7c45321
Deleted D2 diagram
benji-glitsos-ga Mar 13, 2024
0dda48a
Removed landsat timeline Mermaid diagram because Mermaid is too limit…
benji-glitsos-ga Mar 13, 2024
dcd94ac
Moved the geomedian images into their own folder
benji-glitsos-ga Mar 13, 2024
10a53f6
Fixing the geomedian image paths
benji-glitsos-ga Mar 13, 2024
8d4c134
Added attribution to Digital Earth Africa
benji-glitsos-ga Mar 13, 2024
56989aa
Added attribution to Digital Earth Africa
benji-glitsos-ga Mar 13, 2024
57f84e1
Fixed header image
benji-glitsos-ga Mar 13, 2024
5bf2b16
Moved callout box at end of About section
benji-glitsos-ga Mar 13, 2024
eef32d5
Formatted the 'More technical details'
benji-glitsos-ga Mar 13, 2024
3647245
Formatting the images using 'figures'
benji-glitsos-ga Mar 13, 2024
f52ccf5
Edited attributions
benji-glitsos-ga Mar 13, 2024
35d4719
Minor wording
benji-glitsos-ga Mar 13, 2024
5ddbf97
Fixing the history links
benji-glitsos-ga Mar 13, 2024
38c895d
Added new Landsat timeline diagram
benji-glitsos-ga Mar 14, 2024
7e658f7
Removed duplicate paragraph
benji-glitsos-ga Mar 14, 2024
4d3d42e
Added paragraph that was missing from Background section
benji-glitsos-ga Mar 14, 2024
32f9c4d
Added link that was missing
benji-glitsos-ga Mar 14, 2024
2187117
Fixed margins on the algorithm images
benji-glitsos-ga Mar 15, 2024
f795c23
Added written form of algorithm diagrams in dropdown boxes
benji-glitsos-ga Mar 15, 2024
0a26f8c
Added a missing paragraph
benji-glitsos-ga Mar 15, 2024
25baaf8
Added a Landsat timeline table
benji-glitsos-ga Mar 15, 2024
ec76b47
Wrote content based on the original Landsat diagram - based on the ge…
benji-glitsos-ga Mar 15, 2024
a67f445
Moved content up
benji-glitsos-ga Mar 15, 2024
e3aa4fc
Bold formatting
benji-glitsos-ga Mar 15, 2024
0e6b03d
Applying Latex math formatting
benji-glitsos-ga Mar 15, 2024
e14f2f0
More Latex math formatting
benji-glitsos-ga Mar 15, 2024
335c28c
More Latex math formatting
benji-glitsos-ga Mar 15, 2024
e319493
Formatting and minor wording
benji-glitsos-ga Mar 15, 2024
db35a3d
Minor punctuation
benji-glitsos-ga Mar 15, 2024
80335d9
Edited 'Accessing the web services' section
benji-glitsos-ga Mar 15, 2024
4bb4f3e
Added an image of the product to the Background section
benji-glitsos-ga Mar 15, 2024
853574c
upload giffs
JM-GA Mar 15, 2024
175ab74
Standardising GIF filenames
benji-glitsos-ga Mar 15, 2024
4bea278
Adding the GIFs to the page
benji-glitsos-ga Mar 15, 2024
1755c0d
Made GIFs grid be 3-column until I can get another image
benji-glitsos-ga Mar 15, 2024
12fd512
Updated Landsat timeline image to be more compact
benji-glitsos-ga Mar 16, 2024
86c11d3
Added some Digital Earth Africa references
benji-glitsos-ga Mar 16, 2024
0237fd8
(Generate preview site)
benji-glitsos-ga Mar 17, 2024
897e441
Merged 'main' into 'geomedian'
benji-glitsos-ga Mar 18, 2024
f150edd
Merge branch 'main' into geomedian
benji-glitsos-ga Mar 18, 2024
3b96d51
Removed 'New version' callout box
benji-glitsos-ga Mar 18, 2024
b65c12b
Added a 4th GIF to Details tab
benji-glitsos-ga Mar 18, 2024
aa9ae8a
Removed duplicate unused data file
benji-glitsos-ga Mar 18, 2024
b410be4
Updated eCat ID
benji-glitsos-ga Mar 18, 2024
ba7c045
Minor punctuation
benji-glitsos-ga Mar 18, 2024
a4f9044
Minor edits
benji-glitsos-ga Mar 18, 2024
6b3b772
Minor edits
benji-glitsos-ga Mar 18, 2024
d475f96
Merge branch 'main' into geomedian
benji-glitsos-ga Mar 18, 2024
a0bb791
[no preview]
benji-glitsos-ga Mar 18, 2024
ccb27ab
Minor edits [no preview]
benji-glitsos-ga Mar 18, 2024
117021d
Merge branch 'main' into geomedian
benji-glitsos-ga Mar 18, 2024
d3d7fcf
Minor edits
benji-glitsos-ga Mar 18, 2024
67b8ec0
Edited changelog to bullet points
benji-glitsos-ga Mar 18, 2024
42adbd7
Wording and Grammarly check
benji-glitsos-ga Mar 18, 2024
96b5e72
Edited the changelog
benji-glitsos-ga Mar 18, 2024
ff04944
Corrected nil to nir
benji-glitsos-ga Mar 20, 2024
b21b8c7
Norman edits
benji-glitsos-ga Mar 20, 2024
c8dfc58
Norman edits
benji-glitsos-ga Mar 20, 2024
bf6ef69
Norman edits
benji-glitsos-ga Mar 20, 2024
13cb6d2
Norman edits
benji-glitsos-ga Mar 20, 2024
585422c
Norman edits
benji-glitsos-ga Mar 20, 2024
85dbbc7
Reverted bracket punctuation
benji-glitsos-ga Mar 20, 2024
393aa1b
Update _details.md
JM-GA Apr 2, 2024
67f5950
Remove geomedian reference
JM-GA Apr 3, 2024
ff8572c
remove geomedian reference
JM-GA Apr 3, 2024
6634292
remove geomedian reference
JM-GA Apr 3, 2024
61137a2
remove geomedian reference
JM-GA Apr 3, 2024
24fc3aa
Fixed issue with content of Details tab scrolling horizontally
benji-glitsos-ga Apr 8, 2024
a1431d2
Merge branch 'geomedian' of github-ga:GeoscienceAustralia/dea-knowled…
benji-glitsos-ga Apr 8, 2024
d3eccd0
Merge branch 'main' into geomedian
benji-glitsos-ga Apr 8, 2024
4b26b34
Fixed previous merge
benji-glitsos-ga Apr 8, 2024
bd93843
Update _details.md
JM-GA Apr 12, 2024
3998aed
Updated the Landsat timeline with correct dates
benji-glitsos-ga Apr 16, 2024
30c9dee
Added a comment with a link to the diagrams source file [skip actions]
benji-glitsos-ga Apr 16, 2024
81852ed
Corrected '20 tiles west and 17 tiles south' to '18 tiles west and 15…
benji-glitsos-ga May 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.
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.
Binary file added docs/_files/geomedian/bands_euclidean.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_files/geomedian/cartesian_euclidean.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_files/geomedian/cosine_distance.JPG
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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions docs/_files/geomedian/lineage.mermaid
@@ -0,0 +1,39 @@
flowchart LR

subgraph DataSources["Data Source(s)"]
direction TB
L5Data["`Landsat 5 (TM)`"]
L7Data["`Landsat 7 (ETM+)`"]
L8Data["`Landsat 8 (OLI-TIRS)`"]
L9Data["`Landsat 9 (OLI-TIRS)`"]
end

subgraph InputProducts["Input Product(s)"]
direction TB
L5SurfaceReflectance["`Landsat 5 Surface Reflectance`"]
L7SurfaceReflectance["`Landsat 7 Surface Reflectance`"]
L8SurfaceReflectance["`Landsat 8 Surface Reflectance`"]
L9SurfaceReflectance["`Landsat 9 Surface Reflectance`"]
end

subgraph ProcessingMethods["Processing Method(s)"]
direction TB
Processing1["`GeoMAD algorithms with morphological cloud operations on fmask (opening and dilation)`"]
end

subgraph Outputs["Output(s)"]
direction TB
GeomadLandsat5["`DEA GeoMAD Landsat 5`"]
GeomadLandsat7["`DEA GeoMAD Landsat 7`"]
GeomadLandsat8And9["`DEA GeoMAD Landsat 8 and 9`"]
end

L5Data --> L5SurfaceReflectance --> ProcessingMethods
L7Data --> L7SurfaceReflectance --> ProcessingMethods
L8Data --> L8SurfaceReflectance --> ProcessingMethods
L9Data --> L9SurfaceReflectance --> ProcessingMethods

ProcessingMethods --> GeomadLandsat5
ProcessingMethods --> GeomadLandsat7
ProcessingMethods --> GeomadLandsat8And9

13 changes: 13 additions & 0 deletions docs/_files/geomedian/lineage.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_files/landsat/landsat-timeline-2024.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/_static/styles/global/_utilities.scss
@@ -0,0 +1,4 @@
.overlow-x-hidden {
overflow-x: hidden;
}

1 change: 1 addition & 0 deletions docs/conf.py
Expand Up @@ -84,6 +84,7 @@
myst_heading_anchors = 6
myst_all_links_external = True

nbsphinx_requirejs_path = ""
nbsphinx_execute = "never"

external_toc_path = "table_of_contents.yaml"
Expand Down
@@ -0,0 +1,13 @@
% ## Access constraints

% ## Use constraints

:::{dropdown} Accessing the OGC web services

When accessing via the [Digital Earth Australia OGC Web Services](https://ows.dea.ga.gov.au/), the layer names for the three Landsat 8, Landsat 7 and Landsat 5 products respectively are:
* `ga_ls8c_nbart_gm_cyear_3`
* `ga_ls7e_nbart_gm_cyear_3`
* `ga_ls5t_nbart_gm_cyear_3`

:::

@@ -0,0 +1,10 @@
## Acknowledgments

The high-dimensional statistics algorithms incorporated in this product is the work of Dr Dale Roberts, Australian National University.

## License and copyright

© Commonwealth of Australia (Geoscience Australia).

Released under [Creative Commons Attribution 4.0 International Licence](https://creativecommons.org/licenses/by/4.0/).

@@ -0,0 +1,87 @@
# Overview

title: DEA Geometric Median and Median Absolute Deviation (Landsat)
long_title: Geoscience Australia Landsat Geometric Median and Median Absolute Deviation Collection 3
header_image: /_files/cmi/Geomedian_Australia_2014.jpg
version: 3.1.0
is_latest_version: false
latest_version_link: null
is_provisional: false
product_type: Derivative
spatial_data_type: Raster
time_span:
start: 1986
end: 2022
update_frequency: Annually
next_update: null
product_ids:
- ga_ls5t_nbart_gm_cyear_3
- ga_ls7e_nbart_gm_cyear_3
- ga_ls8c_nbart_gm_cyear_3

parent_products:
name: Landsat 5, 7 and 8 NBART and Observational Attributes
link: /data/category/dea-surface-reflectance/
collection:
name: Geoscience Australia Landsat Collection 3
link: null
doi: 10.26186/146261
ecat: "146261"
nci: null

tags:
- geoscience_australia_landsat_collection_3
- satellite_images
- geomedian
- geo_mad
- geometric_median
- median_absolute_deviation

# Access

maps:
- link: https://maps.dea.ga.gov.au/#share=s-fzHT65z4jscx9U1Nfb1FoKlQ7uU
name: See it on a map

explorers:
- link: https://explorer.dea.ga.gov.au/products#baseline-satellite-data-group
name: Data explorer

data:
- link: https://data.dea.ga.gov.au/?prefix=derivative
name: Access the data on AWS
- link: https://dapds00.nci.org.au/thredds/catalog/jw04/ga_ls5t_nbart_gm_cyear_3/catalog.html
name: Annual Landsat 5 observations on NCI
- link: https://dapds00.nci.org.au/thredds/catalog/jw04/ga_ls7e_nbart_gm_cyear_3/catalog.html
name: Annual Landsat 7 observations on NCI
- link: https://dapds00.nci.org.au/thredds/catalog/jw04/ga_ls8c_nbart_gm_cyear_3/catalog.html
name: Annual Landsat 8 observations on NCI

code_examples: null

web_services:
- link: https://ows.dea.ga.gov.au/
name: Web Services

custom: null

# History

old_versions:
- version: 2.1.0
title: DEA Surface Reflectance Median Absolute Deviation (Landsat)
slug: dea-surface-reflectance-median-absolute-deviation-landsat-2.1.0
- version: 2.0.0
title: DEA Surface Reflectance Geomedian (Landsat)
slug: dea-surface-reflectance-geomedian-landsat-2.0.0

# Settings

enable_overview: true
enable_access: true
enable_details: true
enable_quality: true
enable_history: true
enable_faqs: false
enable_credits: true

@@ -0,0 +1,105 @@
## Background

Large-scale image composites are increasingly important for a variety of applications such as land cover mapping, change detection, and the generation of high-quality data to parameterise and validate bio-physical and geophysical models. A number of compositing methodologies are being used in remote sensing in general; however challenges such as maintaining the spectral relationship between bands, mitigating against boundary artifacts due to mosaicking scenes from different epochs, and ensuring spatial regularity across the mosaic image still exist.

The creation of good composite images is a particularly important technology since the opening of the Landsat archive by the United States Geological Survey. The greater availability of satellite imagery has resulted in demand to provide large regional mosaics that are representative of conditions over specific time periods while also being free of clouds and other unwanted image noise. One approach is the stitching together of a number of clear images. Another is the creation of mosaics where pixels from different epochs are combined based on some algorithm from a time series of observations. This 'pixel composite' approach to mosaic generation provides a more consistent result compared with stitching clear images due to the improved color balance created by the combining of one-by-one pixel representative images. Another strength of pixel-based composites is their ability to be automated for application to very large data collections and time series such as national satellite data archives.

When deriving information from satellite images it may be beneficial to see how an area usually looks over a given year rather than how it was viewed at a single point in time. Other useful interpretations include how dynamic or variable the Australian landscape is over any given year, especially to help with understanding how the landscape changes, or to discriminate parts of the landscape that stay the same throughout the year (like bare rock), from those areas that go through big changes in cover (such as cropping areas).

By understanding general conditions (which can be thought of as "average" for the year) and the different patterns of variation, we can characterise various types of land cover and land use, and detect changes of significance in the landscape.

The Geometric Median provides information on the general conditions of the landscape for a given year.

The Median Absolute Deviation provides information on how the landscape is changing in the same year.

The DEA GeoMAD product combines the Geometric Median and the Median Absolute Deviation in a single, annually produced package.

## What this product offers

This product provides statistical tools to exploit the time series of Earth observation data available in Digital Earth Australia, providing annual images of general conditions and how much an area changes for a given year.

The geomedian part of the product provides an "average" cloud-free image over the given year. The geomedian image is calculated with a multi-dimensional median, using all the spectral measurements from the satellite imagery at the same time in order to maintain the relationships among the measurements.

The median absolute deviation part of the product uses three measures of variance, each of which provides a "second order" high dimensional statistical composite for the given year. The three variance measures show how much an area varies from the "average" in terms of "distance" based on factors such as brightness and spectra:
* Euclidean distance (EMAD)
* Cosine (spectral) distance (SMAD)
* Bray Curtis dissimilarity (BCMAD)

Together, they provide information on variance in the landscape over the given year and are useful for change detection applications.

% ## Data description

## Applications

The GeoMAD product is useful for:
* Land cover mapping
* Change detection and classification (such as for burn area mapping, crop mapping, urban area mapping)
* General variance and change, so it can be used in machine learning for change detection
* Environmental monitoring

## Technical information

### Geometric Median

The surface reflectance geometric median (geomedian) provides an approach that leverages high-dimensional statistical theory to deliver a spectrally consistent, artefact-free pixel composite product.

The geomedian is a pixel composite mosaic of a time series of earth observations. Essentially the value of a pixel in a geomedian image is the statistical median of all observations for that pixel from a period of time. For example the 2016 Landsat 8 geomedian image over an area will be the median of Landsat 8 pixels observed for that area in 2016.

An annual geometric median is a high-dimensional median calculated from the reflectance values drawn from a calendar year. The years available are each full calendar year since 1988. The annual geomedians of surface reflectance measurements are calculated per calendar year, on individual sensors (ie. only Landsat 5 TM or Landsat 7 ETM+ or Landsat 8 OLI).

Multispectral satellite imagery, such as is available from Landsat and Sentinel-2, consists of multiple measurements per pixel: one for each spectral band. In order to create a meaningful median, a median pixel must take all concurrent spectral measurements into account simultaneously as a multi-dimensional set, rather than each measurement independently as occurs with a simple median. The geomedian is a high-dimensional statistic, which calculates a multi-dimensional median from all the spectral measurements from the satellite imagery at the same time, and maintains the relationships among the measurements. This provides a median of the physical conditions measured by the earth observations used to create it, and provides a good representation of a typical pixel observation devoid of outliers, and exhibits reduced spatial noise.

The annual geomedian provides an annual surface reflectance composite for any area of interest within the area covered by the DEA data cube, up to the entire spatial extent available (continental). It provides a cloud-free overview of the middle surface reflectance value for each year and as it is equivariant (i.e. a linear algorithm applied to a geomedian image is equal to a geomedian applied to a set of images on which the same linear algorithm was applied) can be used in further analyses such as Tasseled Cap, Principal Components Analysis and Normalised Difference Indices. It is useful in analyses requiring baseline conditions such as change detection.

Surface reflectance geometric median products are derived from the DEA Surface Reflectance (SR) products, and provide a representation of the middle of surface reflectance over the time period, which can be considered "average" conditions. This is a synthetic representation of a time series rather than an actual observed pixel.

The geomedian (Roberts et al 2017) is used in preference to the mean, as the mean can be adversely effected by extrema whereas the median is less sensitive to outliers. The geomedian is used in preference to the basic median, as it preserves the physical relationship between spectral measurements which the basic median does not. The geometric median is used in preference to the medoid (Flood 2013) where a low noise composite is required. Where the provenance of each pixel in a composite is required the medoid is the preferred method and the geomedian should not be used.

The input data used to calculate the geomedian are filtered to remove poor quality observations including cloud, cloud shadow, band saturation (of any band) using the Pixel Quality Assessment (PQA) product. To account for satellite availability and status the statistics are calculated using the following satellites/sensors for the following periods of time:
* 1988-1999 : Landsat 5 only
* 2000-2003 : Landsat 7 only
* 2004-2007 : Landsat 5 and Landsat 7 (as separate geomedian products)
* 2008: Landsat 7 only
* 2009-2011: Landsat 5 and Landsat 7 (as separate geomedian products)
* 2012 : Landsat 7 only
* 2013 onward : Landsat 7 and Landsat 8 (as separate geomedian products)

The primary uses of geomedian pixel composites are for baselines for change detection, and for broad regional image composites (such as national and continental mosaics).

### Median Absolute Deviation

The 'first order' statistics of a set of data include the mean and the median. Instead of the mean, for multi-dimensional datasets such as satellite imagery, the median provides a method to find general conditions for a time period while also maintaining the physical relationships between spectral measurements.

A 'second order' statistic associated with a mean of a set of data is the standard deviation, providing a measure of data variance. The equivalent second order statistic associated with the median is the Median Absolute Deviation (MAD), which provides the associated variance measures for the median.

The MAD is the median of absolute differences of the individual values in a set of data from their overall median. To calculate the MAD for a multi-dimensional dataset, such as the set of satellite images captured in a year, measures of "distance" from each multi-dimensional measurement (i.e. the set of spectral measurements for a pixel through time, being blue, green, red, near-infra-red, and short-wave-infra-red) to the mean are needed. However multi-dimensional distances can be calculated in different ways, providing different insights into the behaviour of pixels through time. The DEA GeoMAD product includes three MADs produced from different measures of distance as follows:
* Euclidean distance (EMAD) is more sensitive to changes in target brightness.
* Cosine (spectral) distance (SMAD) is more sensitive to change in target spectral response.
* Bray Curtis dissimilarity (BCMAD) is more sensitive to the distribution of the observation values through time.

Each MAD provides information on different land cover change features and is useful in classification.

The mathematical derivation of the three MADs can be found in Roberts et al (2018).

## Lineage

The GeoMAD is derived from Landsat surface reflectance data. The data are masked for cloud, shadows and other image artefacts using the associated pixel quality product to help provide as clear a set of observations as possible from which to calculate the medians.

The three MAD layers of the GeoMAD are calculated by computing the multidimensional distance between each observation in a time series of multispectral (or higher dimensionality such as hyperspectral) satellite imagery with the multidimensional median of the time series. The median used for this calculation is the geometric median corresponding to the time series.

The GeoMAD is calculated over annual time periods on Earth observations from a single sensor by default (such as the annual time series of Landsat 8 observations); however, it is applicable to multi-sensor time series of any length that computing resources can support.

For the purposes of the default Digital Earth Australia product, GeoMADs are computed per calendar year, per sensor (Landsat 5, Landsat 7 and Landsat 8) from terrain-illumination-corrected surface reflectance data (Analysis Ready Data), and compared to the annual geometric median of that data.

Note: the constituent pixels in the GeoMAD pixel composite mosaics are synthetic, meaning that the pixels have not been physically observed by the satellite. Rather they are the computed high-dimensional medians of a time series of pixels.

% ## Processing steps

% ## Software

## References

Roberts, D., Mueller, N., & Mcintyre, A. (2017). High-dimensional pixel composites from earth observation time series. *IEEE Transactions on Geoscience and Remote Sensing*, *55*(11), 6254–6264. [https://doi.org/10.1109/TGRS.2017.2723896](https://doi.org/10.1109/TGRS.2017.2723896)

Roberts, D., Dunn, B., & Mueller, N. (2018). Open data cube products using high-dimensional statistics of time series. *IGARSS 2018 - 2018 IEEE International Geoscience and Remote Sensing Symposium*, 8647–8650. [https://doi.org/10.1109/IGARSS.2018.8518312](https://doi.org/10.1109/IGARSS.2018.8518312)

@@ -0,0 +1,5 @@
% ## Frequently asked questions

% :::{dropdown} What is the question?
% :::

@@ -0,0 +1,2 @@
% ## Changelog

@@ -0,0 +1,3 @@
## About

The DEA Geometric Median and Median Absolute Deviation products use statistical analyses to provide information on variance in the landscape over the given year. They provide insight into the "average" conditions observed over Australia in a given year, as well as the amount of variability experienced around that average. These products are useful for monitoring change detection, such as from cropping, urban expansion or burnt area mapping.
@@ -0,0 +1,10 @@
% ## Cite this product

% > Your citation

## Publications

Roberts, D., Mueller, N., & Mcintyre, A. (2017). High-dimensional pixel composites from earth observation time series. *IEEE Transactions on Geoscience and Remote Sensing*, *55*(11), 6254–6264. [https://doi.org/10.1109/TGRS.2017.2723896](https://doi.org/10.1109/TGRS.2017.2723896)

Roberts, D., Dunn, B., & Mueller, N. (2018). Open data cube products using high-dimensional statistics of time series. *IGARSS 2018 - 2018 IEEE International Geoscience and Remote Sensing Symposium*, 8647–8650. [https://doi.org/10.1109/IGARSS.2018.8518312](https://doi.org/10.1109/IGARSS.2018.8518312)

@@ -0,0 +1,8 @@
## Accuracy

The accuracy of the GeoMAD layers is dependent on the accuracy of the underpinning earth observation data. As the values of the geomedian and MAD are synthetic (not observed directly by satellite), they cannot be verified by field work.

To calculate a geomedian or MAD representative of clear observations, the majority of the input data must be clear of clouds, shadows or other issues that can adversely affect an observation. Where a location experiences more than 50% of time under the impact of clouds and shadows (such as areas of Tasmania) the GeoMAD can produce an output that is essentially cloud / shadow noise. As such it is necessary to use a large enough collection of data to enable clear medians to be calculated. To mitigate the impact of poor quality observations and other artefacts, the input data is first screened using the Pixel Quality product, however some poor pixels are likely to still be included in the data after screening. Increasing the period from which observations are included in the input dataset also helps to mitigate the issue. Where no-data pixels occur in locations that clear observations should occur, the cause is a lack of clear pixels to populate the GeoMAD.

% ## Quality assurance

@@ -0,0 +1,2 @@
.. datatemplate:yaml:: _data.yaml
:template: product-v1.rst
Expand Up @@ -2,12 +2,8 @@

% ## Use constraints

:::{dropdown} Accessing the OGC web services

When accessing via the [Digital Earth Australia OGC Web Services](https://ows.dea.ga.gov.au/), the layer names for the three Landsat 8, Landsat 7 and Landsat 5 products respectively are:
* `ga_ls8c_nbart_gm_cyear_3`
* `ga_ls7e_nbart_gm_cyear_3`
* `ga_ls5t_nbart_gm_cyear_3`
:::{dropdown} Accessing the web services

When accessing the product via the OGC Web Services, the layer names for the data are `ga_ls5t_gm_cyear_3`, `ga_ls7e_gm_cyear_3`, and `ga_ls8cls9c_gm_cyear_3`. Learn about these layers on the [Details tab](./?tab=details).
:::