issue_comments: 129163306
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/pull/523#issuecomment-129163306 | https://api.github.com/repos/pydata/xarray/issues/523 | 129163306 | MDEyOklzc3VlQ29tbWVudDEyOTE2MzMwNg== | 950575 | 2015-08-09T10:42:08Z | 2015-08-09T10:46:08Z | CONTRIBUTOR |
This edge case is defined here: http://cfconventions.org/Data/cf-conventions/cf-conventions-1.6/build/cf-conventions.html#climatological-statistics NB: People that follow the COARDS conventions will also need this. Any Udunits wrapper can deal with that for you: ``` python import cf_units u = cf_units.Unit('days since 0000-01-01 00:00:00', calendar=cf_units.CALENDAR_NO_LEAP) ut = u.utime() Returns a fake datetime object (See http://scitools.org.uk/iris/docs/latest/iris/iris/unit.html#iris.unit.Unit.num2date)ut.num2date(0) 0-01-01 00:00:00 Note that python datetime cannot take year = 0, but udunits did the "right" thing.ut.date2num(datetime(1, 1, 1)) 365.0 ```
I strongly disagree with that. netCDF is not one CDM and should not follow the CF-conventions! I know that iris does follow CF very closely (annoyingly in fact) and xray "kind of" follow (which is great BTW). However, if such conventions were adopted in the netCDF package, how will we load non-CF files? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
99847237 |