Skip to content

Commit 4a47664

Browse files
committed
exclude lev_bounds
1 parent 0e7f75f commit 4a47664

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tripyview/sub_data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ def _preprocess(x, do_prec, transpose):
533533
if ('lon_bnds' in data.data_vars): data = data.drop_vars(['lon_bnds' ])
534534
if ('lat_bnds' in data.data_vars): data = data.drop_vars(['lat_bnds' ])
535535
if ('time_bnds' in data.data_vars): data = data.drop_vars(['time_bnds'])
536+
if ('lev_bnds' in data.data_vars): data = data.drop_vars(['lev_bnds' ])
536537

537538
# change depth dimension naming in case of fesom14cmip6 and MULTIIO data to
538539
# fesom2 convention
@@ -2674,7 +2675,7 @@ def compute_optimal_chunks(path, client=None, varname=None, opti_dim='hori',
26742675
#___________________________________________________________________________
26752676
# Identify horiz + vert dimensions
26762677
hori_all = ["nod2", "elem", "edg_n", "x", "ncells", "node"]
2677-
vert_all = ["nz", "nz1", "nz_1", "ncat", "ndens"]
2678+
vert_all = ["nz", "nz1", "nz_1", "ncat", "ndens", "lev"]
26782679

26792680
# determine which dimensions are in data
26802681
hori_dim = next((d for d in dims if d in hori_all), None)

0 commit comments

Comments
 (0)