APR-170: Replace Google Earth Engine with STAC API for satellite LST#46
Merged
Conversation
- Add satellite_lst_stac.py: drop-in replacement using Microsoft Planetary Computer for Landsat thermal and Sentinel-2 NDCI data - No credentials required for Landsat (free SAS-signed URLs) - Sentinel-2 NDCI via Planetary Computer (free) or Copernicus (auth) - Windowed rasterio reads for performance (~9s vs ~93s full scene) - Heatmap generation via matplotlib (PNG bytes, not URL) - Add pyproject.toml and requirements.txt deps: pystac-client, planetary-computer, rioxarray, rasterio, pyproj - Spike validation: all 4 spikes pass (LST, heatmap, NDCI, ScienceBase eval) - 24 unit tests covering bbox, cloud mask, band key detection, fallback paths
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_lst_stac.py: credential-free replacement forsatellite_lst.pyusing Microsoft Planetary Computer (free SAS-signed URLs)pystac-client,planetary-computer,rioxarray,rasterio,pyprojSpike validation results
Follow-up (separate tickets)
satellite_lst_stacintoapp/pages/fishing.pyreplacing the GEE importget_lst_heatmap_url()call →get_lst_heatmap()(returns PNG bytes;st.image()accepts bytes directly)satellite_lst.py(GEE) or keeping as opt-in fallbackTest plan
pytest tests/test_satellite_lst_stac.py)Closes APR-170
🤖 Generated with Claude Code