From 2d12b51eb83f8e3d5bfd5383b630ca089b605735 Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Mon, 23 Dec 2019 14:25:10 +0100 Subject: [PATCH 1/2] Use coordinate names instead of axis --- esmvalcore/cmor/table.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/esmvalcore/cmor/table.py b/esmvalcore/cmor/table.py index 0f6c5d680e..6b16aa507a 100644 --- a/esmvalcore/cmor/table.py +++ b/esmvalcore/cmor/table.py @@ -164,11 +164,7 @@ def _assign_dimensions(self, var, generic_levels): ) raise - axis = coord.axis - if not axis: - axis = 'none' - - var.coordinates[axis] = coord + var.coordinates[dimension] = coord def _load_coordinates(self): self.coords = {} From 211a3d0279ab8cdcb2d69a6fc427417dabb84c65 Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Mon, 23 Dec 2019 14:35:23 +0100 Subject: [PATCH 2/2] Improve docstring --- esmvalcore/cmor/table.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/esmvalcore/cmor/table.py b/esmvalcore/cmor/table.py index 6b16aa507a..067d4f9da8 100644 --- a/esmvalcore/cmor/table.py +++ b/esmvalcore/cmor/table.py @@ -388,7 +388,11 @@ def __init__(self, table_type, short_name): self.dimensions = [] """List of dimensions""" self.coordinates = {} - """Coordinates""" + """Coordinates + + This is a dict with the names of the dimensions as keys and + CoordinateInfo objects as values. + """ self._json_data = None