home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 515654610

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-515654610 https://api.github.com/repos/pydata/xarray/issues/3034 515654610 MDEyOklzc3VlQ29tbWVudDUxNTY1NDYxMA== 32473508 2019-07-27T05:41:59Z 2019-07-27T08:15:07Z CONTRIBUTOR

@jfpiolle Would you please share the files, or the code generating them?

As far as I understand we cannot have an attribute of type list. The closest thing I can think of is a variable length type as below

from netCDF4 import Dataset f = Dataset("example.nc","w") vlen_t = f.createVLType(numpy.int32, "phony_vlen") x = f.createDimension("x",3) y = f.createDimension("y",4) vlvar = f.createVariable("phony_vlen_var", vlen_t, ("y","x")) data =[] for n in range(0, len(x)*len(y)): data.append(numpy.arange(random.randint(1,10),dtype="int32")) data = numpy.reshape(data,(len(y),len(x))) vlvar[:] = data f.close() Using files generated this way, I did not get an error using mf_dataset.

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