We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e4c6d0 commit 2b46ba9Copy full SHA for 2b46ba9
parcels/_index_search.py
@@ -24,7 +24,6 @@
24
25
26
def search_indices_vertical_z(grid: Grid, gridindexingtype: GridIndexingType, z: float):
27
- z = np.float32(z)
28
if grid.depth[-1] > grid.depth[0]:
29
if z < grid.depth[0]:
30
# Since MOM5 is indexed at cell bottom, allow z at depth[0] - dz where dz = (depth[1] - depth[0])
@@ -99,7 +98,6 @@ def search_indices_vertical_s(
99
98
+ xsi * eta * grid.depth[:, yi + 1, xi + 1]
100
+ (1 - xsi) * eta * grid.depth[:, yi + 1, xi]
101
)
102
- z = np.float32(z) # type: ignore # TODO: remove type ignore once we migrate to float64
103
104
if depth_vector[-1] > depth_vector[0]:
105
depth_indices = depth_vector <= z
0 commit comments