Skip to content

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

Open
erikvansebille wants to merge 2 commits into
Parcels-code:mainfrom
erikvansebille:warning_zarr_validate_model
Open

Adding a warning when changing data with zarr backend#2785
erikvansebille wants to merge 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant