developed by OceanDataLab

Introduction

You can extend the capabilities of the viewer by installing the optional Python package: it allows you to control the viewer remotely, create animation scripts and stream data from your Python console!

Requirements

Downloads

Quickstart

We recommend to install the Python bindings in a virtual environment: it is good practice but not mandatory.

python3 -m venv pyseascope
source pyseascope/bin/activate

Download the Python package: it contains the bindings and an optional processing tool to transform the data you extracted using SEAScope into a PNG image or a binary array (Numpy format).

pip download --no-deps "https://seascope.oceandatalab.com/python/seascope-python-0.2.162.tar.gz"

Python bindings

You can install the Python bindings with:

pip install seascope-python-0.2.162.tar.gz

SEAScope processor

If you want to use the seascope-processor tools (required to get the "Save as PNG" and "Save as Numpy" options in the viewer), use this command instead:

pip install seascope-python-0.2.162.tar.gz[processor]

Then start the processor:

seascope-processor

Finally restart SEAScope and you should now be able to extract data as PNG images or Numpy arrays (the path of the output is displayed in the terminal wherein seascope-processor is running).