|
10 | 10 | import xarray as xr |
11 | 11 |
|
12 | 12 | from parcels._core.utils.time import TimeInterval |
13 | | -from parcels._core.utils.unstructured import get_vertical_location_from_dims |
14 | 13 | from parcels._reprs import default_repr |
15 | 14 | from parcels._typing import ( |
16 | 15 | Mesh, |
@@ -206,41 +205,6 @@ def units(self, value): |
206 | 205 | raise ValueError(f"Units must be a UnitConverter object, got {type(value)}") |
207 | 206 | self._units = value |
208 | 207 |
|
209 | | - @property |
210 | | - def lat(self): |
211 | | - if type(self.data) is ux.UxDataArray: |
212 | | - if self.data.attrs["location"] == "node": |
213 | | - return self.grid.node_lat |
214 | | - elif self.data.attrs["location"] == "face": |
215 | | - return self.grid.face_lat |
216 | | - elif self.data.attrs["location"] == "edge": |
217 | | - return self.grid.edge_lat |
218 | | - else: |
219 | | - return self.grid.lat |
220 | | - |
221 | | - @property |
222 | | - def lon(self): |
223 | | - if type(self.data) is ux.UxDataArray: |
224 | | - if self.data.attrs["location"] == "node": |
225 | | - return self.grid.node_lon |
226 | | - elif self.data.attrs["location"] == "face": |
227 | | - return self.grid.face_lon |
228 | | - elif self.data.attrs["location"] == "edge": |
229 | | - return self.grid.edge_lon |
230 | | - else: |
231 | | - return self.grid.lon |
232 | | - |
233 | | - @property |
234 | | - def depth(self): |
235 | | - if type(self.data) is ux.UxDataArray: |
236 | | - vertical_location = get_vertical_location_from_dims(self.data.dims) |
237 | | - if vertical_location == "center": |
238 | | - return self.grid.nz1 |
239 | | - elif vertical_location == "face": |
240 | | - return self.grid.nz |
241 | | - else: |
242 | | - return self.grid.depth |
243 | | - |
244 | 208 | @property |
245 | 209 | def xdim(self): |
246 | 210 | if type(self.data) is xr.DataArray: |
|
0 commit comments