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/6502#issuecomment-1104023306,https://api.github.com/repos/pydata/xarray/issues/6502,1104023306,IC_kwDOAMm_X85Bzg8K,42008691,2022-04-20T14:49:02Z,2022-04-20T14:49:02Z,NONE,"Oh... I am so sorry about this. This works as expected now. It's weird that using list seemed to have worked at some point. Thanks a lot for your help","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1209745654 https://github.com/pydata/xarray/issues/6502#issuecomment-1104007301,https://api.github.com/repos/pydata/xarray/issues/6502,1104007301,IC_kwDOAMm_X85BzdCF,42008691,2022-04-20T14:34:38Z,2022-04-20T14:34:38Z,NONE,"Thanks. I upgraded to 2022.03.0 I am still getting the error ``` Python 3.9.12 (main, Apr 5 2022, 06:56:58) [GCC 7.5.0] :: Anaconda, Inc. on linux Type ""help"", ""copyright"", ""credits"" or ""license"" for more information. >>> import xarray as xr >>> xr.__version__ '2022.3.0' >>> ds = xr.Dataset({""foo"": ((""x"", ""y"", ""z""), [[[42]]]), ""bar"": ((""y"", ""z""), [[24]])}) >>> ds.transpose(['y','z','y']) Traceback (most recent call last): File """", line 1, in File ""/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/dataset.py"", line 4650, in transpose _ = list(infix_dims(dims, self.dims, missing_dims)) File ""/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/utils.py"", line 786, in infix_dims existing_dims = drop_missing_dims(dims_supplied, dims_all, missing_dims) File ""/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/utils.py"", line 874, in drop_missing_dims supplied_dims_set = {val for val in supplied_dims if val is not ...} File ""/nbhome/f1p/miniconda3/envs/f1p_gfdl/lib/python3.9/site-packages/xarray/core/utils.py"", line 874, in supplied_dims_set = {val for val in supplied_dims if val is not ...} TypeError: unhashable type: 'list' ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1209745654 https://github.com/pydata/xarray/issues/2915#issuecomment-485952069,https://api.github.com/repos/pydata/xarray/issues/2915,485952069,MDEyOklzc3VlQ29tbWVudDQ4NTk1MjA2OQ==,42008691,2019-04-23T19:59:49Z,2019-04-23T19:59:49Z,NONE,"Perfect. Thanks for the clear explanation. This fixes my issue. Fabien On Tue, Apr 23, 2019 at 2:50 PM Spencer Clark wrote: > Thanks @fabienpaulot -- this could > probably use a better error message. The arguments passed to x and y must > be dimension or coordinate names of the DataArray rather than DataArrays > themselves. In your case you can assign xcntr and ycntr as coordinates of > test and then plot: > > test = test.assign_coords(x=xcntr.rename({'nxp': 'xh', 'nyp': 'yh'}), > y=ycntr.rename({'nxp': 'xh', 'nyp': 'yh'})) > test['nh4_stf'].plot.contourf(x='x', y='y', ax=ax, transform=ccrs.PlateCarree()) > > The renaming is necessary so the dimension names match that of test. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > , or mute > the thread > > . > ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,436311057 https://github.com/pydata/xarray/issues/2915#issuecomment-485920496,https://api.github.com/repos/pydata/xarray/issues/2915,485920496,MDEyOklzc3VlQ29tbWVudDQ4NTkyMDQ5Ng==,42008691,2019-04-23T18:26:46Z,2019-04-23T18:26:46Z,NONE,"Thanks `print(test)` Dimensions: (xh: 720, yh: 576) Coordinates: * xh (xh) float64 -299.8 -299.2 -298.8 -298.2 ... 58.75 59.25 59.75 * yh (yh) float64 -77.91 -77.72 -77.54 -77.36 ... 89.47 89.68 89.89 Data variables: nh4_stf (yh, xh) float32 nan nan nan nan nan nan ... nan nan nan nan nan I am getting an error if I pass `x` and `y` `test['nh4_stf'].plot.contourf(x=xcntr,y=ycntr,ax=ax,transform=ccrs.PlateCarree())` ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,436311057