-
Notifications
You must be signed in to change notification settings - Fork 0
add_bottom_velocity function does not update v_restart #14
Copy link
Copy link
Open
Description
nemo-spinup-restart/src/nemo_spinup_restart/restart.py
Lines 754 to 764 in f588355
| 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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels