Skip to content

APR-179: Wire satellite_lst_stac into fishing.py#47

Merged
JacobSampson merged 1 commit into
mainfrom
APR-179/activate-stac-module
Jun 7, 2026
Merged

APR-179: Wire satellite_lst_stac into fishing.py#47
JacobSampson merged 1 commit into
mainfrom
APR-179/activate-stac-module

Conversation

@JacobSampson

Copy link
Copy Markdown
Contributor

Summary

  • Replaces GEE-based satellite_lst imports with STAC-based satellite_lst_stac in fishing.py
  • The STAC module uses Microsoft Planetary Computer (free, no auth required) instead of Google Earth Engine (requires paid credentials)

Changes

  • src/onkia/satellite_lst_stac.py: Added LST_USEFUL_THRESHOLD_ACRES re-export from satellite_lst
  • app/pages/fishing.py:
    • Swapped import from onkia.satellite_lst to onkia.satellite_lst_stac
    • Renamed get_lst_heatmap_urlget_lst_heatmap (returns PNG bytes, not URL string)
    • Renamed _get_heatmap_url_cached_get_heatmap_cached
    • Updated st.image() call to accept bytes directly instead of URL

Test Plan

  • Syntax check passes for all app/ and src/ Python files
  • All satellite_lst and satellite_lst_stac tests pass (66/66)
  • All app smoke tests pass (28/28)
  • Import validation: 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_m succeeds

Closes: APR-179

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
@codesandbox

codesandbox Bot commented Jun 7, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@JacobSampson JacobSampson merged commit 046d8c1 into main Jun 7, 2026
4 checks passed
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.

1 participant