Skip to content

Fix Argo floats getting stuck when using local data - #400

Merged
j-atkins merged 6 commits into
mainfrom
argo-local-data
Sep 29, 2026
Merged

j-atkins merged 6 commits into
mainfrom
argo-local-data

Conversation

@j-atkins

Copy link
Copy Markdown
Collaborator

This PR prevents Argo Floats from getting stuck in phase 2 when using local data (i.e. virtualship run --from-data) by mirroring the copernicusmarine coordinates_selection_method="outside" method in _get_local_ds in base.py.

Argo float simulation will now also raise an error if data is ingested with incomplete depth levels for the prescribed max_depth, previously this was a silent bug.

Also includes updates to the docs for guidance on depth levels to ensure are included when using VirtualShip with pre-downloaded/local data.

Adds tests for the replica coordinates_selection_method="outside" method, plus for making sure the new error messaging raises.

Closes #399

@erikvansebille erikvansebille left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - good catch!

@j-atkins
j-atkins merged commit 1814b31 into main Sep 29, 2026
12 checks passed
@j-atkins
j-atkins deleted the argo-local-data branch September 29, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Argo floats can get stuck in phase 2 with --from-data

2 participants