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

Cal/Val report templates #164

Closed
wants to merge 80 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
9839bed
Starting Cal/Val template using Claires recommendation
benji-glitsos-ga Feb 7, 2024
1deb996
Editing the template to use csv-table for the first table
benji-glitsos-ga Feb 7, 2024
38f4c5a
Creating the calval template and styling it
benji-glitsos-ga Feb 8, 2024
7a15609
Moving 'validation' into its own section of the site
benji-glitsos-ga Feb 8, 2024
6644d7b
Added charts to the validation template
benji-glitsos-ga Feb 8, 2024
85a1e11
Editing the template
benji-glitsos-ga Feb 8, 2024
d133629
Restructuring to daily and quarterly report folders
benji-glitsos-ga Feb 8, 2024
4b1e273
Removed the daily and quarterly report index pages because their tabl…
benji-glitsos-ga Feb 8, 2024
e426483
Changed the reports URLs to singular naming convention
benji-glitsos-ga Feb 8, 2024
74229a4
Added behaviour to make images clickable to view them at full size
benji-glitsos-ga Feb 8, 2024
415a947
Reorganising the validation reports folder structureg
benji-glitsos-ga Feb 8, 2024
ba9cc31
Reorganising the validation reports further
benji-glitsos-ga Feb 8, 2024
2e5bdb8
Editing the daily report template
benji-glitsos-ga Feb 8, 2024
d955a02
Several edits to calval reports
benji-glitsos-ga Feb 8, 2024
046f691
Fixing sidebar duplicate issue
benji-glitsos-ga Feb 8, 2024
675b403
Adding spacing to the page
benji-glitsos-ga Feb 8, 2024
17ff49e
Fixing SCSS
benji-glitsos-ga Feb 8, 2024
29fd3f2
Minor text fixes
benji-glitsos-ga Feb 8, 2024
729b2db
Added download CSV links
benji-glitsos-ga Feb 8, 2024
847f2cb
Added ability to disable validation reports with LOCAL_ENABLE_VALIDAT…
benji-glitsos-ga Feb 8, 2024
5ec9ed0
Removed code formatting on bands in table
benji-glitsos-ga Feb 8, 2024
c9b1e55
Multiple improvements to calval reports
benji-glitsos-ga Feb 8, 2024
a5d3263
Added some more glossary hyperlinks
benji-glitsos-ga Feb 8, 2024
5f82ce7
Added a template version to the top of the file
benji-glitsos-ga Feb 8, 2024
b0bf059
Added natural language date
benji-glitsos-ga Feb 8, 2024
bcb8116
[skip ci] Renamed page to 'Validation reports'
benji-glitsos-ga Feb 12, 2024
d459a78
Added tags to the template
benji-glitsos-ga Feb 13, 2024
8d95ec1
Added yearly report to sidebar
benji-glitsos-ga Feb 13, 2024
31cb8df
Created a function to exclude daily reports older than 2 years
benji-glitsos-ga Feb 13, 2024
8895dd9
Changed the tags format
benji-glitsos-ga Feb 13, 2024
f07fa5f
Converting the validation index page into a template and using logic …
benji-glitsos-ga Feb 13, 2024
e71eff5
Linking to the relevant tag pages
benji-glitsos-ga Feb 13, 2024
7be2d92
Fixing the tableofcontents directive
benji-glitsos-ga Feb 13, 2024
5da9681
Reordered the sidebar to be from Daily to Yearly
benji-glitsos-ga Feb 13, 2024
66dc4a1
Improving the template
benji-glitsos-ga Feb 13, 2024
a919e08
Baguettebox lightbox not working
benji-glitsos-ga Feb 14, 2024
a5e117c
sphinxcontrib.images is not working due to same require.js issue
benji-glitsos-ga Feb 14, 2024
c189132
Removing the lightbox functionality
benji-glitsos-ga Feb 14, 2024
c2aca58
Wording daily validation template
benji-glitsos-ga Feb 14, 2024
c8a455f
Editing the template
benji-glitsos-ga Feb 14, 2024
6c00ac8
Editing validation template
benji-glitsos-ga Feb 14, 2024
e6260fd
Editing validation template
benji-glitsos-ga Feb 14, 2024
4b37062
Styling template
benji-glitsos-ga Feb 14, 2024
7554a4c
Styling template
benji-glitsos-ga Feb 14, 2024
05b8d74
Minor edit
benji-glitsos-ga Feb 14, 2024
6631605
Editing the template
benji-glitsos-ga Feb 14, 2024
4d25a30
Wording
benji-glitsos-ga Feb 14, 2024
2913ed8
Wording
benji-glitsos-ga Feb 14, 2024
fd62daa
Converted the toctree captions on the Validation page to H2 headings,…
benji-glitsos-ga Feb 14, 2024
dca865e
Styling the 'View by type' tags list
benji-glitsos-ga Feb 14, 2024
8a2074b
Adding full sized images to the template
benji-glitsos-ga Feb 14, 2024
827db3a
Styled download links to look like normal links
benji-glitsos-ga Feb 20, 2024
e4fb948
Removed the page-specific download link styling since it is now gener…
benji-glitsos-ga Feb 20, 2024
41e31aa
Merged 'main' into this branch
benji-glitsos-ga Mar 21, 2024
8d1b464
Merge branch 'main' into feature/calval-template
benji-glitsos-ga Mar 21, 2024
2fa88b1
Added 2023-11-16 daily validation report test
benji-glitsos-ga Mar 21, 2024
eefdf99
Deleted 2024-01-01 daily report test
benji-glitsos-ga Mar 21, 2024
5591bf8
Formatting daily report template
benji-glitsos-ga Mar 21, 2024
4b200f9
Moved 'Download as CSV' to above the table
benji-glitsos-ga Mar 21, 2024
81e57b6
Editing the new 2023-11-26 daily template
benji-glitsos-ga Mar 21, 2024
31d3c5c
Removed the variables CSV download link
benji-glitsos-ga Mar 21, 2024
1763d12
Added new test report: daily-report/2023-11-27
benji-glitsos-ga Mar 28, 2024
a06d77a
Copied the 2023-11-27 into a v2 to edit
benji-glitsos-ga Mar 28, 2024
4d6efbf
Editing daily report content
benji-glitsos-ga Mar 28, 2024
283b241
Editing daily report content
benji-glitsos-ga Mar 28, 2024
49eec98
Editing daily report content
benji-glitsos-ga Mar 28, 2024
602fc59
Editing daily report content
benji-glitsos-ga Mar 28, 2024
b77987f
Editing daily report content
benji-glitsos-ga Mar 28, 2024
33e25d2
Editing daily report content
benji-glitsos-ga Mar 28, 2024
21b80bb
Removed the 'tags' feature because that the tags feature is on the ba…
benji-glitsos-ga Mar 28, 2024
42afdad
Added multiplication symbol html entity
benji-glitsos-ga Mar 28, 2024
a4cf789
Reversed the order of the validation sidebar entries so the newest di…
benji-glitsos-ga Mar 28, 2024
cb400cd
Minor wording
benji-glitsos-ga Apr 2, 2024
44a0b33
Deleted the other daily reports to avoid confusion
benji-glitsos-ga Apr 2, 2024
affa812
Reworded NSD to National Spectral Database
benji-glitsos-ga Apr 2, 2024
d022320
Nested the Quarterly and Yearly reports into sidebar folders
benji-glitsos-ga Apr 2, 2024
35c8c0e
Added a Daily reports tile to Validation root page
benji-glitsos-ga Apr 3, 2024
1678286
Hid the Quarterly and Yearly reports
benji-glitsos-ga Apr 3, 2024
3bc3b56
Removed 'of past 2 years' wording
benji-glitsos-ga Apr 3, 2024
13cd006
Removed reference to quarterly and yearly reports that was redundant …
benji-glitsos-ga Apr 8, 2024
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
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ LOCAL_ENABLE_USER_GUIDES=Yes
LOCAL_ENABLE_DATA_PRODUCTS=Yes
LOCAL_ENABLE_OLD_VERSIONS=Yes
LOCAL_ENABLE_NOTEBOOKS=Yes
LOCAL_ENABLE_VALIDATION_REPORTS=Yes
LOCAL_ENABLE_TECH_ALERTS_CHANGELOG=Yes
Binary file added docs/_files/validation/daily-report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/_modules/validation_reports.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import datetime

