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

utils.format_for_regrid requires uniform chunk sizes #56

Open
BSchilperoort opened this issue Nov 15, 2024 · 0 comments · May be fixed by #57
Open

utils.format_for_regrid requires uniform chunk sizes #56

BSchilperoort opened this issue Nov 15, 2024 · 0 comments · May be fixed by #57
Labels
bug Something isn't working

Comments

@BSchilperoort
Copy link
Contributor

https://github.com/xarray-contrib/xarray-regrid/blob/1425e1353b4405b4ea734ef37f78cf4538a72949/src/xarray_regrid/utils.py#L252C5-L252C37

obj.chunksizes is used here to coerce a coord back to a single chunk if that's what was passed. However, the obj.chunksizes will fail if the chunk sizes are not uniform (which can happen from loading a multi file netCDF).

A fallback here would be better than an error, which is the current behavior.

@SarahAlidoost

@BSchilperoort BSchilperoort added the bug Something isn't working label Nov 15, 2024
@slevang slevang linked a pull request Dec 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant