home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 50613204

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
50613204 MDExOlB1bGxSZXF1ZXN0MjUzMTk1Njc= 282 Serialize non-index coordinates to netCDF files 1217238 closed 0   836999 0 2014-12-02T05:11:23Z 2014-12-07T02:44:14Z 2014-12-07T02:44:11Z MEMBER   0 pydata/xarray/pulls/282

Fixes #231

This PR ensures non-index coordinates can be roundtripped to netCDF and back by using the CF convention of the 'coordinates' attribute on a "data variable".

In cases where there are no data variables available, we fall back to the (extended, non-CF) convention of saving 'coordinates' as a global attribute.

I also added the xray.decode_cf function to the API. This function can decode either datasets or datastores into decoded datasets, which is handy, for example, if a dataset is serialized according to CF conventions but already in memory (e.g., saved in JSON).

@akleeman: I could use some guidance from you on want to do about test_roundtrip_coordinates on TestCFEncodedDataStore. I am tentatively skipping it, but it would be nice to get it working. To do so will require some tweaks to the API for the Datastore.load method.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/282/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

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