issue_comments
16 rows where issue = 363326726 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- xarray potential inconstistencies with cftime · 16 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
866121675 | https://github.com/pydata/xarray/issues/2437#issuecomment-866121675 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDg2NjEyMTY3NQ== | jsta 7844578 | 2021-06-22T16:07:36Z | 2021-06-22T17:01:35Z | NONE | I believe the dates assocsiated with this particular dataset are days since "1700-01-01"
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
787459912 | https://github.com/pydata/xarray/issues/2437#issuecomment-787459912 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDc4NzQ1OTkxMg== | keewis 14808389 | 2021-02-28T14:19:33Z | 2021-02-28T14:20:25Z | MEMBER | the issue is that without more information (units, reference date, calendar), You will have to check either the data provider's website or contact them and ask for help (it seems they started offering their data as netcdf files about two weeks ago so this might actually be a issue with their conversion code). Once you have that information we can help you with the code necessary to convert using |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
787289605 | https://github.com/pydata/xarray/issues/2437#issuecomment-787289605 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDc4NzI4OTYwNQ== | hafez-ahmad 20365917 | 2021-02-28T03:43:05Z | 2021-02-28T03:43:05Z | NONE | @spencerkclark 67935 67966 67994 ... 115355 115385 are actually time. But they are stored aa integer. I like to convert all integer to date. My attached data has exact same time. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
787069302 | https://github.com/pydata/xarray/issues/2437#issuecomment-787069302 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDc4NzA2OTMwMg== | spencerkclark 6628425 | 2021-02-27T12:59:35Z | 2021-02-27T12:59:35Z | MEMBER | @hafez-ahmad yes, I'm trying to help, but in order to do that I need more information. What does 456852 represent? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
787065391 | https://github.com/pydata/xarray/issues/2437#issuecomment-787065391 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDc4NzA2NTM5MQ== | spencerkclark 6628425 | 2021-02-27T12:27:41Z | 2021-02-27T12:55:36Z | MEMBER | Thanks @keewis. @hafez-ahmad by Julian date do you mean that the time coordinate represents "days since -4713-01-01T12:00:00" in a Julian calendar? Once we know the units (expressed as units = "days since -4713-01-01T12:00:00" calendar = "julian" ds["time"] = ds.time.assign_attrs(units=units, calendar=calendar) ds = xr.decode_cf(ds) ``` I'll admit though, with the values in your dataset, this assumption produces dates like |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
787067778 | https://github.com/pydata/xarray/issues/2437#issuecomment-787067778 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDc4NzA2Nzc3OA== | hafez-ahmad 20365917 | 2021-02-27T12:47:37Z | 2021-02-27T12:47:37Z | NONE | @spencerkclark I like to convert datetime. My dataset time is not familiar. It looks like 456852,85993, is there anyvway to convert 456852 to dmy [01-01-2020]? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
787059836 | https://github.com/pydata/xarray/issues/2437#issuecomment-787059836 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDc4NzA1OTgzNg== | keewis 14808389 | 2021-02-27T11:40:09Z | 2021-02-27T11:52:49Z | MEMBER | @spencerkclark: if the dataset linked to above is a good example, that would be <tt>ds.info()</tt>``` xarray.Dataset { dimensions: id = 37 ; time = 1380 ; variables: float32 runoff_mean(time, id) ; runoff_mean:units = m3/s ; runoff_mean:long_name = GRDC calculated from daily data ; float32 flag(time, id) ; flag:long_name = percentage of valid values used for calculation from daily data ; float32 area(id) ; area:units = km2 ; area:long_name = catchment area ; object country(id) ; country:long_name = country name ; country:iso2 = ISO 3166-1 alpha-2 - two-letter country code ; float32 geo_x(id) ; geo_x:units = degree_east ; geo_x:long_name = station longitude (WGS84) ; float32 geo_y(id) ; geo_y:units = degree_north ; geo_y:long_name = station latitude (WGS84) ; float32 geo_z(id) ; geo_z:units = m ; geo_z:long_name = station altitude (m above sea level) ; object owneroforiginaldata(id) ; owneroforiginaldata:long_name = Owner of original data ; object river_name(id) ; river_name:long_name = river name ; object station_name(id) ; station_name:long_name = station name ; float32 timezone(id) ; timezone:units = 00:00 ; timezone:long_name = utc offset, in relation to the national capital ; int64 time(time) ; time:long_name = time ; int32 id(id) ; id:long_name = grdc number ; // global attributes: :title = Mean daily discharge (Q) ; :Conventions = CF-1.7 ; :references = grdc.bafg.de ; :institution = GRDC ; :history = Download from GRDC Database, 26/02/2021 ; :missing_value = -999.000 ; } ```so no |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
787059252 | https://github.com/pydata/xarray/issues/2437#issuecomment-787059252 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDc4NzA1OTI1Mg== | spencerkclark 6628425 | 2021-02-27T11:34:49Z | 2021-02-27T11:34:49Z | MEMBER | Could you show me what the output of |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
786687078 | https://github.com/pydata/xarray/issues/2437#issuecomment-786687078 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDc4NjY4NzA3OA== | hafez-ahmad 20365917 | 2021-02-26T14:39:56Z | 2021-02-26T14:39:56Z | NONE | Here screenshot of my data
thank you Hafez |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
786561230 | https://github.com/pydata/xarray/issues/2437#issuecomment-786561230 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDc4NjU2MTIzMA== | spencerkclark 6628425 | 2021-02-26T10:32:42Z | 2021-02-26T10:32:42Z | MEMBER | @hafez-ahmad could you provide more detail about your dataset? Does the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
786548329 | https://github.com/pydata/xarray/issues/2437#issuecomment-786548329 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDc4NjU0ODMyOQ== | hafez-ahmad 20365917 | 2021-02-26T10:08:47Z | 2021-02-26T10:08:47Z | NONE | How can I canvert julian to dmy index or datetime in pandas? , I have following dataset Dimensions: id: 170time: 1560 Coordinates: time (time) int64 67935 67966 67994 ... 115355 115385 array([ 67935, 67966, 67994, ..., 115324, 115355, 115385], dtype=int64) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
461831985 | https://github.com/pydata/xarray/issues/2437#issuecomment-461831985 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDQ2MTgzMTk4NQ== | spencerkclark 6628425 | 2019-02-08T15:05:38Z | 2019-02-08T15:05:38Z | MEMBER | With #2516 already in released versions of xarray, and #2593 and #2665 recently merged, this situation has been significantly improved. I think it is safe now to close this general issue. @sbiner thanks for starting this conversation; feel free to post other issues related to cftime if they come up. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
424469494 | https://github.com/pydata/xarray/issues/2437#issuecomment-424469494 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDQyNDQ2OTQ5NA== | spencerkclark 6628425 | 2018-09-25T19:23:25Z | 2018-09-25T19:23:25Z | MEMBER | @shoyer I agree that seems like a good idea at this stage. Now that there are a number of functions in xarray that do depend differences in dates (as @sbiner notes upsampling with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
424439785 | https://github.com/pydata/xarray/issues/2437#issuecomment-424439785 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDQyNDQzOTc4NQ== | sbiner 16655388 | 2018-09-25T17:53:01Z | 2018-09-25T17:53:01Z | NONE | @spencerkclark I made tests with Thanks for the complete answer. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
424430787 | https://github.com/pydata/xarray/issues/2437#issuecomment-424430787 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDQyNDQzMDc4Nw== | shoyer 1217238 | 2018-09-25T17:26:14Z | 2018-09-25T17:26:14Z | MEMBER | @spencerkclark do you think it would make sense to enable cftimeindex by default in the next major xarray release? On the whole I think it's probably a win for usability at this point... |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 | |
424395224 | https://github.com/pydata/xarray/issues/2437#issuecomment-424395224 | https://api.github.com/repos/pydata/xarray/issues/2437 | MDEyOklzc3VlQ29tbWVudDQyNDM5NTIyNA== | spencerkclark 6628425 | 2018-09-25T15:41:49Z | 2018-09-25T15:41:49Z | MEMBER | @sbiner these are all reasonable points of confusion. The current behavior in xarray regarding non-standard calendars is complicated, and we are working toward improving the situation. I've tried to provide a recommended solution based on your example as well as some historical/future context. Apologies for the long-winded answer! RecommendationFor accurate round-tripping of date types, I would recommend that you run your code to open the dataset with the xarray option In [2]: import numpy as np In [3]: import xarray as xr In [4]: units = 'days since 2000-02-25' In [5]: times = cftime.num2date(np.arange(7), units=units, calendar='365_day') In [6]: da = xr.DataArray(np.arange(7), coords=[times], dims=['time'], name='a') In [7]: da.to_netcdf('data-noleap.nc') In [8]: with xr.set_options(enable_cftimeindex=True):
...: cftimeindex_enabled = xr.open_dataset('data-noleap.nc')
...:
In [10]: cftimeindex_enabled.time[0]
Out[10]:
<xarray.DataArray 'time' ()>
array(cftime._cftime.DatetimeNoLeap(2000, 2, 25, 0, 0, 0, 0, 6, 56), dtype=object)
Coordinates:
time object 2000-02-25 00:00:00
Default behaviorThe default behavior can be traced back to the early days of xarray (see the original discussion in #118, #121, and #126). It boils down to coercing any dates decoded into The advantage of the default approach is that, when possible, it allows you to take advantage of all the nice features that a time coordinate indexed by a Connecting back to your example, we can see that if we don't open the dataset with In [13]: default.indexes['time'] Out[13]: DatetimeIndex(['2000-02-25', '2000-02-26', '2000-02-27', '2000-02-28', '2000-03-01', '2000-03-02', '2000-03-03'], dtype='datetime64[ns]', name=u'time', freq=None) In [14]: default.time[0]
Out[14]:
<xarray.DataArray 'time' ()>
array(951436800000000000L, dtype='datetime64[ns]')
Coordinates:
time datetime64[ns] 2000-02-25
Future behaviorIn xarray we are slowly working towards better support for operations involving The two major outstanding issues on this front are probably:
- Adding resample functionality to CFTimeIndex (#2191)
- Plotting data with Once those two remaining issues are addressed, one should be able to do most of the significant things one can do with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray potential inconstistencies with cftime 363326726 |
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 6