Skip to content

Commit

Permalink
fix references
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Sep 26, 2024
1 parent abf5efb commit 825ec20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kerchunk/hdf4.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,13 @@ def _descend_vg(self, tag, ref):
elif t == "SDD":
out["dims"] = inf2["dims"]
elif t == "NDG":
out.setdefault("extra", []).append(_dec_ndg(self, inf2))
pass # out.setdefault("extra", []).append(_dec_ndg(self, inf2))
if out.get("chunks") is True:
out["chunks"] = out["dims"]
out["refs"] = [".".join(["0"] * len(out["dims"]))] + out["refs"]
out["refs"] = [
[".".join(["0"] * len(out["dims"]))]
+ [out["refs"][0][1], out["refs"][0][2], out["refs"][0][0]]
]
return out

def _dec(self, tag, ref):
Expand Down

0 comments on commit 825ec20

Please sign in to comment.