From dcee2c2070b229467d22ea7e003612d0b52ba147 Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Sun, 24 Jan 2021 13:19:41 +0000 Subject: [PATCH] 0.1.9 --- climetlab/__init__.py | 2 +- climetlab/helpers/xarray.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/climetlab/__init__.py b/climetlab/__init__.py index fee06eb1..aa35ad81 100644 --- a/climetlab/__init__.py +++ b/climetlab/__init__.py @@ -25,7 +25,7 @@ # import logging -__version__ = "0.1.8" +__version__ = "0.1.9" # if ipython_active: diff --git a/climetlab/helpers/xarray.py b/climetlab/helpers/xarray.py index a4fabb14..4348edf1 100644 --- a/climetlab/helpers/xarray.py +++ b/climetlab/helpers/xarray.py @@ -45,7 +45,8 @@ def plot_map(self, driver): driver.plot_xarray(self.data, self.name, dimension_settings) def field_metadata(self): - result = dict(shape=self.var.shape) + shape = self.var.shape + result = dict(shape=(shape[-2], shape[-1])) result.update(self.var.attrs) result.update( dict(