Skip to content

Support for Kerchunk data sources #100

@zachsa

Description

@zachsa

Hello,

Would it be feasible to support kerchunk-output as a data source?

As far as I understand, Kerchunk is a tool that provides a JSON-formatted breakdown of byte offsets of a NetCDF v4 file.
To illustrate, here's an example of a Kerchunk-generated JSON file.

Though I'm not very familiar with the technical aspects of Zarr directories or Kerchunk, I can see some similarities between the two. But it doesn't look like the Kerchunked JSON would be equivalent from a client/JavaScript perspective of a Zarr directly if I were to point to it, for example:

<Map>
  <Raster
    colormap={colormap}
    clim={[-20, 30]}
    source="https://mnemosyne.somisana.ac.za/somisana/algoa-bay/5-day-forecast/202307/20230712-hourly-avg-t3.kerchunk.json"
    variable={'temperature'}
    dimensions={['depth', 'y', 'x', 'time']}
    selector={{ depth: 200, time: 120 }}
  />
</Map>

Please let me know if this is already supported, or if not, whether this would be a simple/complex task. The benefit of supporting Kerchunk output rather than Zarrs directly is that it would save us around 1TB of space per year (assuming Zarrs are of a similar size to NetCDF v4 files) as we also need to store NetCDF files.

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