Skip to main content

VirtualShipParcels logo'

Pixi Badge Anaconda-release PyPI - Python Version DOI unit-tests codecov


Project Owner VirtualShip Team (virtualship@uu.nl)
Development status Beta

VirtualShip is a command line simulator allowing users to plan and conduct a research expedition in a digital ocean, receiving measurements as if they were coming from actual oceanographic instruments including:

  • ADCP (currents)
  • CTD (conductivity and temperature + biogeochemical variables)
  • XBT (temperature)
  • Ship-mounted underwater measurements (salinity and temperature)
  • Surface drifters (temperature)
  • Argo float deployments (salinity and temperature)

Along the way, users will encounter realistic problems that may occur during an oceanographic expedition, requiring them to make decisions to adapt their plans accordingly. For example, delays due to equipment failures, pre-depature logistical issues or safety drills.

Installation

For a normal installation using Conda do:

conda create -n ship -c conda-forge virtualship
conda activate ship

which creates an environment named ship with the latest version of virtualship. You can replace ship with any name you like.

For a development installation (using Pixi), please follow the instructions detailed in the contributing page.

Usage

💡 Tip

See the Quickstart guide in our documentation for a step-by-step introduction to using VirtualShip.

You can run the VirtualShip via the command line interface (CLI) using the virtualship command. It has three subcommands: init, plan, and run.

$ virtualship --help
Usage: virtualship [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  init  Initialize a directory for a new expedition, with an...
  plan  Launch UI to help build expedition configuration (YAML) file.
  run   Execute the expedition simulations.
$ virtualship init --help
Usage: virtualship init [OPTIONS] PATH

  Initialize a directory for a new expedition, with an expedition.yaml file.

  If --mfp-file is provided (and --start-date is also provided), it will
  generate the expedition.yaml from the MPF file instead.

Options:
  --from-mfp TEXT                 Initialise a project from an exported xlsx
                                  file from NIOZ' Marine Facilities Planning
                                  tool (specifically the "Export Cruise Data"
                                  option). User edits may be required after
                                  initialisation.
  --start-date [%Y-%m-%d %H:%M:%S|%Y-%m-%d]
                                  The departure/start date of the expedition
                                  (required when using --from-mfp). Expected
                                  format: 'YYYY-MM-DD HH:MM:SS' (with quotes,
                                  e.g., '2023-10-20 01:00:00'). If only the
                                  date is provided, the time will default to
                                  00:00:00.
  --help                          Show this message and exit.
$ virtualship plan --help
Usage: virtualship plan [OPTIONS] PATH

  Launch UI to help build expedition configuration (YAML) file.

  Should you encounter any issues with using this tool, please report an issue
  describing the problem to the VirtualShip issue tracker at:
  https://github.com/OceanParcels/virtualship/issues"

Options:
  --help  Show this message and exit.
$ virtualship run --help
Usage: virtualship run [OPTIONS] PATH

  Execute the expedition simulations.

Options:
  --from-data TEXT  Use pre-downloaded data, saved to disk, for expedition,
                    instead of streaming directly via Copernicus Marine
                    Assumes all data is stored in prescribed directory, and
                    all variables (as listed below) are present. Required
                    variables are: {'phyc', 'o2', 'so', 'uo', 'po4', 'thetao',
                    'no3', 'vo', 'chl', 'ph', 'nppv'} Assumes that variable
                    names at least contain the standard Copernicus Marine
                    variable name as a substring. Will also take the first
                    file found containing the variable name substring. CAUTION
                    if multiple files contain the same variable name
                    substring.
  --help            Show this message and exit.

For examples of VirtualShip simulation output post-processing, see the tutorials section of our documentation.

Input data

The code is written to work with A-grid ocean data from the Copernicus Marine Service.

Source code

The code for this project is hosted on GitHub.

Contributors

All contributions are welcome! See the contributing page in our documentation to see how to get involved. Image made with contrib.rocks.

Metadata

Release files for virtualship 1.0.0

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

Source distribution (sdist)

Source distribution for virtualship 1.0.0
File Size Uploaded Provenance Actions
virtualship-1.0.0.tar.gz 184.7 kB With provenance Details for virtualship-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 276.4 kB

Release files / virtualship-1.0.0.tar.gz

Download URL virtualship-1.0.0.tar.gz
Size 184.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3fb58dcb9b64ea926db32ed9a92b51c5b0244baa647b660585b5b0afe03d733f
BLAKE2b-256 checksum
How to use checksums
59db5a08e8274e5bdd5f2160abde87d9ddce32172955b0b256695c9fd300f16c
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 Oct 21, 2026.

Transparency log

Release files / virtualship-1.0.0-py3-none-any.whl

Download URL virtualship-1.0.0-py3-none-any.whl
Size 91.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c6981e10de6823dfd73dbfed7ed40f5d2986bcf63436e254112110fbf4c3ce9
BLAKE2b-256 checksum
How to use checksums
a62e3ae0d0cffa59426fca5fcd3e3bc84de1bcbebdf77b1b023347ab6fd1ad13
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 Oct 21, 2026.

Transparency log

Security for virtualship 1.0.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for virtualship-1.0.0.tar.gz

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 Oct 21, 2026.

Transparency log

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