pvtend.ppvi.winds.psi_to_winds
- pvtend.ppvi.winds.psi_to_winds(psi: ndarray, lats: ndarray, dlat: float, dlon: float) tuple[ndarray, ndarray][source]
Rotational wind from ψ via Wu centred finite differences.
- Parameters:
psi – Streamfunction
(NL, NY, NX)[m²/s], latitude N→S.lats – Latitudes [deg] of length
NY(descending, N→S).dlat – Grid spacing in latitude [deg].
dlon – Grid spacing in longitude [deg].
- Returns:
Tuple
(u_rot, v_rot)each(NL, NY, NX)[m/s]; the outermost latitude rows and longitude columns are NaN.