home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 270430189

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
270430189 MDU6SXNzdWUyNzA0MzAxODk= 1680 Coordinates get transformed to variables 806256 closed 0     7 2017-11-01T19:51:34Z 2017-11-08T21:37:04Z 2017-11-08T21:37:04Z NONE      

Code Sample, a copy-pastable example if possible

To get the data to reproduce the example: aws s3 sync s3://olgabot-maca/xarray-coordinates-to-variables/ . or download this .tar.gz file.

gist with code

Problem description

When I create a dataset, I set a bunch of metadata as coordinates, not variables:

But when I reload that exact same dataset with xr.open_dataset, the coordinates have be moved into variables!!

Interestingly, I think this is happening upon dataset creation because ds.variables already has the erroneous metadata:

Expected Output

I expected the coordinates and variables to be consistent between opening and closing the file

Output of xr.show_versions()

INSTALLED VERSIONS ------------------ commit: None python: 3.6.3.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-97-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 xarray: 0.10.0rc1-2-gf83361c pandas: 0.20.3 numpy: 1.13.3 scipy: 0.19.1 netCDF4: None h5netcdf: None Nio: None bottleneck: None cyordereddict: None dask: None matplotlib: None cartopy: None seaborn: None setuptools: 36.5.0.post20170921 pip: 9.0.1 conda: None pytest: None IPython: 6.1.0 sphinx: None
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1680/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

  • 0 rows from issues_id in issues_labels
  • 7 rows from issue in issue_comments
Powered by Datasette · Queries took 0.719ms · About: xarray-datasette