Skip to content

Load no-time vars as numpy arrays in to_windowed_arrays#2752

Merged
erikvansebille merged 10 commits into
Parcels-code:mainfrom
erikvansebille:fix-2751-windowed-arrays
Jul 16, 2026
Merged

Load no-time vars as numpy arrays in to_windowed_arrays#2752
erikvansebille merged 10 commits into
Parcels-code:mainfrom
erikvansebille:fix-2751-windowed-arrays

Conversation

@erikvansebille

@erikvansebille erikvansebille commented Jul 14, 2026

Copy link
Copy Markdown
Member

Description

This PR fixes #2751, by calling a .compute() on variables that have a mockT dimension (i.e. no time), thereby speeding up the fieldset.to_windowed_arrays() method.

It also loads lon and lat explicitly, which are not dimensions but variables in a curvilinear grid.

Finally, it adds information about rhetorical backend (Numpy, Dask or WindowedArray) to each field in fieldset.describe()

Checklist

AI Disclosure

None

To show which fields are WindowedArrays, which are Dask and which are NumPy
Comment thread tests/test_fieldset.py
@erikvansebille erikvansebille merged commit 091d2ae into Parcels-code:main Jul 16, 2026
17 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Jul 16, 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.

fieldset.to_windowed_arrays is slow on CROCO tutorial - not loading time-invariant variables

2 participants