home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 1120392868 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • max-sixty 1
  • haritha1022 1

author_association 2

  • MEMBER 1
  • NONE 1

issue 1

  • [] · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1033982343 https://github.com/pydata/xarray/issues/6228#issuecomment-1033982343 https://api.github.com/repos/pydata/xarray/issues/6228 IC_kwDOAMm_X849oVGH haritha1022 97615200 2022-02-09T16:58:33Z 2022-02-09T17:21:43Z NONE

```python import xarray as xr import cartopy.crs as ccrs from cartopy import feature as cf import matplotlib.pyplot as plt import numpy as np

data=xr.open_dataset("rainncreq.nc") print(data) lon=data.lon[:] lat=data.lat[:] lev_2=data.lev_2[0] rainnc=data.rainnc[:] ax = plt.axes(projection=ccrs.PlateCarree()) rainnc.isel(time=0+8,lev_2=0).plot.pcolormesh(cmap='jet',vmax=100,vmin=0,add_colorbar=True); ax.coastlines() ax.add_feature(cf.BORDERS) plt.savefig("rain31.jpg") plt.show() ``` then it is not giving error just the data but actually i want add the the time steps from 0 to 8 when i was 0+1+2+3....+8 then it is giving index error

pytb File "/home/user/Documents/IGCAR/rain/rain.py", line 36, in <module> rainnc.isel(time=0+1+2+3+4+5+6+7+8,lev_2=0).plot.pcolormesh(cmap='jet',vmax=100,vmin=0,add_colorbar=True); File "/home/user/anaconda3/lib/python3.9/site-packages/xarray/core/dataarray.py", line 1208, in isel variable = self._variable.isel(indexers, missing_dims=missing_dims) File "/home/user/anaconda3/lib/python3.9/site-packages/xarray/core/variable.py", line 1193, in isel return self[key] File "/home/user/anaconda3/lib/python3.9/site-packages/xarray/core/variable.py", line 786, in __getitem__ data = as_indexable(self._data)[indexer] File "/home/user/anaconda3/lib/python3.9/site-packages/xarray/core/indexing.py", line 555, in __getitem__ return type(self)(_wrap_numpy_scalars(self.array[key])) File "/home/user/anaconda3/lib/python3.9/site-packages/xarray/core/indexing.py", line 524, in __getitem__ return type(self)(_wrap_numpy_scalars(self.array[key])) File "/home/user/anaconda3/lib/python3.9/site-packages/xarray/core/indexing.py", line 431, in __getitem__ return type(self)(self.array, self._updated_key(indexer)) File "/home/user/anaconda3/lib/python3.9/site-packages/xarray/core/indexing.py", line 403, in _updated_key full_key.append(_index_indexer_1d(k, next(iter_new_key), size)) File "/home/user/anaconda3/lib/python3.9/site-packages/xarray/core/indexing.py", line 176, in _index_indexer_1d indexer = _expand_slice(old_indexer, size)[applied_indexer] IndexError: index 36 is out of bounds for axis 0 with size 9

hope you understand my problem

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  [] 1120392868
1026612229 https://github.com/pydata/xarray/issues/6228#issuecomment-1026612229 https://api.github.com/repos/pydata/xarray/issues/6228 IC_kwDOAMm_X849MNwF max-sixty 5635139 2022-02-01T09:02:05Z 2022-02-01T09:02:05Z MEMBER

Please review the links on producing quality examples. I'll close for now but feel free to reopen if you're up for producing one.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  [] 1120392868

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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]);
Powered by Datasette · Queries took 556.898ms · About: xarray-datasette