0

在metpy网页上,他们为850hPa温度平流提供的示例如下:

adv = mpcalc.advection(temp_850 * units.kelvin, [u_wind_850, v_wind_850],
                   (dx, dy), dim_order='yx') * units('K/sec')

但根据文档,其中指出:

The order of the dimensions of the arrays must match the order in which
the wind components are given.  For example, if the winds are given [u, v],
then the scalar and wind arrays must be indexed as x,y (which puts x as the
rows, not columns).

在我看来,示例中的 dim_order 应该是 xy 而不是 yx?当我们给 u 然后是 v,然后是 dx 然后是 dy,而不是反过来呢?

我还发现,即使我的输入温度场在某些网格点有缺失值,metpy 仍然以某种方式返回这些点处的平流值,而不是缺失值。这怎么可能?

4

1 回答 1

0

关于缺失值,我发现了问题。根据示例应用平滑时,这会填充我们缺少值的地方。平滑之前的平流输出缺少输入温度和风的输入值。平滑似乎插入了我们丢失数据的地方。

但是我仍然对 dim_order 感到困惑

于 2020-11-25T07:04:36.987 回答