Skip to content

Add month filter and on-map info card for the selected scene - #11

Merged
vudongpham merged 1 commit into
mainfrom
claude/jolly-galileo-28ek47
Nov 12, 2026
Merged

vudongpham merged 1 commit into
mainfrom
claude/jolly-galileo-28ek47

Conversation

@vudongpham

Copy link
Copy Markdown
Owner

Summary

  • Months filter (same as ee-ts-viewer): 12 month chips plus All/None under the dates. The chart, line, copied values and CSV use only the ticked months. Changing the selection redraws right away without fetching the data again.
  • Info card on the map: clicking an observation in the chart opens a card in the top right of the map. It shows the sensor badge, date, band value, tile, file name and cloud cover. Unlike ee-ts-viewer, it has no download section.
  • Cloud cover: new /scene/cloud?tile=&scene=&mask= endpoint. It reads the scene's QAI file at reduced resolution (at most 1000 px per side) and returns the share of valid pixels that the selected cloud mask removes. When the panel's mask is None, the card uses Default, as in ee-ts-viewer. Results are cached.
  • Fix: the Y-axis min/max row was always visible because .y-range { display: flex } overrode hidden.
  • README updated.

Testing

  • python -m pytest -q: 29 passed. New tests cover the cloud endpoint (clear, cloudy, saturated at Default vs Aggressive, no-data, bad inputs) and the new page elements.
  • Checked in a headless browser against a synthetic datacube. Unticking Jan removes the January point, clicking a point fills the card, and the console shows no errors.

Generated by Claude Code

- Months: tick the months to show (as in ee-ts-viewer); chart, line and
  exports use the filtered series, no re-extraction needed.
- Clicking an observation shows a card on the map (top right) with date,
  sensor, value, tile, file and cloud cover. Cloud cover comes from a new
  /scene/cloud endpoint reading the scene's QAI file (decimated).
- Fix the y axis range row showing while hidden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HUYE7grNuUhYyWzYNvsTzN
@vudongpham
vudongpham merged commit e74331e into main Nov 12, 2026
2 checks passed
@vudongpham
vudongpham deleted the claude/jolly-galileo-28ek47 branch November 12, 2026 11:40
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