html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/4822#issuecomment-762438483,https://api.github.com/repos/pydata/xarray/issues/4822,762438483,MDEyOklzc3VlQ29tbWVudDc2MjQzODQ4Mw==,40218891,2021-01-18T19:39:34Z,2021-01-18T19:39:34Z,NONE,"You might be right. Adding ``-k nc4`` works when *string* is removed from attribute specification. If it is present, the error is as before: ``AttributeError: 'numpy.ndarray' object has no attribute 'split'``. However, after changing my AWS script to ``` import s3fs import xarray as xr s3 = s3fs.S3FileSystem(anon=True) s3path = 's3://wrf-se-ak-ar5/gfdl/hist/daily/1988/WRFDS_1988-04-23.nc' ds = xr.open_dataset(s3.open(s3path), engine='scipy') print(ds) ``` the error is ``TypeError: Error: None is not a valid NetCDF 3 file``. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,787947436 https://github.com/pydata/xarray/issues/4822#issuecomment-762423707,https://api.github.com/repos/pydata/xarray/issues/4822,762423707,MDEyOklzc3VlQ29tbWVudDc2MjQyMzcwNw==,40218891,2021-01-18T19:03:19Z,2021-01-18T19:03:19Z,NONE,"This is how I did it: ``` $ ncdump /tmp/x.nc netcdf x { dimensions: x = 1 ; y = 1 ; variables: int foo(y, x) ; foo:coordinates = ""x y"" ; data: foo = 0 ; } $ rm x.nc $ ncgen -o x.nc < x.cdl $ python -c ""import xarray as xr; ds = xr.open_dataset('/tmp/x.nc', engine='h5netcdf'); print(ds)"" ``` Engine *netcdf4* works fine, with *string* or without. My original code retrieving data from AWS: ``` import s3fs import xarray as xr s3 = s3fs.S3FileSystem(anon=True) s3path = 's3://wrf-se-ak-ar5/gfdl/hist/daily/1988/WRFDS_1988-04-23.nc' ds = xr.open_dataset(s3.open(s3path)) print(ds) ``` Adding ``decode_cf=False`` is a workaround. All attributes are arrays: ``` Attributes: contact: ['rtladerjr@alaska.edu'] info: ['Alaska CASC'] data: ['Downscaled GFDL-CM3'] format: ['version 2'] date: ['Mon Jul 1 15:17:16 AKDT 2019'] ``` ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,787947436 https://github.com/pydata/xarray/issues/4822#issuecomment-762376418,https://api.github.com/repos/pydata/xarray/issues/4822,762376418,MDEyOklzc3VlQ29tbWVudDc2MjM3NjQxOA==,40218891,2021-01-18T17:12:53Z,2021-01-18T17:19:53Z,NONE,Dropping *string* changes error to ``Unable to open file (file signature not found)``. This issue popped up while reading data from https://registry.opendata.aws/wrf-se-alaska-snap/ ,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,787947436