You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case of zsigma-layer model with minimal layer definition, we have the variable mesh2d_bldepth from the get_formula_terms["depth"]. In that case we do not need mesh2d_flowelem_bl anymore (for which we are also not sure if it is in the model output). Nevertheless, dfmt.get_Dataset_atdepths() raises KeyError: 'get_Dataset_atdepths() called with reference=bedlevel, but mesh2d_flowelem_bl variable not present' when slicing with reference bedlevel.
from dfm_tools.get_nc import get_formula_terms
depthvar = get_formula_terms(uds, 'layer')['depth']
But it is important to note that positive is down instead of up, so multiply with -1
The text was updated successfully, but these errors were encountered:
veenstrajelmer
changed the title
Use mesh2d_bldepth instead of mesh2d_flowelem_bl for get_Dataset_atdepths if available in conventions.
Use mesh2d_bldepth instead of mesh2d_flowelem_bl for get_Dataset_atdepths if available in conventions
Nov 3, 2023
In case of zsigma-layer model with minimal layer definition, we have the variable
mesh2d_bldepth
from theget_formula_terms["depth"]
. In that case we do not needmesh2d_flowelem_bl
anymore (for which we are also not sure if it is in the model output). Nevertheless,dfmt.get_Dataset_atdepths()
raisesKeyError: 'get_Dataset_atdepths() called with reference=bedlevel, but mesh2d_flowelem_bl variable not present'
when slicing with reference bedlevel.We can get the "mesh2d_bldepth" variable with:
But it is important to note that positive is down instead of up, so multiply with
-1
The text was updated successfully, but these errors were encountered: