Skip to content

Commit 3086602

Browse files
authored
Merge pull request #135 from GeoscienceAustralia/robbibt-patch-1
Fix sunglint issue in `.io`
2 parents 2a415a4 + 347669d commit 3086602

4 files changed

Lines changed: 3 additions & 2 deletions

File tree

intertidal/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def load_data(
295295
s2_spectral_bands = s2_spectral_bands + ["nbart_coastal_aerosol"]
296296

297297
# Set sunglint bands to load
298-
if mask_sunglint is not None:
298+
if (mask_sunglint is not None) and (mask_sunglint >= 1):
299299
sunglint_bands = [
300300
"oa_solar_zenith",
301301
"oa_solar_azimuth",

tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Integration tests
1010
1111
This directory contains tests that are run to verify that DEA Intertidal code runs correctly. The ``test_intertidal.py`` file runs a small-scale full workflow analysis over an intertidal flat in the Gulf of Carpentaria using the DEA Intertidal [Command Line Interface (CLI) tools](../notebooks/Intertidal_CLI.ipynb), and compares these results against a LiDAR validation DEM to produce some simple accuracy metrics.
1212

13-
The latest integration test completed at **2025-07-31 13:15**. Compared to the previous run, it had an:
13+
The latest integration test completed at **2025-07-31 14:04**. Compared to the previous run, it had an:
1414
- RMSE accuracy of **0.14 m ( :heavy_minus_sign: no change)**
1515
- MAE accuracy of **0.12 m ( :heavy_minus_sign: no change)**
1616
- Bias of **0.12 m ( :heavy_minus_sign: no change)**

tests/validation.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,4 @@ time,Correlation,RMSE,MAE,R-squared,Bias,Regression slope
125125
2025-07-16 06:35:53.694461+00:00,0.975,0.145,0.123,0.95,0.117,1.119
126126
2025-07-16 07:07:43.740627+00:00,0.975,0.145,0.123,0.95,0.117,1.119
127127
2025-07-31 03:15:11.418435+00:00,0.975,0.145,0.123,0.95,0.117,1.119
128+
2025-07-31 04:04:50.918639+00:00,0.975,0.145,0.123,0.95,0.117,1.119

tests/validation.jpg

10 Bytes
Loading

0 commit comments

Comments
 (0)