Skip to main content

A fast, web-based NetCDF explorer for glider data.

Project description

Glider Playground

A fast, web-based NetCDF explorer for viewing and validating glider data. This tool provides a highly responsive UI to explore oceanographic .nc files without running computationally heavy processing steps on the fly. It was built as a simple tool to learn about glider data at NOC (National Oceanography Centre).

Glider Playground Home View

Prerequisites

It is highly recommended to run this project inside a Python virtual environment to keep its dependencies isolated from the rest of your system.

  1. Open your terminal and navigate to the project folder.
  2. Create a virtual environment named .venv:
    python -m venv .venv
    
  3. Activate the virtual environment:
    source .venv/bin/activate
    

(Note: You will need to run the activation command any time you open a new terminal window to work on this project).

Installation

Ensure you have Python 3.9+ installed and your virtual environment is active. Navigate to this directory in your terminal and run:

pip install -e .

The -e flag installs the package in "editable" mode. This means any changes you make to the Python code will be immediately recognised without needing to reinstall the package.

How to Run

Once installed, you can start the application from anywhere in your terminal (as long as your virtual environment is active) by simply typing:

glider-playground

This will load up the local server and automatically open the application in your default web browser. To stop the server, return to the terminal and press Ctrl+C.

How to Use

Loading Data

.nc data files must be placed inside a local data folder. You can click the folder icon in the top navigation bar to easily open this directory on your machine. Once files are added, select your target dataset from the dropdown.

Views & Plotting

  • Basic Plotting: Select your X and Y variables. You can optionally select a third variable to map to the Colour and choose a specific colourmap.
  • Presets: Use the View dropdown to select some built-in oceanographic presets (e.g., Thermal Structure, Salinity Profile). You can also configure your own preferred axes and colourmaps, name them, and click Save to create Custom Views for future use.

Quality Control (QC) Filtering

If your dataset contains Argo standard _QC variables, the tool will automatically clean the plot.

  • You can control exactly which data points are rendered by providing a comma-separated list of flags (the default is 1,2,5,8 to include good, probably good, and interpolated data). This is applied to all axis.

Interaction & Analysis

  • Zoom: Click and drag a box directly on the plot to zoom in. You can also use the interactive range sliders on the X and Y axes to precisely trim the data limits. Click the Reset Lims button at the bottom to return to the full overview.
  • Z Zoom: Drag the slider on the right to adjust the colour range to focus on.
  • Data Inspector: Click a point to trigger the Inspector. This will reveal its exact values in the sude bar, and show its location on the mini-map.
  • Axis Controls: Use the Invert checkbox to flip the Y-axis (useful for depth or pressure). Should automatically turn on in most cases. The Delta checkbox can be used plot the difference between variables (need same units)

Exporting

  • Plot All: By default, the tool limits rendering to 259,about 250,000 points to maintain a fast, responsive UI. Tick the Plot All checkbox to bypass this limit and render every single data point for a high-resolution view.
  • Download: Click the Download button in the top right to save the plot as a PNG file.

Uninstalling

If you ever wish to remove the application and its terminal command from your environment, simply run:

pip uninstall glider-playground

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glider_playground-0.1.2.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glider_playground-0.1.2-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file glider_playground-0.1.2.tar.gz.

File metadata

  • Download URL: glider_playground-0.1.2.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for glider_playground-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4552b353c9ab0f0786f93aee54b1de854bf39670f490f25c9c25d348eb7f11ed
MD5 a21edd3239f564a57a16e2a42f7a4a74
BLAKE2b-256 dec637c995e972eea1440f4dd871331464cbefb5791cdc46488be397990ff5d7

See more details on using hashes here.

File details

Details for the file glider_playground-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for glider_playground-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c6b5ca78b37a9ad0a8890cc4dc5ffd6fd8a361064f15ebf960d7877bcfe7657a
MD5 6149e7ca5bf511e7e9eda5a4bf949feb
BLAKE2b-256 6ea96974d269adea4a296faeff1a6f17ece239a8e14ea7b4d071bdd2b1d01192

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page