Skip to content

Add R Shiny app for NWFSC Survey Grid SST visualization#2

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/create-r-shiny-app-sst-analysis
Draft

Add R Shiny app for NWFSC Survey Grid SST visualization#2
Copilot wants to merge 3 commits intomainfrom
copilot/create-r-shiny-app-sst-analysis

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 20, 2026

Implements an interactive Shiny app that fetches daily SST from NOAA ERDDAP and overlays values on NWFSC Combo survey grid points via a Leaflet map.

app.R

  • Reads available date range from ERDDAP metadata (ncdcOisst21Agg_LonPM180) to bound the dateInput picker
  • Fetches SST via rerddap::griddap() clipped to the grid bounding box; matches values to grid points with a vectorised nearest-neighbour join
  • Grid filtered to survey == "NWFSC.Combo" from surveyjoin::nwfsc_grid; each point assigned a stable cell_id
  • Points coloured with viridis palette via leaflet::colorNumeric; legend added via addLegend()
  • Popups expose cell_id and SST (°C)
  • Fetch is eventReactive on button click — no spurious re-fetches on date change alone
  • Both get_erddap_dates() and fetch_sst() wrapped in tryCatch; missing/unavailable dates surface a sidebar message rather than crashing the session

README.md

  • Replaces placeholder content with installation steps (system libs + R packages), run instructions (console and CLI), and a usage guide

Copilot AI changed the title [WIP] Create R Shiny app for NWFSC Survey Grid SST analysis Add R Shiny app for NWFSC Survey Grid SST visualization Apr 20, 2026
Copilot AI requested a review from eeholmes April 20, 2026 19:11
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.

Create an R Shiny App for NWFSC Survey Grid SST Analysis

2 participants