Glider Playground
A fast, web-based viewer for oceanographic data. Load OG1 NetCDF files — or pull live deployments from BODC.
Live demo: glider-playground.co.uk (running on a Raspberry Pi — may be slow)
Install & Run
pip install glider-playground
glider-playground
This opens the app in your browser. Press Ctrl+C in the terminal to stop it.
Install from source
git clone https://github.com/Orlando-PB/glider-playground.git
cd glider-playground
pip install .
Loading Data
Click the file button (top-left) to open the file panel. You can:
- Browse live BODC deployments — pull published datasets directly from the British Oceanographic Data Centre
- Add files — pick individual
.ncfiles - Add folder — load an entire folder of
.ncfiles at once
Your own files are processed once in the background. Once ready, click a file to load it.
File format: input files must be in OG1 format (or OG1-compatible) — the OceanGliders community NetCDF standard.
Live data is provided by the British Oceanographic Data Centre (BODC).
Views & Layout
Glider Playground is a flexible, multi-panel workspace — plots, the globe, and the 3D track are all panels you can arrange however you like.
- Drag a panel by its header to reorder or swap it with another
- Split any panel (the edge + buttons) to add another plot or map beside it
- Resize by dragging the dividers; close a panel with its ✕
Views
The View bar rebuilds the whole workspace in one click:
| View | What you get |
|---|---|
| Classic | A single plot with the globe and 3D track (the default) |
| Map | Globe + 3D view side by side, no plot |
| Overview | Globe + 3D alongside the headline plots |
| Dashboard | Globe + 3D + the six core plots, each with a depth-profile sidebar |
| Duo | Two globes (chlorophyll + currents overlays) beside backscatter and salinity plots |
| Bio-optics | Temperature, chlorophyll, backscatter and PAR plots with a full-height globe |
| Stats | Deployment summary, map, instruments, and searchable variable / attribute tables (derived variables are labelled) |
Presets
The Presets row sets what a plot shows: Phases, Thermal, T-S Diagram, Salinity, Density, Chlorophyll, Oxygen, Backscatter, PAR. Presets the current file has no data for are greyed out.
Globe & Overlays
- Globe — the glider's GPS track on an interactive 3D globe, with every other loaded deployment shown faintly alongside
- Copernicus overlays — drape satellite/model surface fields over the globe: Chlorophyll-a, Temperature, Salinity, O₂, pH, Biomass, Sea Level Anomaly, plus Currents as an animated particle-flow field. Smooth toggles interpolation of the overlay grid, and Latest swaps the deployment-date snapshot for today's conditions
- Glider DAC — per-dive depth-averaged current vectors, shown when the file provides them
- Argo floats — latest position of every Argo float, with details on click
- Research ships — latest reported positions of RRS Discovery, RRS James Cook and RRS Sir David Attenborough
3D View
The dive track drawn in 3D over NOAA bathymetry. Height is scaled automatically.
- Playback — press play (or drag the slider) to fly the vehicle along its track, at a choice of speeds
- Style menu:
- Colour land — shade land and ice above the waterline
- True height — turn off the vertical scaling
- Scenery — shows cosmetic details
- Argo floats — show floats that surfaced near the glider during playback
Copernicus Setup
The surface overlays and currents are fetched live from Copernicus Marine, which needs a (free) account and a one-time login:
- Register for a free account at marine.copernicus.eu/register.
- Install the toolbox:
pip install copernicusmarine
- Log in (stores your credentials locally), then restart Glider Playground:
copernicusmarine login
Once you're logged in, the overlay layers fetch on demand. Until then the app will prompt you with whichever of these steps is missing.
Overlays and currents are provided by the E.U. Copernicus Marine Service:
- Global Ocean Physics Analysis and Forecast. E.U. Copernicus Marine Service Information (CMEMS). Marine Data Store (MDS). DOI: 10.48670/moi-00016
- Global Ocean Biogeochemistry Analysis and Forecast. CMEMS, MDS. DOI: 10.48670/moi-00015
- Global Ocean Colour L4 (NRT / Multi-Year). CMEMS, MDS. DOI: 10.48670/moi-00279, 10.48670/moi-00281
- Global Ocean Sea Level L4 (NRT / Multi-Year). CMEMS, MDS. DOI: 10.48670/moi-00149, 10.48670/moi-00148
Plotting & Inspecting
By default, presets drive the plots. Open Settings (top bar) to change the plot variables and more.
- Zoom — drag a box on the plot to zoom in; double-click to reset
- Colour bar slider — drag the ends of the colour bar to trim the colour range (Auto / Reset beneath it)
- Inspector — hover the plot to read exact values for the nearest sample in a floating card
- Profile sidebar — the Profile button adds a value-vs-depth plot to the left of a plot
- Order / Size / Quality — choose which points draw on top, marker size, and the maximum number of points drawn
- Colour palette — pick from a range of oceanographic colour maps
- Phases — show only selected glider phases
- Sync time — zooming one plot zooms all
- Share — copy a link that reopens this exact view
- Download — save a high-resolution PNG of the whole workspace (every panel as shown, without the controls)
- Dark theme — toggle from the top bar
Profiles
If a file contains dive profiles, a Profiles navigator appears. Step through individual profiles or cycles, filter by direction (upcast / downcast / transect), or view everything at once.
Quality Control
QC flags follow the Argo convention: 0 No QC, 1 Good, 2 Probably good, 3 Probably bad, 4 Bad, 5 Changed, 8 Interpolated, 9 Missing. Samples are always filtered to the allowed set (default 0,1,2,5,8).
- PRES gaps up to 5 minutes are always interpolated (flag
8); a longer gap is a real data gap and is left unfilled. - Exact
0.0fill values in PRES/TEMP/CNDC are always flagged missing (flag9) and nulled. - NaT and out-of-order timestamps are always dropped outright. Other out-of-range timestamps (pre-1990 / future) are flagged bad (flag
4) and filterable like anything else.
Uninstall
pip uninstall glider-playground
Developer Info
To change the default plots, dashboard views or colour palettes, edit glider_playground/plot_presets.json (instructions are at the top of the file) and restart.
See OVERVIEW.md for the code layout, architecture, data pipeline, and deployment.
License
Licensed under the Apache License 2.0.
Developed by Orlando Prugel-Bennett at the National Oceanography Centre (NOC).
© 2026 National Oceanography Centre.
Metadata
Release files for glider-playground 0.2.104
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| glider_playground-0.2.104.tar.gz | 3.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| glider_playground-0.2.104-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 MB
Release files / glider_playground-0.2.104.tar.gz
| Download URL | glider_playground-0.2.104.tar.gz |
|---|---|
| Size | 3.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e78e93c8f90a732ac4075e061eab2937917352da7ac1425570a5acba0379daa8
|
|
BLAKE2b-256 checksum How to use checksums |
fab04556bdb5415c9533246e1ec34b716b7385a458ac266d89a9e2afb076f011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / glider_playground-0.2.104-py3-none-any.whl
| Download URL | glider_playground-0.2.104-py3-none-any.whl |
|---|---|
| Size | 3.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47f68abcff55f252d4c1d0d2f9adc27ab6de084357686607870b94e72a3c312c
|
|
BLAKE2b-256 checksum How to use checksums |
72e614ed3d47844606d28e6a623442b806ac432bcd86ec7b28720b6f1e7ee97a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|