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).

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.
  • 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.1.tar.gz (13.3 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.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: glider_playground-0.1.1.tar.gz
  • Upload date:
  • Size: 13.3 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.1.tar.gz
Algorithm Hash digest
SHA256 85446fd63e74cf184940797c6bb3a8051479a48209ebcf3d972daf715806e285
MD5 37b850104bfca69603007e147f9fa3ec
BLAKE2b-256 e43b65ca240d6e7735345cad55b6bd69d23301fb6edb07d9fd14424e22632723

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for glider_playground-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba71cf909ce82ccd70aff1090af060d26cfd13ba355d0e33870aa39e7fb3082f
MD5 10501af6fc03a9c22f2f812c87d84744
BLAKE2b-256 32ae59b6836c39599d5ebcc4483ff4996b640fc547692070b8cbe7af5af6661e

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