-
Dear All, I can not find any such information, nor examples, in the website, sorry. When passing temperature and pressure in the metpy formulas, in general, and in particular for the following functions: metpy.calc.density(pressure, temperature, mixing_ratio, molecular_weight_ratio=<Quantity(0.62195691, 'dimensionless')>) which are the input units to be used? I suppose: temperature: Kelvin but I can not find any clear statement. Thanks for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
There is no "required" input unit in MetPy because the arguments to these functions (pressure, temperature) are
Note that you can use something like |
Beta Was this translation helpful? Give feedback.
There is no "required" input unit in MetPy because the arguments to these functions (pressure, temperature) are
Pint.Quantity
, which means that they have units attached to the numerical values such that MetPy could process them correctly. An example:Note that you can use something like
t = 20 * units.celsius
too.