-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dimension mismatch in MARS data #398
Comments
CC @SF-N |
Hi @juntyr, The reason for the problem is that there are two different variables here, whose geographical coordinates do not match (in fact q is on a reduced Gaussian grid, and t is a spectral field, not on a grid at all). Therefore they cannot form a nice hypercube.
You can, however, use a bit of built-in functionality from cfgrib to split the data into two datasets - one for each variable:
Alternatively, to get more control, you can use the backend kwargs to load just selected fields according to their properties, e.g.
I hope this helps! |
What happened?
xarray failed to open a GRIB file with xarray, erroring with a dimension mismatch
What are the steps to reproduce the bug?
Version
0.9.14.0
Platform (OS and architecture)
MacOS, also occurs on Pyodide
Relevant log output
Accompanying data
https://faubox.rrze.uni-erlangen.de/dl/fiVj21QV6ihsyWC8UEZYTT/_mars-bol-webmars-private-svc-blue-007-4a73a881a8d5eead47db9eff2f9935a4-LEW9gw.grib
Organisation
University of Helsinki
The text was updated successfully, but these errors were encountered: