如何计算了指数从ERA5压力水平数据?- 江南体育网页版- - - - -地球科学堆江南电子竞技平台栈交换 最近30从www.hoelymoley.com 2023 - 07 - 07 - t21:50:33z //www.hoelymoley.com/feeds/question/17407 https://creativecommons.org/licenses/by-sa/4.0/rdf //www.hoelymoley.com/q/17407 2 如何计算了指数从ERA5压力水平数据? Priya库玛丽小姐 //www.hoelymoley.com/users/15474 2019 - 07 - 09 - t06:38:21z 2021 - 03 - 31 - t13:10:05z < p >我雷暴情况我需要计算相关指标,但我没有得到任何代码稳定性指数在Python语言,代码可在毕业生,NCL对我来说很难理解。我用MetPy代码但是他们不是计算,KI和其他指标……提前谢谢下面的代码是错误的,我知道我使用了公式,但告诉我正确的方法。< / p > < pre > <代码> nc1 =数据集(“pl_120415.nc”) lat1 = np.array (nc1.variables['自由'])lon1 = np.array (nc1.variables['经度'])列弗= np.array (nc1.variables['水平'])时间= nc1。('时间']变量r = nc1。变量[' r '] [:,:, 25:28 20:25] t = nc1。[' t ']变量u = nc1。变量[' u '] [:,:, 25:28 20:25] v = nc1。变量[' v '] [:] w = nc1。[' w ']变量t_500 = nc1。变量[' t '][21日::,:# # #领域空气温度在500 Pressure_level tp_500 = nc1。变量[' t '][: 21日25:28,20:25)# #在specfific位置温度(包裹温度)李= np.subtract (t_500、tp_500 dtype = np.float32)打印(“李”,李)< /代码> < / pre > //www.hoelymoley.com/questions/17407/how-to-calculate-lifted-index-from-era5-pressure-level-data/21045 # 21045 2 由climatestudent回答如何计算了指数从ERA5压力水平数据? climatestudent //www.hoelymoley.com/users/22143 2021 - 03 - 31 - t13:10:05z 2021 - 03 - 31 - t13:10:05z < p > 1.0 Metpy < a href = " https://unidata.github.io/MetPy/latest/api/generated/metpy.calc.lifted_index。html nofollow noreferrer“rel = > lifted_index < / >功能,这需要一个概要文件温度参数,进而可以计算出使用< a href = " https://unidata.github.io/MetPy/latest/api/generated/metpy.calc.parcel_profile。html nofollow noreferrer“rel = > parcel_profile < / >函数。需要有露点温度,你要么必须直接从另一个含水量或计算变量。我不确定你的<代码> r > < /代码变量,所以我不确定是否能帮你计算。而不是使用numpy数组,使用< a href = " http://xarray.pydata.org/en/stable/ " rel = " nofollow noreferrer " > xarray < / >处理netcdf输入变量往往是更容易和更有效率。< / p >
Baidu
map