Skip to content

Instantly share code, notes, and snippets.

@mdsumner
Last active December 17, 2024 03:21
Show Gist options
  • Save mdsumner/9832cf1438b79190cadce2dd89a4407b to your computer and use it in GitHub Desktop.
Save mdsumner/9832cf1438b79190cadce2dd89a4407b to your computer and use it in GitHub Desktop.

running the quickstart

air_temp.to_zarr(repo.store, group='air_temperature')
/workenv/lib/python3.11/site-packages/xarray/core/dataset.py:2621: SerializationWarning: saving variable None with floating point data as an integer dtype without any _FillValue to use for NaNs
  return to_zarr(  # type: ignore[call-overload,misc]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/workenv/lib/python3.11/site-packages/xarray/core/dataset.py", line 2621, in to_zarr
    return to_zarr(  # type: ignore[call-overload,misc]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workenv/lib/python3.11/site-packages/xarray/backends/api.py", line 2184, in to_zarr
    dump_to_store(dataset, zstore, writer, encoding=encoding)
  File "/workenv/lib/python3.11/site-packages/xarray/backends/api.py", line 1920, in dump_to_store
    store.store(variables, attrs, check_encoding, writer, unlimited_dims=unlimited_dims)
  File "/workenv/lib/python3.11/site-packages/xarray/backends/zarr.py", line 973, in store
    zarr.consolidate_metadata(self.zarr_group.store, **kwargs)
  File "/workenv/lib/python3.11/site-packages/zarr/convenience.py", line 1298, in consolidate_metadata
    return open_consolidated(store, metadata_key=metadata_key, path=path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workenv/lib/python3.11/site-packages/zarr/convenience.py", line 1366, in open_consolidated
    return open(store=meta_store, chunk_store=chunk_store, mode=mode, path=path, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workenv/lib/python3.11/site-packages/zarr/convenience.py", line 139, in open
    raise PathNotFoundError(path)
zarr.errors.PathNotFoundError: nothing found at path ''
rasm.to_zarr(repo.store, group='rasm')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/workenv/lib/python3.11/site-packages/xarray/core/dataset.py", line 2621, in to_zarr
    return to_zarr(  # type: ignore[call-overload,misc]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workenv/lib/python3.11/site-packages/xarray/backends/api.py", line 2184, in to_zarr
    dump_to_store(dataset, zstore, writer, encoding=encoding)
  File "/workenv/lib/python3.11/site-packages/xarray/backends/api.py", line 1920, in dump_to_store
    store.store(variables, attrs, check_encoding, writer, unlimited_dims=unlimited_dims)
  File "/workenv/lib/python3.11/site-packages/xarray/backends/zarr.py", line 973, in store
    zarr.consolidate_metadata(self.zarr_group.store, **kwargs)
  File "/workenv/lib/python3.11/site-packages/zarr/convenience.py", line 1298, in consolidate_metadata
    return open_consolidated(store, metadata_key=metadata_key, path=path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workenv/lib/python3.11/site-packages/zarr/convenience.py", line 1366, in open_consolidated
    return open(store=meta_store, chunk_store=chunk_store, mode=mode, path=path, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workenv/lib/python3.11/site-packages/zarr/convenience.py", line 139, in open
    raise PathNotFoundError(path)
zarr.errors.PathNotFoundError: nothing found at path ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment