Skip to content

Commit

Permalink
Fixed a bug in the ground temperature diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
jodemaey committed Apr 5, 2023
1 parent f824dc9 commit 679fb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qgs/diagnostics/temperatures.py
Expand Up @@ -537,7 +537,7 @@ def __init__(self, model_params, delta_x=None, delta_y=None, dimensional=True):
def _get_diagnostic(self, dimensional):

vr = self._model_params.variables_range
T = np.swapaxes(self._data[vr[1], ...].T @ np.swapaxes(self._grid_basis, 0, 1), 0, 1)
T = np.swapaxes(self._data[vr[1]:, ...].T @ np.swapaxes(self._grid_basis, 0, 1), 0, 1)

if dimensional:
self._diagnostic_data = T * self._model_params.temperature_scaling
Expand Down

0 comments on commit 679fb66

Please sign in to comment.