home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 830507003

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
830507003 MDU6SXNzdWU4MzA1MDcwMDM= 5028 Saving zarr to remote location lower cases all data_vars 17162724 closed 0     5 2021-03-12T21:40:37Z 2021-06-17T12:53:22Z 2021-06-15T21:37:15Z CONTRIBUTOR      

What happened:

I saved a zarr store to a remote location (s3) and read it again and realized the name of the data variables (DataArrays) had reverted to lower case

What you expected to happen:

This does not happen when you save the zarr store locally

Minimal Complete Verifiable Example:

```python ds = xr.tutorial.open_dataset("air_temperature") ds = ds.rename({'air': "AIR"})

Save to local

ds.to_zarr("ds.zarr")

Save to remote

ds.to_zarr("s3://BUCKET/ds.zarr")

Read local

xr.open_dataset("ds.zarr", engine="zarr").data_vars

Data variables:

AIR (time, lat, lon) float32 ...

Read remote

xr.open_dataset("s3://BUCKET/ds.zarr", engine="zarr").data_vars

Data variables:

air (time, lat, lon) float32 ...

```

Anything else we need to know?:

Environment:

Output of <tt>xr.show_versions()</tt> INSTALLED VERSIONS ------------------ commit: None python: 3.8.8 | packaged by conda-forge | (default, Feb 20 2021, 16:22:27) [GCC 9.3.0] python-bits: 64 OS: Linux OS-release: 5.4.0-1009-aws machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: C.UTF-8 LOCALE: en_US.UTF-8 libhdf5: 1.10.6 libnetcdf: 4.7.4 xarray: 0.17.0 pandas: 1.2.3 numpy: 1.20.1 scipy: 1.5.3 netCDF4: 1.5.6 pydap: installed h5netcdf: 0.10.0 h5py: 3.1.0 Nio: None zarr: 2.6.1 cftime: 1.4.1 nc_time_axis: None PseudoNetCDF: None rasterio: 1.2.1 cfgrib: 0.9.8.5 iris: None bottleneck: 1.3.2 dask: 2021.03.0 distributed: 2021.03.0 matplotlib: 3.3.4 cartopy: 0.18.0 seaborn: 0.11.1 numbagg: None pint: 0.16.1 setuptools: 49.6.0.post20210108 pip: 21.0.1 conda: None pytest: 6.2.2 IPython: 7.21.0 sphinx: None ​
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5028/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 5 rows from issue in issue_comments
Powered by Datasette · Queries took 321.277ms · About: xarray-datasette