pangeo_fish.helpers.plot_trajectories

pangeo_fish.helpers.plot_trajectories#

pangeo_fish.helpers.plot_trajectories(*, target_root: str, track_modes: list[str], storage_options: dict, save_html=True, **kwargs)#

Read decoded trajectories and plots an interactive visualization. Optionally, the plot can be saved as a HTML file.

Warning

target_root must not end with “/”.

Parameters:
  • target_root (str) – Path to a folder that must contain a trajectory collection trajectories.parq

  • track_modes (list of str) – Names of the tracks

  • storage_options (dict) – Additional information for xarray to open the .zarr array

  • save_html (bool, default: True) – Whether to save the plot (under {target_root}/trajectories.html)

Returns:

plot (holoviews.Layout) – Interactive plot of the trajectories