Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Multiple NetCDF name constraints before Cube creation #6228

Open
trexfeathers opened this issue Nov 13, 2024 · 0 comments
Open

Multiple NetCDF name constraints before Cube creation #6228

trexfeathers opened this issue Nov 13, 2024 · 0 comments

Comments

@trexfeathers
Copy link
Contributor

✨ Feature Request

It should be possible to use this code when loading a NetCDF file, and only these 3 Cubes should be created. I.e. loading a file with 60 variables should not create 60 Cubes before constraining:

iris.load_cubes(file, ['var1', 'var2, 'var3'])

See #6223

Motivation

Currently NetCDF files with many variables are very slow to load, even if you only want a few of the variables (i.e. Cubes) to load. This is because all the Cubes must be created first before filtering can be done.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant