pangeo_fish.helpers.predict_positions#
- pangeo_fish.helpers.predict_positions(*, ds: Dataset | None = None, target_root: str | None = None, storage_options: dict, chunks: dict, track_modes=['mean', 'mode'], additional_track_quantities=['speed', 'distance'], save=True, **kwargs)#
High-level helper function for predicting fish’s positions and generating the consequent trajectories. It futhermore saves the latter under
states.zarrandtrajectories.parq.Warning
target_rootmust not end with “/”.- Parameters:
target_root (
str) – Path to a folder that must contain a foldercombined.zarrand the fileparameters.jsonstorage_options (
dict) – Additional information forxarrayto open the.zarrarraychunks (
dict) – Chunk size to load the xarray.Datasetcombined.zarrtrack_modes (
listofstr, default:[``”mean”, ``"mode"]) – Options for decoding trajectories.additional_track_quantities (
listofstr, default:[``”speed”, ``"distance"]) – Additional quantities to compute from the decoded tracks.save (
bool, default:True) – Whether to save thestatesdistribution and the trajectories.
- Returns:
states (
xarray.Dataset) – A geolocation model, i.e., positional temporal probabilitiestrajectories (
movingpandas.TrajectoryCollection) – The tracks decoded from states