Skip to main content

ocetrac

Build Status codecov Conda Version pypi downloads Documentation Status License:MIT DOI All platform

ocetrac is a Python package for labelling and tracking geospatial features in gridded datasets. It provides two tracking algorithms:

  • DeepTrack — 4-D connected-component labelling and temporal tracking across (time, depth, lat, lon), designed for subsurface features such as volumetric marine heatwaves.
  • SurfTrack — 3-D connected-component labelling and temporal tracking across (time, lat, lon), designed for surface features. SurfTrack supports two temporal connectivity modes:
    • Permissive — any spatial overlap between consecutive timesteps links two features as the same event.
    • Restrictive — a user-defined overlap threshold (e.g. 0.45) must be exceeded to link two features.

Both trackers operate lazily with Dask for memory-efficient, parallelised execution on large datasets.


Installation

Mamba (Recommended)

We recommend mamba for installation. Mamba is a fast drop-in replacement for conda. If you don't have mamba, install Miniforge which ships with mamba by default, or install mamba into an existing conda environment:

conda install -n base -c conda-forge mamba

Then install ocetrac:

mamba install -c conda-forge ocetrac

PyPI

pip install ocetrac

From source

git clone https://github.com/ocetrac/ocetrac.git
cd ocetrac
pip install -e .

Development environment

mamba env create -f environment.yml
mamba activate ocetrac
python -m pytest tests/ -v

Package structure

ocetrac/
├── preprocessing/       — anomaly computation, morphological cleaning, thresholding
├── DeepTrack/           — 4-D tracker (time, depth, lat, lon)
└── SurfTrack/           — 3-D tracker (time, lat, lon)

Contributing

Issues and pull requests are welcome on GitHub. Please file a bug report if you find a problem, or open a pull request if you make an improvement.


Citation

SurfTrack — When using the SurfTrack module, please cite the original software and Spatiotemporal Evolution of Marine Heatwaves Globally.

DeepTrack — The DeepTrack module is currently being prepared for publication. Citation details will be added here upon publication.


Acknowledgements

  • We rely heavily on scikit-image and its community of contributors.
  • This work is currently supported through a collaboration with the UW eScience Institute.
  • This work originally grew from a collaboration with NCAR during the ASP Graduate Visitor Program attended by Hillary Scannell. This project received support from the Leonardo DiCaprio Foundation, Microsoft, and the Gordon and Betty Moore Foundation.

Metadata

Release files for ocetrac 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ocetrac 0.1.7
File Size Uploaded Provenance Actions
ocetrac-0.1.7.tar.gz 31.7 MB Without provenance Details for ocetrac-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ocetrac 0.1.7
File Interpreter ABI Platform Actions
ocetrac-0.1.7-py3-none-any.whl Python 3 none any Details for ocetrac-0.1.7-py3-none-any.whl

Total release size: 31.7 MB

Release files / ocetrac-0.1.7.tar.gz

Download URL ocetrac-0.1.7.tar.gz
Size 31.7 MB
Tags Source
SHA-256 checksum
How to use checksums
632f646ba166b704f8a7254d84f64203cf0bcb0ce911571f0c27bf9e7afcdaaa
BLAKE2b-256 checksum
How to use checksums
fdc989539fa54d4d7ca34d0afab2b8a974fa23f64d93be34e2e85e715f054e43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.12

Release files / ocetrac-0.1.7-py3-none-any.whl

Download URL ocetrac-0.1.7-py3-none-any.whl
Size 42.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f83f02155a036b34aba3183956b197fafc52187ceaa72f78f272097f5e7e229
BLAKE2b-256 checksum
How to use checksums
73ad419fa186e11cfd28febd419d9431ec688dadedab772a4a93f8cb774ce29e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.12

Security for ocetrac 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page