Metadata-Version: 2.4
Name: echoshader
Version: 0.2.1
Summary: Open Source Python package for building ocean sonar data visualizations.
Author-email: Dingrui Lei <leidingrui426@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/echostack-org/echoshader
Project-URL: Repository, https://github.com/echostack-org/echoshader
Classifier: Development Status :: 1 - Planning
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: <3.15,>=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.10.10
Requires-Dist: dask>=2024.10.0
Requires-Dist: datashader>=0.16
Requires-Dist: echopype==0.12.0
Requires-Dist: fsspec>=2024.10.0
Requires-Dist: geoviews>=1.13.1
Requires-Dist: hvplot>=0.11.1
Requires-Dist: jupyter_bokeh>=4.1.0
Requires-Dist: netCDF4>=1.7.2
Requires-Dist: numpy>=2.3.0
Requires-Dist: pandas>=2.3.0
Requires-Dist: panel>=1.5.3
Requires-Dist: plotly>=6.0.0
Requires-Dist: pyvista[jupyter]>=0.44.2
Requires-Dist: xarray>=2025.1.0
Requires-Dist: zarr>=3
Provides-Extra: spasso
Requires-Dist: cartopy>=0.23; extra == "spasso"
Requires-Dist: pyarrow>=18; extra == "spasso"
Provides-Extra: dev
Requires-Dist: ipykernel>=6.30.0; extra == "dev"
Requires-Dist: pre-commit>=4.1.0; extra == "dev"
Requires-Dist: pytest>=8.3.4; extra == "dev"
Requires-Dist: pytest-cov>=6.0.0; extra == "dev"
Requires-Dist: ruff>=0.7.0; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest>=8.3.4; extra == "test"
Requires-Dist: pytest-cov>=6.0.0; extra == "test"
Requires-Dist: pytest-mock>=3.14.1; extra == "test"
Requires-Dist: pytest-xdist>=3.7.0; extra == "test"
Provides-Extra: lint
Requires-Dist: check-manifest>=0.51; extra == "lint"
Requires-Dist: codespell>=2.4.0; extra == "lint"
Requires-Dist: mypy>=1.12.0; extra == "lint"
Requires-Dist: numpydoc>=1.9.0; extra == "lint"
Requires-Dist: pre-commit>=4.1.0; extra == "lint"
Requires-Dist: pylint>=3.3.2; extra == "lint"
Requires-Dist: ruff>=0.7.0; extra == "lint"
Provides-Extra: docs
Requires-Dist: jupyter-book>=1.0.4; extra == "docs"
Requires-Dist: linkify-it-py>=2.1.0; extra == "docs"
Requires-Dist: myst-nb>=1.2.0; extra == "docs"
Requires-Dist: numpydoc>=1.9.0; extra == "docs"
Requires-Dist: sphinx>=8.1.0; extra == "docs"
Requires-Dist: sphinx-automodapi>=0.19.0; extra == "docs"
Requires-Dist: sphinx-comments; extra == "docs"
Requires-Dist: sphinx-copybutton; extra == "docs"
Requires-Dist: sphinx-external-toc>=1.1.0; extra == "docs"
Requires-Dist: sphinx-panels; extra == "docs"
Requires-Dist: sphinx-thebe; extra == "docs"
Requires-Dist: sphinx-togglebutton>=0.4.4; extra == "docs"
Requires-Dist: sphinx_book_theme>=1.1.4; extra == "docs"
Requires-Dist: sphinx_jupyterbook_latex; extra == "docs"
Requires-Dist: sphinx_rtd_theme>=3.0.2; extra == "docs"
Requires-Dist: sphinxcontrib-mermaid>=1.0.0; extra == "docs"
Dynamic: license-file

# Welcome to echoshader

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/echostack-org/echoshader/HEAD)
[![SPEC 0](https://img.shields.io/badge/SPEC-0-green?labelColor=%23004811&color=%235CA038)](https://scientific-python.org/specs/spec-0000/)

Open Source Python package for building ocean sonar data visualizations based on the HoloViz suite of Python tools.

## What are ocean sonar systems?

Ocean sonar systems, such as echosounders, are the [workhorse to study life in the ocean](https://storymaps.arcgis.com/stories/e245977def474bdba60952f30576908f). They provide continuous observations of fish and zooplankton by transmitting sounds and analyzing the echoes bounced off these animals, just like how medical ultrasound images the interior of the human body. In recent years these systems have been widely deployed on ships, autonomous vehicles, and moorings, bringing in large volumes of data that allow scientists to study changes in marine ecosystems.

## What is echoshader?

Echoshader aims to enhance the capability to interactively visualize large volumes of ocean sonar data to accelerate data exploration and discovery. The project goes hand-in-hand with the ongoing development of [echopype](https://echopype.readthedocs.io/en/stable/), which handles the standardization, pre-processing, and organization of these data.

By providing an accessible and customizable platform for echo data visualization, the project can accelerate advancements in oceanographic research for the benefit of conservation and sustainable resource management.

## Installation

Echoshader supports Python 3.13 and 3.14.
We recommend creating a new environment before installing echoshader:

```bash
mamba create -c conda-forge -n echoshader --yes python=3.13
mamba activate echoshader
```

To install the latest release from PyPI:

```bash
python -m pip install echoshader
```

To install the latest development version from GitHub:

```bash
python -m pip install git+https://github.com/echostack-org/echoshader.git
```

We recommend using [mamba](https://mamba.readthedocs.io/en/latest/user_guide/mamba.html) to manage conda environments.

## Quick start

Echoshader provides reusable visualization elements for standardized ocean sonar data stored as xarray datasets.

```python
import echoshader
import xarray as xr

ds = xr.open_zarr("examples/notebooks/MVBS.zarr")

ds.eshader.echogram(
    channel="WBT 400143-15 ES38B_ES",
    vert_dim="depth",
)
```

Available visualization elements include echograms, tricolor echograms, vessel tracks, 3-D curtain plots, histograms, summary tables, curves, and NASC plots.

Start with [Visualization element examples](examples/notebooks/element_examples.ipynb), which downloads and extracts the processed example dataset as `MVBS.zarr`. Run the notebook from `examples/notebooks/` so the dataset is saved there.

For RAW processing, different vertical coordinates, and geometry matching, see [Echogram vertical coordinates and geometry](examples/notebooks/echogram_vertical_coordinates.ipynb).

The dataset is also available directly as [MVBS.zip](https://github.com/echostack-org/echoshader/releases/download/example-data-v1/MVBS.zip). Extract it into `examples/notebooks/` to obtain `examples/notebooks/MVBS.zarr`.

Once the dataset is available, launch the example application from the repository root:

```bash
python -m echoshader.app.launcher examples/app/app_config.yaml --port 1805
```

Open <http://localhost:1805/basic>. The example YAML resolves its dataset path relative to its own location. See [the application guide](docs/source/app.md) for configuration and interaction details.

## Development setup

This section is intended for those who are actively developing echoshader.

First, fork and clone the [echoshader repository](https://github.com/echostack-org/echoshader), then create and activate a development environment:

```bash
mamba create -c conda-forge -n echoshader-dev --yes python=3.13
mamba activate echoshader-dev
```

From the repository directory, install echoshader in editable mode together with the development and testing dependencies defined in `pyproject.toml`:

```bash
python -m pip install -e ".[dev,test]"
```

To link the environment with a Jupyter kernel:

```bash
python -m ipykernel install --user \
    --name echoshader-dev \
    --display-name "echoshader-dev"
```

To run the test suite:

```bash
pytest
```
