Plugins for LADiM
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ladim_plugins-2.9.3.tar.gz.
File metadata
- Download URL: ladim_plugins-2.9.3.tar.gz
- Upload date:
- Size: 23.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76df15e7a5b1dbb96d90a3954132e85190c305b8ab0c66489957daf955eb33d6
|
|
| MD5 |
a4cd18becfc70a30ea04fed42ebc7f45
|
|
| BLAKE2b-256 |
cbcc9992331dbd0f249232a6eca57c30abf46bfb1c062295c111beda57793d4a
|
Provenance
The following attestation bundles were made for ladim_plugins-2.9.3.tar.gz:
Publisher:
pypi.yml on pnsaevik/ladim_plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ladim_plugins-2.9.3.tar.gz -
Subject digest:
76df15e7a5b1dbb96d90a3954132e85190c305b8ab0c66489957daf955eb33d6 - Sigstore transparency entry: 910349223
- Sigstore integration time:
-
Permalink:
pnsaevik/ladim_plugins@aa7bd4ca692af76c16956536e68483e5d38e29a4 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/pnsaevik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@aa7bd4ca692af76c16956536e68483e5d38e29a4 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ladim_plugins-2.9.3-py3-none-any.whl.
File metadata
- Download URL: ladim_plugins-2.9.3-py3-none-any.whl
- Upload date:
- Size: 23.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d51b695638b1902adfab35d5e11cfc7819852bce6163021c999eea69eb9d88c3
|
|
| MD5 |
02eecbfa3fcd340a032301af896fb5e8
|
|
| BLAKE2b-256 |
006f673f8133341e2ab98983461eebffcfae14d4602350e820ffe95e9d081d1b
|
Provenance
The following attestation bundles were made for ladim_plugins-2.9.3-py3-none-any.whl:
Publisher:
pypi.yml on pnsaevik/ladim_plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ladim_plugins-2.9.3-py3-none-any.whl -
Subject digest:
d51b695638b1902adfab35d5e11cfc7819852bce6163021c999eea69eb9d88c3 - Sigstore transparency entry: 910349226
- Sigstore integration time:
-
Permalink:
pnsaevik/ladim_plugins@aa7bd4ca692af76c16956536e68483e5d38e29a4 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/pnsaevik
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@aa7bd4ca692af76c16956536e68483e5d38e29a4 -
Trigger Event:
workflow_dispatch
-
Statement type: