particle_tracking_manager.models.opendrift.utils

Functions

apply_known_ocean_model_specific_changes(ds, ...)

Apply ocean model specific changes to the dataset.

apply_user_input_ocean_model_specific_changes(ds, ...)

Apply user input ocean model specific changes to the dataset.

find_json_files_in_date_range(fs2, ...)

Find JSON files in a date range and return their paths.

make_ciofs_kerchunk(start, end, name)

_summary_

make_nwgoa_kerchunk(start, end[, name])

_summary_

narrow_dataset_to_simulation_time(ds, ...)

Narrow the dataset to the simulation time.

particle_tracking_manager.models.opendrift.utils.apply_known_ocean_model_specific_changes(ds, ocean_model, use_static_masks)[source]

Apply ocean model specific changes to the dataset.

This includes renaming variables, adding variables, etc.

particle_tracking_manager.models.opendrift.utils.apply_user_input_ocean_model_specific_changes(ds, use_static_masks)[source]

Apply user input ocean model specific changes to the dataset.

This includes renaming variables, adding variables, etc.

For now, assume user has dropped variables ahead of time.

particle_tracking_manager.models.opendrift.utils.find_json_files_in_date_range(fs2, make_glob_from_year, start, end, filename_date_format)[source]

Find JSON files in a date range and return their paths.

particle_tracking_manager.models.opendrift.utils.make_ciofs_kerchunk(start, end, name)[source]

_summary_

Parameters:
  • start (datetime) – Start and end time of the simulation.

  • end (datetime) – Start and end time of the simulation.

Returns:

_description_

Return type:

kerchunk output

particle_tracking_manager.models.opendrift.utils.make_nwgoa_kerchunk(start, end, name='NWGOA')[source]

_summary_

Parameters:
  • start (datetime) – Start and end time of the simulation.

  • end (datetime) – Start and end time of the simulation.

Returns:

_description_

Return type:

kerchunk output

particle_tracking_manager.models.opendrift.utils.narrow_dataset_to_simulation_time(ds, start_time, end_time)[source]

Narrow the dataset to the simulation time.