Plugins for LADiM
This repository contains plugins for the Lagrangian Advection and Diffusion Model (LADiM), which is the particle tracking software used at the Institute of Marine Research (IMR). (https://github.com/bjornaa/ladim)
Documentation and examples are provided for each model.
List of available plugins
| Name | Description |
|---|---|
| chemicals | Passive tracer |
| egg | Buoyant fish eggs |
| lunar_eel | Glass eels with lunar compass |
| nk800met | Module for utilizing forcing data from the met.no thredds server |
| release | General module for creating release files |
| salmon_lice | Salmon lice larvae |
| sandeel | Sand eel larvae |
| sedimentation | Sinking particles |
| utils | General utility functions for IBMs |
Installation
Install using the following command
pip install ladim_plugins
The installation can be tested with the command
pytest -Wignore --pyargs ladim_plugins
This command will run ladim on each of the plugins, using the sample ladim.yaml
and particle.rls files found in the subpackage folders. The tests succeed if
ladim is present on the system, ladim_plugins is installed correctly, and the
output from the ladim runs matches exactly with the out.nc files found in the
subpackage folders.
Usage
- Copy
ladim.yamlandparticle.rlsfrom the IBM subpackage of interest into the working directory. - Make desired changes to the
yamlandrlsfiles. More detailed instructions are found in theREADME.mdfile within the subpackage. - Run
ladimand the output is written toout.nc.
Contribute
To add new plugins, contact the maintainer of the ladim_plugins repository. A
properly structured IBM subpackage has the following ingredients:
- A file
__init__.pycontaining the statementfrom .ibm import IBM - The IBM module itself, named
ibm.py - A
README.mdfile containing instructions for use - A simple test example. This includes a
ladim.yamlconfiguration file, aparticles.rlsrelease file, aforcing.ncforcing file (may be copied from another subpackage), and a ladim output file namedout.nc. - Optionally a test example for generating release files. This includes a
release.yamlconfiguration file and an output release file namedout.rls. - Optionally additional automated test modules, named
test_*.py
An ideal test example should be quick to run and easy to analyze, but still be complicated enough to demonstrate most capabilities of the IBM model. To achieve this, it may be a good idea to use only a few time steps and a few particles at selected positions. In some cases it may also be necessary to specify somewhat unrealistic particle parameters to demonstrate certain features.
The test is run using the command pytest -Wignore --pyargs ladim_plugins. The
test succeeds if ladim is able to run the examples, and the output matches the
contents of out.nc / out.rls.
Metadata
Release files for ladim-plugins 2.10.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ladim_plugins-2.10.3.tar.gz | 23.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ladim_plugins-2.10.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.1 MB
Release files / ladim_plugins-2.10.3.tar.gz
| Download URL | ladim_plugins-2.10.3.tar.gz |
|---|---|
| Size | 23.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f327bebce2e98b4599414a576e7d81632fe6b0506bc0dc091f2d28fd298b496d
|
|
BLAKE2b-256 checksum How to use checksums |
7bdb26737c4c76b58dd00f0fb8c3183571f361d76662ac7fcf9f8284b0024c36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / ladim_plugins-2.10.3-py3-none-any.whl
| Download URL | ladim_plugins-2.10.3-py3-none-any.whl |
|---|---|
| Size | 23.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b44fddf0544d3265837a3c170e4a171b4a775f9890b324fccc2976ef8c09eaff
|
|
BLAKE2b-256 checksum How to use checksums |
a6df276a1ec6749542ff1bae5e8375ee2eeb02753cde1a1ef27b305bc5716bec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency log