lair.hrrr.create_s3_chunk_url#

lair.hrrr.create_s3_chunk_url(zarr_id, chunk_id, prefix=False)[source]#

Create the s3 chunk url for a zarr id.

  • Contains just the data for the chunk (no metadata)

  • Current APIs (zarr, xarray) don’t support reading zarr data by chunks, so we have to write relatively low-level code to load data on this level

Parameters:
  • zarr_id (ZarrId) – ZarrId instance

  • chunk_id (int # TODO check this) – chunk id

  • prefix (bool) – include prefix

Returns:

str – s3 chunk url

Return type:

str