home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1289560937

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/7207#issuecomment-1289560937 https://api.github.com/repos/pydata/xarray/issues/7207 1289560937 IC_kwDOAMm_X85M3SNp 4753005 2022-10-24T20:17:32Z 2022-10-24T20:17:32Z NONE

Update: I was mistaken about the nature of the issue. I can load someone else's data with a datetime64[ns] dimension and select from it just fine. Meanwhile, I cannot select from my DataArray, even when I have replaced the datetime64[ns] dimension time with float64 values.

```

spgs = xr.open_dataarray("mydata.nc") print(spgs)

<xarray.DataArray (channel: 5, frequency: 2049, time: 52549)> [538364505 values with dtype=float32] Coordinates: * frequency (frequency) float32 0.0 0.1526 0.3052 ... 312.2 312.3 312.5 * time (time) float64 6.438 9.714 12.99 ... 1.729e+05 1.729e+05 * channel (channel) object 'lmws' 'spws' 'rips' 'spin' 'dgws' x (channel, time) float64 ... y (channel, time) float64 ... Attributes: units: uV fs: 625.0008026193788

spgs.sel(time=slice(20, 30)) KeyError: 20 ``` Error traceback

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