【问题标题】:Metpy and dewpoint_rhMetpy 和 dewpoint_rh
【发布时间】:2021-03-07 01:26:59
【问题描述】:

我刚开始在使用 Metpy 运行程序时遇到以下错误:

importerror: 无法从“metpy.calc”导入名称“dewpoint_rh”

昨天我的程序运行良好。

这里是sn-p的代码:

从metpy.calc 导入(bunkers_storm_motion、bulk_shear、dewpoint、dewpoint_rh、dry_lapse、moist_lapse、 蒸汽压力,饱和蒸汽压力,风速,风向,压力到高度标准, 混合比率、开普敦辛、风分量、高度到压力标准、等效电位_温度、 parcel_profile、precipitable_water、storm_relative_helicity、mean_pressure_weighted、 most_unstable_cape_cin、most_unstable_parcel、supercell_composite、significant_tornado、get_layer、 相对湿度_来自_露点)

【问题讨论】:

    标签: metpy


    【解决方案1】:

    dewpoint_rh 是 MetPy 0.12 之前版本中根据温度和相对湿度计算露点的函数名称。 This changed to dewpoint_from_relative_humidity in v0.12, and the old name was removed in v1.0.

    有关 MetPy v1.0 中 API 更改的更多信息(可能会影响您正在导入的函数的使用),请参阅 MetPy 文档中的the MetPy 1.0 API Changes guide

    【讨论】:

      猜你喜欢
      • 2021-08-14
      • 2020-09-29
      • 2019-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多