home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 516776060

This data as json

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/3034#issuecomment-516776060 https://api.github.com/repos/pydata/xarray/issues/3034 516776060 MDEyOklzc3VlQ29tbWVudDUxNjc3NjA2MA== 11731042 2019-07-31T09:38:02Z 2019-07-31T09:38:02Z NONE

@HasanAhmadQ7 You can have attributes of type list. See for instance this code:

``` from netCDF4 import Dataset import numpy

f = Dataset("example.nc","w") x = f.createDimension("x",3) vlvar = f.createVariable("test_var", numpy.int32, ("x"))

here create an attribute as a list

vlvar.test_attr = ["string a", "string b"]

vlvar[:] = numpy.arange(3) f.close() ```

Having files with different values for the test_attr attribute will cause open_mfdataset to fail.

thanks for addressing this!

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  457874038
Powered by Datasette · Queries took 1.408ms · About: xarray-datasette