def exclude_old_daily_reports(years):
current_year = datetime.date.today().year
previous_year = current_year - years
return [f"validation/daily-report/{previous_year}-*"]

17 changes: 17 additions & 0 deletions docs/_static/scripts/custom-behaviour.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,21 @@ document.addEventListener("DOMContentLoaded", function (event) {
}
}
})();

// Click on any image within the page content to open it in a new tab.

(function () {
let images = document.querySelectorAll(".bd-article img");

for (let i = 0; i < images.length; i++) {
let image = images[i];

image.dataset.linkType = "image";
image.title = "Click to view at full size.";

image.addEventListener("click", function () {
window.open(image.src, "_blank");
});
}
})();
});
5 changes: 5 additions & 0 deletions docs/_static/styles/components/_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ a {
}
}

img {
&[data-link-type="image"] {
cursor: pointer;
}
}
1 change: 1 addition & 0 deletions docs/_static/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@import "pages/not_found";
@import "pages/automodule";
@import "pages/card_list";
@import "pages/validation_report";

@import "components/navigation_bar";
@import "components/navigation_sidebar";
Expand Down
19 changes: 19 additions & 0 deletions docs/_static/styles/pages/_validation_report.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.validation-report {
&-variables-table {
tr td:first-child {
font-weight: bold;
}
}

&-results-table {
tbody tr:first-child {
font-weight: bold;
}
}

&-download {
float: right;
margin-left: 1rem;
}
}

