-
Notifications
You must be signed in to change notification settings - Fork 82
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
MultiZarrToZarr append method - coo_map not working as expected #479
Comments
The following should fix the first issue: --- a/kerchunk/combine.py
+++ b/kerchunk/combine.py
@@ -212,7 +212,7 @@ class MultiZarrToZarr:
)
mzz.coos = {}
for var, selector in mzz.coo_map.items():
- if selector.startswith("cf:") and "M" not in mzz.coo_dtypes.get(var, ""):
+ if isinstance(selector, str) and selector.startswith("cf:") and "M" not in mzz.coo_dtypes.get(var, ""):
import cftime
import datetime As for your question: it would be totally reasonable to have For the final issue with ServerDisconnect: this is probably happening during inlining of values. The backend HTTPFileSystem has a few ways to limit the number of concurrent connections allowed. Probably the easierst is to set the following
where |
Sure, Thanks Martin. Can you just open a PR for the changes for combine method and merge them. and any timeline on the feature request for the append(), when can it be pushed ? Also, let me try the fsspec config as well, for the server requests. |
I'm not sure when I'll get to it, but you can keep pinging me :) |
I have approximately 4000 kerchunk JSON files in the mentioned directory, all of which require MultiZarrToZarr processing to create a single reference file, and all require http calls. When I call the MultiZarrToZarr.translate() method on all of them at once, I encounter a server disconnected error. As a quick workaround, I thought of appending to the reference file in batches. However, I came across an error when attempting to append.
It seems that coo_map is not working as expected for the append operation
Additionally, I'm wondering if there's a way to append directly to an empty path, rather than first creating a reference file and then appending to it.
Could you please provide guidance on how to improve this approach?
The text was updated successfully, but these errors were encountered: