Skip to content

Have ZarrToZarr write to json in the function? #441

Open
@raybellwaves

Description

@raybellwaves

Currently one can write to json outside of the function

zarrchunks = kerchunk.zarr.ZarrToZarr(uri)
with open(out_json, "wb") as f:
    f.write(ujson.dumps(zarrchunks))

Given this is a common operation it could be added to single_zarr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions