home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 689034023

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/4412#issuecomment-689034023 https://api.github.com/repos/pydata/xarray/issues/4412 689034023 MDEyOklzc3VlQ29tbWVudDY4OTAzNDAyMw== 2448579 2020-09-08T17:42:41Z 2020-09-08T17:42:41Z MEMBER

Not at the moment.

I think we should add an xr.encode_cf that wraps conventions.cf_encoder (this may have already come up in the "flexible backends" discussions). This would parallel xr.decode_cf

https://github.com/pydata/xarray/blob/66259d1853b85590bfbf6640fdfb868843812312/xarray/conventions.py#L740-L793

It'll also need to wrap this logic: https://github.com/pydata/xarray/blob/66259d1853b85590bfbf6640fdfb868843812312/xarray/backends/api.py#L1113-L1127

For simple use cases, you could write a small wrapper for .cf_encoder that takes datasets and returns datasets and it should work just fine (Look at conventions.decode_cf).

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