Skip to content
Advertisement

Tag: metpy

How deal with the UndefinedUnitError?

I downloaded data from noaa and i wanted to calculate vertical velocity using the function vertical_velocity=metpy.calcmpcalc.vertical_velocity(omega,pressure,temperature). But something wrong when i dealing with the units of varibles. **The units of omega, height and temperature are ‘Pascal/s’, ‘m’ and ‘degC’, repectively. The varible pressure was calculate through the function mpcalc.height_to_pressure_std, and this function didn’t give the unit of pressure. But the

Advertisement