Skip to content

add_bottom_velocity function does not update v_restart #14

@ma595

Description

@ma595

Returns
-------
v_new : numpy.ndarray or xarray.DataArray
Velocity array with bottom velocity values added.
This isn't the behavior expected, need to return v_new
"""
ind_prof = (mask.argmin(dim="nav_lev") - 1) * mask.isel(nav_lev=0)
v_fond = v_restart.isel(nav_lev=ind_prof, time_counter=0)
mask_nan_update = np.isnan(v_update)
v_new = mask_nan_update * v_restart + (1 - mask_nan_update) * (v_fond + v_update)
return v_restart

  • Was this comment added by me or the original authors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions