issues
1 row where repo = 13221727 and user = 14315062 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at ▲ | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
669595589 | MDU6SXNzdWU2Njk1OTU1ODk= | 4293 | Plotting NEMO data with Multidimensional Coordinates breaks with ValueError | erikvansebille 14315062 | open | 0 | 4 | 2020-07-31T09:08:15Z | 2021-07-04T01:29:30Z | NONE | I want to plot NEMO data on tripolar ORCA grid using the xarray plot functionality. Following @rabernat's tutorial at http://xarray.pydata.org/en/stable/examples/multidimensional-coords.html, I used the See below a simple code that breaks. The ```python
```python
```python
ValueError Traceback (most recent call last) <ipython-input-3-ce97772e3e2b> in <module> ----> 1 T.plot.pcolormesh(x='nav_lon', y='nav_lat') ~/anaconda3/envs/py3_parcels/lib/python3.6/site-packages/xarray/plot/plot.py in plotmethod(_PlotMethods_obj, x, y, figsize, size, aspect, ax, row, col, col_wrap, xincrease, yincrease, add_colorbar, add_labels, vmin, vmax, cmap, colors, center, robust, extend, levels, infer_intervals, subplot_kws, cbar_ax, cbar_kwargs, xscale, yscale, xticks, yticks, xlim, ylim, norm, kwargs) 814 for arg in ["_PlotMethods_obj", "newplotfunc", "kwargs"]: 815 del allargs[arg] --> 816 return newplotfunc(allargs) 817 818 # Add to class _PlotMethods ~/anaconda3/envs/py3_parcels/lib/python3.6/site-packages/xarray/plot/plot.py in newplotfunc(darray, x, y, figsize, size, aspect, ax, row, col, col_wrap, xincrease, yincrease, add_colorbar, add_labels, vmin, vmax, cmap, center, robust, extend, levels, infer_intervals, colors, subplot_kws, cbar_ax, cbar_kwargs, xscale, yscale, xticks, yticks, xlim, ylim, norm, *kwargs) 681 682 if dims != darray.dims: --> 683 darray = darray.transpose(dims, transpose_coords=True) 684 685 # Pass the data as a masked ndarray too ~/anaconda3/envs/py3_parcels/lib/python3.6/site-packages/xarray/core/dataarray.py in transpose(self, transpose_coords, dims) 1900 """ 1901 if dims: -> 1902 dims = tuple(utils.infix_dims(dims, self.dims)) 1903 variable = self.variable.transpose(dims) 1904 if transpose_coords: ~/anaconda3/envs/py3_parcels/lib/python3.6/site-packages/xarray/core/utils.py in infix_dims(dims_supplied, dims_all)
687 if set(dims_supplied) ^ set(dims_all):
688 raise ValueError(
--> 689 f"{dims_supplied} must be a permuted list of {dims_all}, unless ValueError: ('y', 'x') must be a permuted list of ('time_counter', 'y', 'x'), unless Also: if I add a cartopy transformation, as in @rabernat's tutorial, I get exactly the same error. |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/4293/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray 13221727 | issue |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issues] ( [id] INTEGER PRIMARY KEY, [node_id] TEXT, [number] INTEGER, [title] TEXT, [user] INTEGER REFERENCES [users]([id]), [state] TEXT, [locked] INTEGER, [assignee] INTEGER REFERENCES [users]([id]), [milestone] INTEGER REFERENCES [milestones]([id]), [comments] INTEGER, [created_at] TEXT, [updated_at] TEXT, [closed_at] TEXT, [author_association] TEXT, [active_lock_reason] TEXT, [draft] INTEGER, [pull_request] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [state_reason] TEXT, [repo] INTEGER REFERENCES [repos]([id]), [type] TEXT ); CREATE INDEX [idx_issues_repo] ON [issues] ([repo]); CREATE INDEX [idx_issues_milestone] ON [issues] ([milestone]); CREATE INDEX [idx_issues_assignee] ON [issues] ([assignee]); CREATE INDEX [idx_issues_user] ON [issues] ([user]);