There was an error while loading. Please reload this page.
1 parent 686894d commit 58ff26bCopy full SHA for 58ff26b
1 file changed
psyplot/data.py
@@ -2275,6 +2275,8 @@ def _gridweights_cdo(self):
2275
if bounds and bounds in set(base.coords) - set(ds.coords):
2276
ds[bounds] = base.sel(
2277
**{d: arr.coords[d] for d in sdims}).coords[bounds]
2278
+ ds = ds.drop([c.name for c in six.itervalues(ds.coords)
2279
+ if not c.ndim])
2280
to_netcdf(ds, fname)
2281
ret = cdo.gridweights(input=fname, returnArray='cell_weights')
2282
try:
0 commit comments