APR-179: Wire satellite_lst_stac into fishing.py#47
Merged
Conversation
Replace GEE-based satellite_lst imports with STAC-based satellite_lst_stac. - Re-export LST_USEFUL_THRESHOLD_ACRES from satellite_lst_stac - Swap import in fishing.py from satellite_lst to satellite_lst_stac - Rename get_lst_heatmap_url to get_lst_heatmap (returns PNG bytes, not URL) - Rename _get_heatmap_url_cached to _get_heatmap_cached - Update st.image() call to accept bytes directly
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
satellite_lstimports with STAC-basedsatellite_lst_stacinfishing.pyChanges
src/onkia/satellite_lst_stac.py: AddedLST_USEFUL_THRESHOLD_ACRESre-export from satellite_lstapp/pages/fishing.py:onkia.satellite_lsttoonkia.satellite_lst_stacget_lst_heatmap_url→get_lst_heatmap(returns PNG bytes, not URL string)_get_heatmap_url_cached→_get_heatmap_cachedst.image()call to accept bytes directly instead of URLTest Plan
from onkia.satellite_lst_stac import HEATMAP_THRESHOLD_ACRES, LAKE_ACRES, LST_USEFUL_THRESHOLD_ACRES, get_latest_lst, get_lst_history, get_lst_heatmap, get_ndci, lake_radius_msucceedsCloses: APR-179