Skip to content

Adding a warning when changing data with zarr backend - #2785

Merged
erikvansebille merged 2 commits into
Parcels-code:mainfrom
erikvansebille:warning_zarr_validate_model
Aug 3, 2026
Merged

Adding a warning when changing data with zarr backend#2785
erikvansebille merged 2 commits into
Parcels-code:mainfrom
erikvansebille:warning_zarr_validate_model

Conversation

@erikvansebille

Copy link
Copy Markdown
Member

Description

In #2762, we added an option to validate field data in model.py - for example by changing land from np.nan to zero. However, this could convert a Zarr-based to a NumPy array.

This PR throws a warning when the validate_field_data function is called with a dataset that has Zarr-based variables; so that at least users know they can also create the FieldSet with skip_field_data_validation=True

Checklist

AI Disclosure

None

@erikvansebille
erikvansebille merged commit 3f42f52 into Parcels-code:main Aug 3, 2026
17 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants