home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 473178870

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/2811#issuecomment-473178870 https://api.github.com/repos/pydata/xarray/issues/2811 473178870 MDEyOklzc3VlQ29tbWVudDQ3MzE3ODg3MA== 5821660 2019-03-15T06:55:28Z 2019-03-15T06:55:43Z MEMBER

This has also implications for the output using .to_netcdf(). If we read a netcdf dataset (same structure as above) with xr.open_dataset and then do the above xr.concat and save the resulting dataset with .to_netcdf then the dimensions of the dataset will be reversed in the resulting file.

Now, as the xr.concat operation need to change the length of the dimension ('c', which is not allowed by netCDF library), this is done by creating a new dataset. In this creation process xarray obviously uses the alphanumerically sorted representation of the source dataset dimension's and not the creation order as in the source dataset.

I did not find any hints in the docs on that topic. I need to preserve the original dimension ordering as declared in the source dataset. How can I achieve this using xarray?

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