Skip to main content

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

  1. Copy ladim.yaml and particle.rls from the IBM subpackage of interest into the working directory.
  2. Make desired changes to the yaml and rls files. More detailed instructions are found in the README.md file within the subpackage.
  3. Run ladim and the output is written to out.nc.

Contribute

To add new plugins, contact the maintainer of the ladim_plugins repository. A properly structured IBM subpackage has the following ingredients:

  1. A file __init__.py containing the statement from .ibm import IBM
  2. The IBM module itself, named ibm.py
  3. A README.md file containing instructions for use
  4. A simple test example. This includes a ladim.yaml configuration file, a particles.rls release file, a forcing.nc forcing file (may be copied from another subpackage), and a ladim output file named out.nc.
  5. Optionally a test example for generating release files. This includes a release.yaml configuration file and an output release file named out.rls.
  6. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ladim_plugins-2.10.0.tar.gz (23.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ladim_plugins-2.10.0-py3-none-any.whl (23.6 MB view details)

Uploaded Python 3

File details

Details for the file ladim_plugins-2.10.0.tar.gz.

File metadata

  • Download URL: ladim_plugins-2.10.0.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

Hashes for ladim_plugins-2.10.0.tar.gz
Algorithm Hash digest
SHA256 838d03caeadf341350f4e42af60eeb928773aefe98655a308439ccbcb72e39d7
MD5 158ccf4175a437917127e4083effc501
BLAKE2b-256 de56d44b1237493ea59dc2548a64f9e2a11a858a907170fddf660873cf9eba92

See more details on using hashes here.

Provenance

The following attestation bundles were made for ladim_plugins-2.10.0.tar.gz:

Publisher: pypi.yml on pnsaevik/ladim_plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ladim_plugins-2.10.0-py3-none-any.whl.

File metadata

  • Download URL: ladim_plugins-2.10.0-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

Hashes for ladim_plugins-2.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebac5e944bce6d88df10f79943793806df158bdca178f0ee814e4b2ffdc14f90
MD5 0a63a05bc87c98364fda191a41824528
BLAKE2b-256 cb1af1107c86187925fcac661988ea20cfbb79d76f787aed6d03ffb57aba632d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ladim_plugins-2.10.0-py3-none-any.whl:

Publisher: pypi.yml on pnsaevik/ladim_plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page