Skip to content
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

Parser is too strict with meta data. #131

Open
WillyChap opened this issue Nov 9, 2024 · 1 comment
Open

Parser is too strict with meta data. #131

WillyChap opened this issue Nov 9, 2024 · 1 comment

Comments

@WillyChap
Copy link
Collaborator

I propose we switch to a convention like this, because the values are what is importnat and not the file metadata:

(ds_upper_air['latitude'] == ds_static.coords['latitude']).all()

the current system

ds_upper_air['latitude'].equals(ds_static.coords['latitude'])

throws an error if meta data is not preserved.

@yingkaisha
Copy link
Collaborator

@WillyChap I think if you merge two xr.datasets, their coordinates must be strictly equal, otherwise xarray will duplicate coordinate dims.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants