home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 307857984

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
307857984 MDU6SXNzdWUzMDc4NTc5ODQ= 2008 Cannot save netcdf files with non-standard calendars 12307589 closed 0     6 2018-03-23T00:11:29Z 2018-05-16T19:50:40Z 2018-05-16T19:50:40Z CONTRIBUTOR      

Code Sample, a copy-pastable example if possible

Using noleap.nc from the following zip: noleap.zip

python import xarray as xr ds = xr.open_dataset('noleap.nc') ds.to_netcdf('noleap_new.nc')

Problem description

A long traceback gets printed out (sorry, I can't copy it properly from my current machine) that ends in TypeError: float() argument must be a string or a number, not 'netcdftime._netcdftime.DatetimeNoLeap'

Expected Output

Obviously, we expect the file to save. If xarray can decode the times, it should be able to encode them.

Output of xr.show_versions()

AttributeError: module 'xarray' has no attribute 'show_versions'

I'm running xarray 0.9.1, numpy 1.12.1, pandas 0.21.0, and netCDF4 1.2.8.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2008/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
  • 6 rows from issue in issue_comments
Powered by Datasette · Queries took 0.656ms · About: xarray-datasette