15 changes: 15 additions & 0 deletions docs/_templates/home-v1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,21 @@

.. image:: /_files/reference/Reporting_dashboard.png

.. container:: showcase-panel bg-gradient-space reverse
:name: dea-notebooks

.. container::

.. rubric:: Validation reports

Assess the validity of our datasets against these validation reports.

`Visit the Validation reports </validation/>`_

.. container::

.. image:: /_files/cmi/Kakadu-Mary_TCW-percentiles-wide_1.jpg

.. container:: showcase-panel
:name: about-dea

Expand Down
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from _modules import utilities
from _modules import mock_imports
from _modules import pr_preview
from _modules import validation_reports

environment = {
"build_mode": os.environ.get("BUILD_MODE"),
Expand Down Expand Up @@ -37,10 +38,13 @@
"notebooks/Supplementary_data/*.ipynb",
"py-modindex/index.*",
]
exclude_patterns += validation_reports.exclude_old_daily_reports(years = 2)
exclude_patterns += utilities.optional_exclude_pattern("LOCAL_ENABLE_TAGS", "tags")
exclude_patterns += utilities.optional_exclude_pattern("LOCAL_ENABLE_USER_GUIDES", "guides")
exclude_patterns += utilities.optional_exclude_pattern("LOCAL_ENABLE_DATA_PRODUCTS", "data")
exclude_patterns += utilities.optional_exclude_pattern("LOCAL_ENABLE_OLD_VERSIONS", "data/old-version")
exclude_patterns += utilities.optional_exclude_pattern("LOCAL_ENABLE_NOTEBOOKS", "notebooks")
exclude_patterns += utilities.optional_exclude_pattern("LOCAL_ENABLE_VALIDATION_REPORTS", "validation")
exclude_patterns += utilities.optional_exclude_pattern("LOCAL_ENABLE_TAGS", "tags")
exclude_patterns += utilities.optional_exclude_pattern("LOCAL_ENABLE_TECH_ALERTS_CHANGELOG", "tech-alerts-changelog")

Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ sphinx-sitemap<=2.5.1
sphinxext-opengraph<=0.9.1
sphinx-notfound-page<=1.0.0
sphinx-copybutton<=0.5.2

33 changes: 33 additions & 0 deletions docs/table_of_contents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,39 @@ entries:
entries:
- file: notebooks/Tools/index # Contains its own table of contents.

# Validation

- file: validation/index
subtrees:
- caption: Daily Reports
entries:
- file: validation/daily-report/index
title: All daily reports
options:
reversed: True
entries:
- glob: validation/daily-report/*/index
# - caption: Quarterly Reports
# options:
# reversed: True
# entries:
# - file: validation/quarterly-report/index
# title: All quarterly reports
# options:
# reversed: True
# entries:
# - glob: validation/quarterly-report/*/index
# - caption: Yearly Reports
# options:
# reversed: True
# entries:
# - file: validation/yearly-report/index
# title: All yearly reports
# options:
# reversed: True
# entries:
# - glob: validation/yearly-report/*/index

# Tags

- file: tags/index
Expand Down
7 changes: 7 additions & 0 deletions docs/validation/_data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: Validation reports
description: These reports provide statistical summaries that you can compare to our datasets to assess their validity.

