Skip to content

Commit

Permalink
Update dict key for tidal prediction difference
Browse files Browse the repository at this point in the history
Delete extra spaces in the "pred_noshallow" key that were eliminated at source
in SalishSeaCast/tools#132.
  • Loading branch information
douglatornell committed Jan 31, 2025
1 parent 528844a commit ea1a972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nowcast/figures/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def correct_model_ssh(ssh_model, t_model, ttide):
:returns: Corrected model sea surface height.
:rtype: :py:class:`numpy.ndarray`
"""
difference = np.array(ttide[" pred_noshallow "] - ttide["pred_8"])
difference = np.array(ttide["pred_noshallow"] - ttide["pred_8"])
corr = interp_to_model_time(t_model, difference, ttide.time)
corr_model = ssh_model + corr
return corr_model
Expand Down

0 comments on commit ea1a972

Please sign in to comment.