issue_comments
10 rows where issue = 99847237 and user = 950575 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' · 10 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
131171459 | https://github.com/pydata/xarray/pull/523#issuecomment-131171459 | https://api.github.com/repos/pydata/xarray/issues/523 | MDEyOklzc3VlQ29tbWVudDEzMTE3MTQ1OQ== | ocefpaf 950575 | 2015-08-14T16:31:40Z | 2015-08-14T16:31:40Z | CONTRIBUTOR | @jhamman sorry for making this thread longer than it should. But I don't think you disagree! You are just more optimist than I am :wink: But you are right. We need a champion from the climate community. And if either of you open the issue I will be the second man on the hill. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' 99847237 | |
131109392 | https://github.com/pydata/xarray/pull/523#issuecomment-131109392 | https://api.github.com/repos/pydata/xarray/issues/523 | MDEyOklzc3VlQ29tbWVudDEzMTEwOTM5Mg== | ocefpaf 950575 | 2015-08-14T13:44:39Z | 2015-08-14T13:44:39Z | CONTRIBUTOR |
Worth? Yes. Any hope to actually get it in there? No... |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' 99847237 | |
131105515 | https://github.com/pydata/xarray/pull/523#issuecomment-131105515 | https://api.github.com/repos/pydata/xarray/issues/523 | MDEyOklzc3VlQ29tbWVudDEzMTEwNTUxNQ== | ocefpaf 950575 | 2015-08-14T13:25:27Z | 2015-08-14T13:25:27Z | CONTRIBUTOR |
@rabernat I hear you! I suffer from the same problem. But I think we should teach students how to defend themselves from bad practices and tools limitations. (We have both in there! Talking about non-standard calendar and accepted but non-recommended standards.)
Not ideal but that is probably the way to go. My guess is that you can load the data in xray, but you cannot get those dates into the pandas indexing machinery, right? That is not too bad since there are not many "dates operations" that you can do anyway. Most of the time we only need to translate the time information into a label for the figures. If that is the case you are OK with the tools we have now. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' 99847237 | |
130868683 | https://github.com/pydata/xarray/pull/523#issuecomment-130868683 | https://api.github.com/repos/pydata/xarray/issues/523 | MDEyOklzc3VlQ29tbWVudDEzMDg2ODY4Mw== | ocefpaf 950575 | 2015-08-13T22:38:57Z | 2015-08-13T22:38:57Z | CONTRIBUTOR |
Great. We don't need another interpretation of the CF-standards out there! See the WOA13 dataset above as an example of the problems this brings. The data has no calendar and use units
Which one! Year zero is invalid in one and (kind of) accepted in the other!! Long story short: the dataset is valid CF but it is unclear how to interpret the dates. No one cares because people using that dataset know that PS: Note that there is a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' 99847237 | |
130840069 | https://github.com/pydata/xarray/pull/523#issuecomment-130840069 | https://api.github.com/repos/pydata/xarray/issues/523 | MDEyOklzc3VlQ29tbWVudDEzMDg0MDA2OQ== | ocefpaf 950575 | 2015-08-13T20:52:28Z | 2015-08-13T21:01:31Z | CONTRIBUTOR | Just so you see how messy this can be. The year
If someone accidentally saves that date back with this object it will no longer be year 0 and other CDMs might choke by not recognizing it as climatology.
But that object is pretty much useless for pandas and xray because of the non-standard calendar. The object is useful to annotate plots or to save the data metadata back the same way it was before. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' 99847237 | |
130827459 | https://github.com/pydata/xarray/pull/523#issuecomment-130827459 | https://api.github.com/repos/pydata/xarray/issues/523 | MDEyOklzc3VlQ29tbWVudDEzMDgyNzQ1OQ== | ocefpaf 950575 | 2015-08-13T20:17:10Z | 2015-08-13T20:35:08Z | CONTRIBUTOR |
I disagree. Maybe not even xray should "fix" this. There are two issues here: 1) Interpreting year 0 as 1; 2) Non-standard calendars. Maybe (2) should be in (1) is an UDUNITS ~~aberration~~ interpretation that made into some Conventions (CF and COARDS) and does not belong in the netCDF4 package. Does xray wants to became a CF CDM? I sure hope not! I have iris for that but for everything else I use xray. And if people really want to get those niche date specification from xray they can just read the raw time data and parse it using one of the several UDUNITS wrappers or convention compliance/checkers out there. Here is another one that should do the right thing here for that case: https://pypi.python.org/pypi/coards/1.0.5 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' 99847237 | |
129484020 | https://github.com/pydata/xarray/pull/523#issuecomment-129484020 | https://api.github.com/repos/pydata/xarray/issues/523 | MDEyOklzc3VlQ29tbWVudDEyOTQ4NDAyMA== | ocefpaf 950575 | 2015-08-10T15:06:09Z | 2015-08-10T15:15:11Z | CONTRIBUTOR | @rabernat here is an example on how to read those dates using http://nbviewer.ipython.org/gist/ocefpaf/d14bd8ad24f4e1a47b19 My point with this example is: By accepting these rules (by rules I mean how UDUNITS interprets the dates and how that interpretation is part of the CF-convention) you are leaving the world of "read my data" and entering a world of "interpret my data."
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' 99847237 | |
129190478 | https://github.com/pydata/xarray/pull/523#issuecomment-129190478 | https://api.github.com/repos/pydata/xarray/issues/523 | MDEyOklzc3VlQ29tbWVudDEyOTE5MDQ3OA== | ocefpaf 950575 | 2015-08-09T14:15:15Z | 2015-08-09T14:15:15Z | CONTRIBUTOR |
I know :wink: that is why I use PS: do you have an OPenDAP endpoint for you data? I would like to make a few tests here. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' 99847237 | |
129165156 | https://github.com/pydata/xarray/pull/523#issuecomment-129165156 | https://api.github.com/repos/pydata/xarray/issues/523 | MDEyOklzc3VlQ29tbWVudDEyOTE2NTE1Ng== | ocefpaf 950575 | 2015-08-09T10:46:36Z | 2015-08-09T14:14:08Z | CONTRIBUTOR | Note that I am not questioning the validity of those dates neither its use. But they are out there and people need to deal with that ~~monstrosity~~ feature. If xray decides to support this it has to be implemented very carefully and with some warnings... |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' 99847237 | |
129163306 | https://github.com/pydata/xarray/pull/523#issuecomment-129163306 | https://api.github.com/repos/pydata/xarray/issues/523 | MDEyOklzc3VlQ29tbWVudDEyOTE2MzMwNg== | ocefpaf 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 } |
Fix datetime decoding when time units are 'days since 0000-01-01 00:00:00' 99847237 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 1