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.0.tar.gz (12.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.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: glider_playground-0.1.0.tar.gz
  • Upload date:
  • Size: 12.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.0.tar.gz
Algorithm Hash digest
SHA256 4390c0b55d36a8bd175a396a4375b866aefb5ace286699a0c008a601e3d22377
MD5 a72056514cee5c40faa9007d921f02e1
BLAKE2b-256 07655b25263454a226a84fae669b63125057f1533ad3b3bba9fe33c275c4ad64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for glider_playground-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8674cf3a52f468a4af1e8618c08dd5f9bab3c76d090f5d1317097164a78e99db
MD5 388e7b548b4f6633ec885de4bc92c31b
BLAKE2b-256 656081e528264532549bb883ff534d886670313e79e6a0ad6a7078d4f4c1a55b

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