From 6b1840a7c8a26b54a1b5071f41ae210a9184eb2f Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Thu, 21 May 2026 13:42:47 +0200 Subject: [PATCH] Remove Field.{x,y,z}dim Already exists on the grid object - doesnt have to be on the Field object --- src/parcels/_core/field.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/parcels/_core/field.py b/src/parcels/_core/field.py index 95ad01c19..ee216d34a 100644 --- a/src/parcels/_core/field.py +++ b/src/parcels/_core/field.py @@ -141,32 +141,6 @@ def __init__( def __repr__(self): return field_repr(self) - @property - def xdim(self): - if type(self.data) is xr.DataArray: - return self.grid.xdim - else: - raise NotImplementedError("xdim not implemented for unstructured grids") - - @property - def ydim(self): - if type(self.data) is xr.DataArray: - return self.grid.ydim - else: - raise NotImplementedError("ydim not implemented for unstructured grids") - - @property - def zdim(self): - if type(self.data) is xr.DataArray: - return self.grid.zdim - else: - if "nz1" in self.data.dims: - return self.data.sizes["nz1"] - elif "nz" in self.data.dims: - return self.data.sizes["nz"] - else: - return 0 - @property def interp_method(self): return self._interp_method