I have got this error with metpy:
AttributeError: module 'metpy' has no attribute 'calc'
The code is as follows;
import metpy as mp
import numpy as np
from metpy.units import units
df = pd.read_csv('wind.csv', header = 0)
u = (df['u10'].to_numpy()) *units("m/s")
v = (df['v10'].to_numpy()) *units("m/s")
df['speed'] = mp.calc.wind_speed(u, v)
Versions: numpy 1.23.5 metpy 1.5.0
Any idea how to solve it? Thank you.