写在前面

最近要算云顶高度\(P_T\),将一些搜索到的实现方法先记录一下。

为什么要算这个\(P_T\),因为最近这算一个热带大气稳定性的诊断量(不清楚是不是诊断量,反正就是表征的,GMS)。因为热带不同地区,对流上升达到的最大深度是不同,比如暖池区可能更高一点,东太可能浅一点。

这在计算垂直积分的时候对于结果会产生一定程度的影响,比如GMS。ok,这容易理解,因为你积分的下限选择100 hPa和10 hPa可能结果是不同的嘛。当然咯,大部分的文章不需要考虑这个,都是fixed的高度,比如100 hPa。

但我这里不用固定的高度。所以,我要得到一个随着地理位置变化的\(P_T\)。下面是最近一些搜到方法,没有搜太多,找了能用的几个。

\(P_T\) 计算

1、基于的递减率来定义PT

定义为递减率为0℃/ km的高度

这主要通过对于热带平均气温廓线采用25 m左右分辨率的样条拟合方法计算其距平率,然后找到\(0^\circ\mathrm{C}/km\) 的高度

  • (Gettelman et al. 2009)

定义为递减率为+2℃/ km的高度

  • (Fan and Dommenget 2024)

也可以通过NCL的trop_wmo函数容易的实现

The first tropopause is defined as the lowest level at which the lapse rate decreases to 2 deg K per kilometer or less, provided also the average lapse rate between this level and all higher levels within 2 kilometers does not exceed 2 deg K.

  • https://www.ncl.ucar.edu/Document/Functions/Built-in/trop_wmo.shtml

输入的变量一般为气温和压力层,需要注意两个地方:

  • 将高度的维度置于最右侧
  • 数据高度的排序是从高-低,包括气温和传入的压力层数据,如100 hPa-1000 hPa:as noted, the levels must be top-to-bottom
  • opt=1,表示气压单位是pa

下面是简单算出来的空间分布,随便选了1997-01,和2077-01的结果。总体来说,未来还是变深的。分布没太看明白,感觉有点奇怪。

找了个气温的空间分布图,不晓得是不是和气温分布有关

2、基于湿静能的高度来定义:Level of neutral buoyancy

简单来说,对于一个湿静能h,从1000 hPa,往对流层顶找,找到一个hs 超过\(h_{1000 hPa}\),其所在的高度定义为LNB。

  • (Li et al., 2022)

  • We find the level presumably in the upper troposphere at which the environmental hs first exceeds the 1000-hPa value of h and call it LNB.
  • 注意,当近地面h小于对流层hs值时,LNB不一定存在。

以上方法的假设前提是:忽略虚温效应,夹卷也被忽略。

以上计算结果在论文中有比较清楚的展示,这个看着直观一点。

Python 代码


def find_cloud_top(mse_data):
    nt, nlev, nlat, nlon = mse_data.shape
    surface = mse_data[:, 0, :, :]

    # 条件:某一层 < surface 且 下一层 > surface
    cond = (mse_data[:, 1:-1, :, :] < surface[:, None, :, :]) & \
           (mse_data[:, 2:, :, :] > surface[:, None, :, :])

    # 找到第一个 True 的位置 (axis=1 是 vertical levels)
    # np.argmax 返回第一个 True 的索引,如果全 False 则返回 0
    idx = np.argmax(cond, axis=1) + 1  

    # 如果整个列没有满足条件,则置为 nan
    has_cloud = cond.any(axis=1)
    idx = np.where(has_cloud, idx, np.nan)

    # 应用下限约束 (3 = 700hPa)
    idx = np.where((~np.isnan(idx)) & (idx < 3), 3, idx)

    return idx

NCL实现代码

; Author: xianpuji (09.18 2025)
;How to Determines the level of the thermal tropopause. using trop_wmo
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

begin
  ;-----------------------------------------
  ; 设置输入文件夹和文件列表
  ;-----------------------------------------
  files = systemfunc("ls ta_Amon_*_processed.nc")  ; 获取所有 processed 文件
  nfiles = dimsizes(files)

  ;-----------------------------------------
  ; 循环处理每个文件
  ;-----------------------------------------
  do i = 0, nfiles-1
    f = files(i)
    print("Processing file: " + f)
    parts = str_split(f, "_")
    model = parts(2)
    print("Model: " + model)
    ; 打开 NetCDF 文件T
    f_in = addfile(f, "r")  ; "r" 表示 read-only
    ; 读取变量,例如 ta
    ta = f_in->ta
    t = ta(time|:, {lat|-15:15}, lon|:,plev|:)  ; 读取所有时间、纬度、经度的温度数据
    t@_FillValue = -999
    printVarSummary(t)
    p=f_in->plev
    printVarSummary(p)

    ; 计算热层顶
    ptop = trop_wmo(p,t(time|:,lat|:,lon|:,plev|:),1,False)
    printVarSummary(ptop)
    
    print(ptop(0,0,0))  

    ptop!0="time"
    ptop!1="lat"
    ptop!2="lon"
    ptop@long_name="Determines the level of the thermal tropopause. using trop_wmo"
    ptop@units="Pa"
    ptop&time=t&time
    ptop&lat=t&lat
    ptop&lon=t&lon
    ptop@_FillValue=-999
    
    outname = "ptop_Amon_" + model + "_processed.nc"
    f_out = addfile(outname, "c")  ; "c" 表示 create
    f_out->ptop = ptop
    print("Saved to: " + outname)
    delete(t)
    delete(ptop)
    delete(f_in)
  end do
end

其他

顺便记录计算湿静能的一些气候态空间分布,方便对比验算结果

水汽收支

干净能

湿静能

垂直水汽平流

垂直MSE平流

参考文献

  • Gettelman A, Birner T, Eyring V et al (2009) The tropical tropopause layer 1960–2100. Atmos Chem Phys 9:1621–1637. https://doi.org/ 10.5194/acp-9-1621-2009

  • Fan, C.-S., and D. Dommenget, 2024: The weakening of the tropical circulation is caused by the lifting of the tropopause height. Clim. Dyn., 62, 187–201, https://doi.org/10.1007/s00382-023-06909-1.

  • Li, Y.-X., J. D. Neelin, Y.-H. Kuo, H.-H. Hsu, and J.-Y. Yu, 2022: How close are leading tropical tropospheric temperature perturbations to those under convective quasi equilibrium? J. Atmospheric Sci., 79, 2307–2321, https://doi.org/10.1175/JAS-D-21-0315.1.

  • Chen, Y.-C., and J.-Y. Yu, 2021: Modes of tropical convection and their roles in transporting moisture and moist static energy: contrast between deep and shallow convection. Clim. Dyn., 57, 1789–1803.

  • https://www.pnas.org/doi/10.1073/pnas.2319228121