home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 829023263

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/5223#issuecomment-829023263 https://api.github.com/repos/pydata/xarray/issues/5223 829023263 MDEyOklzc3VlQ29tbWVudDgyOTAyMzI2Mw== 6503378 2021-04-29T07:59:55Z 2021-05-02T09:03:40Z NONE

@jvail could you provide a small reproducible example?

Sure, thank you. I'll put a notebook together

I hope this helps: https://github.com/jvail/xarray-simlab/blob/test_encoding_netcdf/notebooks/test_encoding_netcdf.ipynb

---- edit If I serialize to a dict after popping the _FillValue and then back it seems to work (both the datetime and NaT encoding) unless the datetime64 variable has at least one none 'Nat'.

xr.Dataset.from_dict(ds.to_dict()).to_netcdf('nc', engine='netcdf4')

Removing the entire encoding obj from the variable with dtype datetime64 seems to work as well. However, no idea, if that is a good idea.

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