Description
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:
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 xr.show_versions()
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