Skip to content

New composites#111

Merged
vnewey merged 16 commits intodevelopfrom
new_composites
Apr 7, 2025
Merged

New composites#111
vnewey merged 16 commits intodevelopfrom
new_composites

Conversation

@vnewey
Copy link
Collaborator

@vnewey vnewey commented Apr 4, 2025

New version of composites

  • Now uses only valid obs to calculate the low and high tide quantiles.
  • Renamed product tidal composites.
  • Uses eo-tides for tide modelling
  • Ability to remove sunglint
  • export bands low_threshold and high_threshold

io updated to work for composites

  • thumbnail changed for composites in io.py

updated Intertidal_CLI notebook for both intertidal and tidal composites

vnewey added 5 commits April 1, 2025 07:23
uses eo-tides
removes sunglint
io updated to work for composites
thumbnail changed for composites in io.py
added tidal_composites_cli as an entry point in setup.py, so we can call it from the docker image
Now uses only valid obs to calculate the low and high tide quantiles.
Renamed product tidal composites.
export bands low_threshold and high_threshold
changes to io.py for use with composites
fixed a typo in io.py and updated Intertidal_CLI notebook for both intertidal and tidal composites
@vnewey vnewey requested review from erialC-P and robbibt April 4, 2025 02:19
@github-actions
Copy link

github-actions bot commented Apr 4, 2025

For full integration test results, refer to the Tests directory README.

Copy link
Member

@robbibt robbibt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @vnewey!

I made a few changes:

  • Refactored the composite code to load less data (only one band is fully loaded into memory, with other bands only loaded for the low and high tide timesteps of interest)
  • Switched to xr_quantile instead of .quantile()
  • Updated the metadata document to add aliases and change order of bands
  • Moved sunglint masking logic into load_data
  • Removed count_clear output (keeping only low and high tide counts)
  • Updated some documentation and function params to match Intertidal

Overall this produces a speedup on 8XL:

Original:
    Wall time: 33min

Updated:
    Wall time: 15min 33s

@vnewey vnewey merged commit 8187bb6 into develop Apr 7, 2025
@robbibt robbibt deleted the new_composites branch April 7, 2025 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants