Skip to content

[FEAT/REFACTOR] Add plots for Aquadopps from UB, add analog channel, report fixes#31

Merged
eleanorfrajka merged 3 commits into
mainfrom
plotters-refactor
Jul 19, 2026
Merged

[FEAT/REFACTOR] Add plots for Aquadopps from UB, add analog channel, report fixes#31
eleanorfrajka merged 3 commits into
mainfrom
plotters-refactor

Conversation

@eleanorfrajka

Copy link
Copy Markdown
Collaborator

Description:

Improvements to reports and variable handling.

  • Now handles the analog data from Nortek Aquadopp (e.g., the turbidity sensor that was installed)
  • More robust magnetic declination calculation for stage 3 aquadopp
  • Improvements to formatting in the reports
  • Added particle trajectory plot and box plot for velocities.

eleanorfrajka and others added 3 commits July 18, 2026 11:21
…uadopp reports

Renames plotters.py → plotter.py to free the plotters/ namespace, then creates
a new 3-tier plotters/ package alongside the legacy file:

- plotters/_primitives.py: plot_trajectory (data-agnostic; LineCollection colouring)
- plotters/_current.py: plot_temperature_trajectory, plot_speed_boxplot (xr.Dataset API)
- plotters/__init__.py: backward-compat shim so existing 'from oceanarray.plotters import ...'
  calls continue to work unchanged
- Stub modules for post-OdB migration: _timeseries, _section, _diagnostic, _helpers

Wires the two new plots into the HTML Aquadopp instrument pages:
- report/_plots.py: _make_temperature_trajectory, _make_speed_boxplot (Tier-3 wrappers)
- report/_instrument.py: context keys + template sections; gated on instr_type == "aquadopp"

Migration checklist is in .claude/plotters_update-20260718.md.
Ruff: 39 errors (all pre-existing ANN in report/). Tests: 158 passed, 10 skipped.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tack report

Adds two new stack-level Aquadopp plots:
- plot_multi_aquadopp_trajectories: Lagrangian trajectories for all Aquadopps
  on shared axes, coloured by temperature with a shared coolwarm norm; end
  points annotated with serial number and HAB.
- plot_aquadopp_speed_profile: horizontal boxplots per Aquadopp at their HAB
  position so speed distributions can be compared across depths; falls back to
  sqrt(u²+v²) when current_speed is absent.

Thin Tier-3 wrappers (_make_multi_aquadopp_trajectories,
_make_aquadopp_speed_profile) added to report/_plots.py; wired into _stack.py
between the tilt panels and T-S diagram section.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eleanorfrajka
eleanorfrajka requested a review from Copilot July 18, 2026 15:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@eleanorfrajka
eleanorfrajka merged commit 72d392e into main Jul 19, 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.

2 participants