Skip to content

Commit 4ea3ccb

Browse files
committed
Fix compute_transect() call for new parameters
1 parent 71dd816 commit 4ea3ccb

File tree

1 file changed

+4
-2
lines changed
  • polaris/ocean/tasks/isomip_plus/init

1 file changed

+4
-2
lines changed

polaris/ocean/tasks/isomip_plus/init/init.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,10 @@ def _plot(self):
303303
x = xr.DataArray(data=x, dims=('nPoints',))
304304
y = xr.DataArray(data=y, dims=('nPoints',))
305305

306-
ds_transect = compute_transect(x=x, y=y, ds_3d_mesh=ds,
307-
spherical=False)
306+
ds_transect = compute_transect(
307+
x=x, y=y, ds_horiz_mesh=ds_mesh, layer_thickness=ds.layerThickness,
308+
bottom_depth=ds.bottomDepth, min_level_cell=ds.minLevelCell - 1,
309+
max_level_cell=ds.maxLevelCell - 1, spherical=False)
308310

309311
ds['totalColThickness'] = ds['layerThickness'].sum(dim='nVertLevels')
310312

0 commit comments

Comments
 (0)