在使用Metpy运行程序时,我刚刚开始得到以下错误:
重要恐怖:无法从“dewpoint_rh”导入名称“metpy.calc”
昨天我的计划运行得很好。
下面是代码片段:
从metpy.calc进口(bunkers_storm_motion,bulk_shear,露点,dewpoint_rh,dry_lapse,moist_lapse,vapor_pressure,saturation_vapor_pressure,wind_speed,wind_direction,pressure_to_height_std,mixing_ratio,cape_cin,wind_components,height_to_pressure_std,equivalent_potential_temperature,height_to_pressure_std,,#en23 20#,,relative_humidity_from_dewpoint)
发布于 2021-03-07 01:55:15
dewpoint_rh是计算0.12之前MetPy版本中的温度和相对湿度的露点的函数名。在0.12中,旧名称在1.0中被删除。。
有关MetPy v1.0中API更改的更多信息(可能会影响您正在导入的函数的使用),请参见MetPy文档中的MetPy 1.0 API更改指南。
https://stackoverflow.com/questions/66512375
复制相似问题