pages:
- name: Daily Reports
link: ./daily-report
image: /_files/validation/daily-report.png
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BAND,satmean,satstd,fieldmean,fieldstd
CA,0.0546,0.000435,0.0488,0.003
blue,0.0659,0.00141,0.0638,0.00402
green,0.102,0.00452,0.104,0.0104
red,0.185,0.0141,0.188,0.0284
RE1,0.208,0.0142,0.209,0.0312
RE2,0.224,0.015,0.225,0.0331
RE3,0.234,0.015,0.237,0.0333
nir_1,0.244,0.0151,0.246,0.0313
nir_2,0.25,0.0125,0.251,0.03
swir_2,0.387,0.011,0.395,0.0375
swir_3,0.307,0.0117,0.322,0.039
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions docs/validation/daily-report/2023-11-27/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# 2023-11-27: Mullion, Landsat 8 overpass

A Daily Validation Summary Report of the surface reflectance data collected on
the date of 2023-11-27 by Geoscience&nbsp;Australia. The full collection of data is
contained in the [National Spectral Database](https://www.dea.ga.gov.au/products/national-spectral-database).

:::{contents} In this report
:local:
:backlinks: none
:::

## Variables

These variables and environmental factors were present on the day the data were
collected.

:::{csv-table}
:class: validation-report-variables-table

"Instrument(s) used","ASD FR4 (18179/3)"
"Time of field site measurements (UTC)","2023-11-26 22:37:46 to 2023-11-26 23:37:06"
"Time of overpass (UTC)", 2023-11-27 00:45:46
"GPS quality","Good"
"Reference position","142.1036962E, 31.8135401S (WGS84)"
"Matchup quality","Good"
:::

## Results

The surface reflectance statistics collected on this day are grouped into bands.
This allows the data to be used to validate Geoscience Australia's other datasets
which use the same standardised bands.

```{eval-rst}
.. container:: validation-report-download

:download:`Download as CSV <./DailyValidationResults-2023-11-27.csv>`
```

:::{csv-table}
:class: validation-report-results-table

"Band","Sat Mean","Sat rms","Field mean","Field rms"
"CA","0.0546","0.000435","0.0488","0.003"
"Blue","0.0659","0.00141","0.0638","0.00402"
"Green","0.102","0.00452","0.104","0.0104"
"Red","0.185","0.0141","0.188","0.0284"
"Re1","0.208","0.0142","0.209","0.0312"
"Re2","0.224","0.015","0.225","0.0331"
"Re3","0.234","0.015","0.237","0.0333"
"Nir_1","0.244","0.0151","0.246","0.0313"
"Nir_2","0.25","0.0125","0.251","0.03"
"Swir_2","0.387","0.011","0.395","0.0375"
"Swir_3","0.307","0.0117","0.322","0.039"
:::

## Figures

Click an image to view it at full size.

:::::{grid} 1 1 2 3
::::{grid-item}
:::{figure} ./RGB-2023-11-27.png

A satellite imagery tile of true colour (RGB) surface reflectance. It covers an
area of approximately 2&nbsp;km &times; 2&nbsp;km. The white box indicates the size and location
of the field site.
:::
::::
::::{grid-item}
:::{figure} ./DayComparison-2023-11-27.png

A band-by-band plot of surface reflectance for satellite and field data.
Satellite uncertainty error bars for each band are the standard deviation of
pixel values over and surrounding the field site. Field uncertainty error bars
are the standard deviation of values after averaging all spectra within the same
satellite pixels.

:::
::::
::::{grid-item}
:::{figure} ./OverallComparison-2023-11-27.png

A plot of Satellite Surface Reflectance versus Field Site Surface Reflectance on this day.
The solid line represents the one-to-one equality between field and satellite measurements.
The black dots are the values from all field site measurements prior to this date.
The line of best fit is not shown, but its parameters are given in the bottom-right corner.
:::
::::
:::::

% :::{tags} validation, daily_validation, mullion_validation, landsat_8_validation
% :::
7 changes: 7 additions & 0 deletions docs/validation/daily-report/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Daily reports

Here are all the daily validation reports to date.

:::{tableofcontents}
:titlesonly:
:::
2 changes: 2 additions & 0 deletions docs/validation/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.. datatemplate:yaml:: _data.yaml
:template: card-list-v1.rst
2 changes: 2 additions & 0 deletions docs/validation/quarterly-report/2024-q1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Q1, 2024: Quarterly validation summary

7 changes: 7 additions & 0 deletions docs/validation/quarterly-report/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Quarterly reports

Here are all the quarterly validation reports to date.

:::{tableofcontents}
:titlesonly:
:::
1 change: 1 addition & 0 deletions docs/validation/yearly-report/2023/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 2023: Yearly validation summary
7 changes: 7 additions & 0 deletions docs/validation/yearly-report/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Yearly reports

Here are all the yearly validation reports to date.

:::{tableofcontents}
:titlesonly:
:::