issue_comments: 1033982343
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/6228#issuecomment-1033982343 | https://api.github.com/repos/pydata/xarray/issues/6228 | 1033982343 | IC_kwDOAMm_X849oVGH | 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
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 |