virtualship package#

Code for the Virtual Ship Classroom, where Marine Scientists can combine Copernicus Marine Data with an OceanParcels ship to go on a virtual expedition.

Subpackages#

Submodules#

virtualship.errors module#

exception virtualship.errors.CheckpointError#

Bases: RuntimeError

An error in the checkpoint.

exception virtualship.errors.ConfigError#

Bases: RuntimeError

An error in the config.

exception virtualship.errors.CredentialFileError#

Bases: Exception

Exception raised for errors in the input file format.

exception virtualship.errors.IncompleteDownloadError#

Bases: Exception

Exception raised for incomplete downloads.

exception virtualship.errors.ScheduleError#

Bases: RuntimeError

An error in the schedule.

virtualship.utils module#

virtualship.utils.get_example_config() str#

Get the example configuration file.

virtualship.utils.get_example_schedule() str#

Get the example schedule file.

virtualship.utils.load_coordinates(file_path)#

Loads coordinates from a file based on its extension.

virtualship.utils.load_static_file(name: str) str#

Load static file from the virtualship.static module by file name.

virtualship.utils.mfp_to_yaml(coordinates_file_path: str, yaml_output_path: str)#

Generates a YAML file with spatial and temporal information based on instrument data from MFP excel file.

Parameters:
  • (str) (- excel_file_path)

  • function (The)

  • file. (1. Reads instrument and location data from the Excel)

  • present. (2. Determines the maximum depth and buffer based on the instruments)

  • adjustments. (3. Ensures longitude and latitude values remain valid after applying buffer)

  • information. (4. returns the yaml)

virtualship.utils.validate_coordinates(coordinates_data)#